dustineli (@dustineli)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @dustineli

    Participant

    looks to me like bbpress-functions.php is not loading the topic.js nor reply.js when using a shortcode to load a topic.

    I commented out this if and then the scripts load:

    /*if ( bbp_is_single_topic() ) {*/

    // Topic favorite/unsubscribe
    $scripts[‘bbpress-topic’] = array(
    ‘file’ => ‘js/topic.js’,
    ‘dependencies’ => array( ‘jquery’ )
    );

    // Hierarchical replies
    if ( bbp_thread_replies() ) {
    $scripts[‘bbpress-reply’] = array(
    ‘file’ => ‘js/reply.js’,
    ‘dependencies’ => array( ‘jquery’ )
    );
    }
    /*}*/

    so similar to the above post it appears that bbp_is_single_topic() is returning false for some reason. I tested this without any other plugins and also with the latest development version and the scripts still do not load unless I comment out that if. I suppose this means these scripts get loaded all the time but everything seems to still work

Viewing 1 replies (of 1 total)