Last active
March 30, 2021 12:35
-
-
Save loorlab/028d9fca02e6e4f85d1a to your computer and use it in GitHub Desktop.
Revisions
-
loorlab revised this gist
Dec 12, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ You may have to use: remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); ======================== SOLUTION 3 via @Kevinlearynet ==================== /** * Proper ob_end_flush() for all levels * -
loorlab revised this gist
Dec 12, 2019 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,3 +16,15 @@ and Compression will be remained still ON. You may have to use: remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); ======================== SOLUTION 3 ==================== /** * Proper ob_end_flush() for all levels * * This replaces the WordPress `wp_ob_end_flush_all()` function * with a replacement that doesn't cause PHP notices. */ remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); add_action( 'shutdown', function() { while ( @ob_end_flush() ); } ); -
loorlab revised this gist
Jul 29, 2015 . No changes.There are no files selected for viewing
-
loorlab created this gist
Jul 29, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ SOLUTIONS I have came across so far: ======================== SOLUTION 1 ==================== In plugins (or somewhere) you probably have this code: ini_set('zlib.output_compression', '1'); so, I replaced that code with if (!is_admin()) ob_start('ob_gzhandler'); //because, in admin pages, it causes plugin installation freezing and Compression will be remained still ON. ======================== SOLUTION 2 ==================== You may have to use: remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );