Ticket #969: comment-reply-script.patch
| File comment-reply-script.patch, 1.5 KB (added by , 16 years ago) |
|---|
-
bp-core/bp-core-templatetags.php
1184 1184 echo $bp->root_domain; 1185 1185 } 1186 1186 1187 function bp_enqueue_script_comment_reply() { 1188 global $wp_scripts; 1187 1189 1190 wp_enqueue_script( 1191 'comment-reply', 1192 $wp_scripts->registered['comment-reply']->src, 1193 $wp_scripts->registered['comment-reply']->deps, 1194 $wp_scripts->registered['comment-reply']->ver, 1195 true // print in footer 1196 ); 1197 } 1198 1199 1188 1200 /* Template functions for fetching globals, without querying the DB again 1189 1201 also means we dont have to use the $bp variable in the template (looks messy) */ 1190 1202 -
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 if ( get_option( 'thread_comments' ) ) 16 bp_enqueue_script_comment_reply() ?> 15 17 16 18 <div id="comments"> 17 19 … … 20 22 <?php do_action( 'bp_before_blog_comment_list' ) ?> 21 23 22 24 <ol class="commentlist"> 23 <?php wp_list_comments( array( 'style' => ' ol', 'type' => 'all' ) ); ?>25 <?php wp_list_comments( array( 'style' => 'ul', 'type' => 'all' ) ); ?> 24 26 </ol><!-- .comment-list --> 25 27 26 28 <?php do_action( 'bp_after_blog_comment_list' ) ?>