Skip to:
Content

BuddyPress.org

Changeset 3312


Ignore:
Timestamp:
10/26/2010 10:21:05 PM (15 years ago)
Author:
djpaul
Message:

Only load comment-reply javascript when thread_comments is set. Fixes #969

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r3300 r3312  
    4242 */
    4343function bp_dtheme_add_blog_comments_js() {
    44     if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
     44    if ( is_singular() && get_option( 'thread_comments' ) )
     45        wp_enqueue_script( 'comment-reply' );
    4546}
    4647add_action( 'template_redirect', 'bp_dtheme_add_blog_comments_js' );
Note: See TracChangeset for help on using the changeset viewer.