PATCH 373-05: Enhancement - only load 'comment-reply.js' on pages where it is needed
1 Attachment(s)
Thank to 'DUK' for this idea (see this thread - step 3)
This patch will cause Atahualpa to only load the WordPress 'comment-reply.js' on pages where comments are allowed. Edit header.php and change line 41 (version 3.7.3) from HTML Code:
<?php if ( function_exists('wp_list_comments') AND is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?> HTML Code:
<?php if ( function_exists('wp_list_comments') AND is_singular() AND (comments_open( $post_id ))) { wp_enqueue_script( 'comment-reply' ); } ?> |
Just did this to one of my sites and the difference has been great! Thanks!
Is this included in any version changes? |
it was included in the codeas of 3.7.4
|
All times are GMT -6. The time now is 02:37 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.