Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating » Old Version fixes and change logs »

PATCH 373-05: Enhancement - only load 'comment-reply.js' on pages where it is needed


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 2, 2012, 05:59 AM
juggledad's Avatar
juggledad
 
21,965 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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' ); } ?>
to
HTML Code:
<?php if ( function_exists('wp_list_comments') AND is_singular() AND (comments_open( $post_id ))) { 	wp_enqueue_script( 'comment-reply' ); } ?>
the attached file has the patch already applied. Unzip the file and put it in the Atahualpa folder replacing the version that is there.
Attached Files
File Type: zip header.zip (2.1 KB, 337 views)
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #2  
Old Jul 12, 2012, 09:27 AM
ningalooclub
 
9 posts · May 2010
Western Australia
Just did this to one of my sites and the difference has been great! Thanks!

Is this included in any version changes?
  #3  
Old Jul 12, 2012, 09:42 AM
juggledad's Avatar
juggledad
 
21,965 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
it was included in the codeas of 3.7.4
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 08:21 AM
How to move the comment author name and reply link below the comment sober Comments, trackbacks & pings 1 Sep 4, 2011 12:21 PM
PATCH 367-02: Page Titles are double with 3.6.7 (now part of PATCH 367-04) juggledad Old Version fixes and change logs 0 May 13, 2011 03:57 PM
Avatar load times and XHTML under leave a reply Artists Garden Atahualpa 3 Wordpress theme 2 Jan 18, 2009 08:24 AM


All times are GMT -6. The time now is 04:31 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.