Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

BUGFIX 364-02: CSS Compression does not happen if 'Allow debugging?' is 'Yes'


 
Prev Previous Post   Next Post Next
  #1  
Old Feb 8, 2011, 06:51 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
BUGFIX 364-02: CSS Compression does not happen if 'Allow debugging?' is 'Yes'

NOTE: This fix is not needed if you apply BUGFIX 364-03 since it is included in that fix.
UPDATED 2/27/11 - was missing some code change at the end - the ZIP file reflects the additional changes

Thanks to mdmower for noticing this

(note: this is NOT a critical fix it is cosmetic)

Due to changes in the code in 3.6.x, if you set the 'ATO->Configure CSS & JS->Configure CSS & JS' option to 'Yes', the 'CSS: Compress' option will be ignored.

To fix this, edit CSS.php and find line 11 which should be
HTML Code:
!( isset($bfa_ata_debug) AND $bfa_ata['allow_debug'] == "Yes" ) ) {
and change it to
HTML Code:
!( $bfa_ata_debug == 1 AND $bfa_ata['allow_debug'] == "Yes" ) ) {
change lines 944-951 from
HTML Code:
if ( $bfa_ata['css_compress'] == "Yes" AND 
!( isset($bfa_ata_debug) AND $bfa_ata['allow_debug'] == "Yes" ) ) {
	ob_end_flush();
}	
if ( isset($bfa_ata_preview) OR $bfa_ata['css_external'] == "Inline" OR 
( isset($bfa_ata_debug) AND $bfa_ata['allow_debug'] == "Yes" ) ) {
	echo "</style>\n"; 
}
to
HTML Code:
if ( $bfa_ata['css_compress'] == "Yes" AND 
!( $bfa_ata_debug == 1 AND $bfa_ata['allow_debug'] == "Yes" ) ) {
	ob_end_flush();
}	
if ( isset($bfa_ata_preview) OR $bfa_ata['css_external'] == "Inline" OR 
( $bfa_ata_debug == 1 AND $bfa_ata['allow_debug'] == "Yes" ) ) {
	echo "\n</style>\n"; 
}
or you can replace CSS.PHP with the attached version which has the change applied.
Attached Files
File Type: zip css.php.zip (17.2 KB, 1702 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 5, 2011 at 03:24 AM.
 

Bookmarks

Tags
ata 3.6.4, compression

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUGFIX 360-01: errors after upgrading to 3.6 juggledad Old Version fixes and change logs 30 Apr 14, 2011 08:12 PM
BUGFIX 364-01: “Title tags in Category Menu Bar” fails to remove muti-line title juggledad Old Version fixes and change logs 2 Feb 10, 2011 03:47 PM
BUGFIX: 3.4.9 Excerpt length not working properly? Kadin Excerpts, Read more, Pagination 14 Oct 28, 2010 09:38 AM
Ran WebSiteOptimization Analysis, Results-"Compression?" Craig Mattice Atahualpa 3 Wordpress theme 0 Mar 26, 2010 08:38 AM
[SOLVED] BUGFIX - 343/344 - COMMENTS FEED ICON area of the css.php has an error juggledad Old Version fixes and change logs 0 Oct 15, 2009 02:54 PM


All times are GMT -6. The time now is 01:34 AM.


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