Skip to content

Commit

Permalink
Revert "Remove removal of wp_ob_end_flush_all at shutdown for sake of…
Browse files Browse the repository at this point in the history
… object cache"

This reverts commit 14a85aa90b6b29a5ed177df8d951b4c53a7cd05d.
  • Loading branch information
westonruter committed Apr 28, 2018
1 parent 25d3e97 commit 056e90a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,12 @@ public static function start_output_buffering( $args = array() ) {
$erase_flags = ! $args['cancelable'];
}
ob_start( array( __CLASS__, 'finish_output_buffering' ), $chunk_size, $erase_flags );

/*
* Remove shutdown flushing which will cause PHP notice since buffer is not flushable.
* This was only needed in PHP 5.2 anyway, which this plugin does not support.
*/
remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
}

/**
Expand Down

0 comments on commit 056e90a

Please sign in to comment.