diff --git a/includes/class-amp-theme-support.php b/includes/class-amp-theme-support.php index 68ebafd174a..441fee9a4fd 100644 --- a/includes/class-amp-theme-support.php +++ b/includes/class-amp-theme-support.php @@ -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 ); } /**