Skip to content

Commit

Permalink
Remove removal of wp_ob_end_flush_all at shutdown for sake of object …
Browse files Browse the repository at this point in the history
…cache
  • Loading branch information
westonruter committed Apr 28, 2018
1 parent ff5eaa5 commit b2d3242
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions includes/class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -996,12 +996,6 @@ 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 b2d3242

Please sign in to comment.