Ticket #969: comment-reply-script.2.patch
File comment-reply-script.2.patch, 1.9 KB (added by , 15 years ago) |
---|
-
bp-core/bp-core-cssjs.php
170 170 } 171 171 add_action( 'wp_head', 'bp_core_add_ajax_url_js' ); 172 172 173 /** 174 * bp_core_add_comment_reply_js() 175 * 176 * Adds the WordPress threaded comment reply functionality to bp-sn-framework. 177 * 178 * @package BuddyPress Core 179 */ 180 function bp_core_add_comment_reply_js() { 181 global $wp_scripts; 182 183 wp_enqueue_script( 184 'comment-reply', 185 $wp_scripts->registered['comment-reply']->src, 186 $wp_scripts->registered['comment-reply']->deps, 187 $wp_scripts->registered['comment-reply']->ver, 188 true // print in footer 189 ); 190 } 191 173 192 ?> 193 No newline at end of file -
bp-themes/bp-sn-framework/comments.php
11 11 12 12 <div id="comments-template"> 13 13 14 <?php if ( have_comments() ) : ?>14 <?php if ( have_comments() ) : 15 15 16 if ( get_option( 'thread_comments' ) ) 17 bp_core_add_comment_reply_js() ?> 18 16 19 <div id="comments"> 17 20 18 21 <h3 id="comments-number" class="comments-header"><?php comments_number( sprintf( __('No responses to %1$s', 'buddypress'), the_title( '“', '”', false ) ), sprintf( __('One response to %1$s', 'buddypress'), the_title( '“', '”', false ) ), sprintf( __('%1$s responses to %2$s', 'buddypress'), '%', the_title( '“', '”', false ) ) ); ?></h3> … … 20 23 <?php do_action( 'bp_before_blog_comment_list' ) ?> 21 24 22 25 <ol class="commentlist"> 23 <?php wp_list_comments( array( 'style' => ' ol', 'type' => 'all' ) ); ?>26 <?php wp_list_comments( array( 'style' => 'ul', 'type' => 'all' ) ); ?> 24 27 </ol><!-- .comment-list --> 25 28 26 29 <?php do_action( 'bp_after_blog_comment_list' ) ?>