diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index c47679fbe4..b1b1e2876e 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -382,7 +382,7 @@ class WP { @header("{$name}: {$field_value}"); if ( isset( $headers['Last-Modified'] ) && empty( $headers['Last-Modified'] ) && function_exists( 'header_remove' ) ) - header_remove( 'Last-Modified' ); + @header_remove( 'Last-Modified' ); if ( $exit_required ) exit(); diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 4a6e0a3b89..a589297edf 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -927,7 +927,7 @@ function nocache_headers() { foreach( $headers as $name => $field_value ) @header("{$name}: {$field_value}"); if ( empty( $headers['Last-Modified'] ) && function_exists( 'header_remove' ) ) - header_remove( 'Last-Modified' ); + @header_remove( 'Last-Modified' ); } /**