@@ 491-502 (lines=12) @@ | ||
488 | unset( $headers['Last-Modified'] ); |
|
489 | ||
490 | // In PHP 5.3+, make sure we are not sending a Last-Modified header. |
|
491 | if ( function_exists( 'header_remove' ) ) { |
|
492 | @header_remove( 'Last-Modified' ); |
|
493 | } else { |
|
494 | // In PHP 5.2, send an empty Last-Modified header, but only as a |
|
495 | // last resort to override a header already sent. #WP23021 |
|
496 | foreach ( headers_list() as $header ) { |
|
497 | if ( 0 === stripos( $header, 'Last-Modified' ) ) { |
|
498 | $headers['Last-Modified'] = ''; |
|
499 | break; |
|
500 | } |
|
501 | } |
|
502 | } |
|
503 | } |
|
504 | ||
505 | foreach ( (array) $headers as $name => $field_value ) |
@@ 1145-1156 (lines=12) @@ | ||
1142 | unset( $headers['Last-Modified'] ); |
|
1143 | ||
1144 | // In PHP 5.3+, make sure we are not sending a Last-Modified header. |
|
1145 | if ( function_exists( 'header_remove' ) ) { |
|
1146 | @header_remove( 'Last-Modified' ); |
|
1147 | } else { |
|
1148 | // In PHP 5.2, send an empty Last-Modified header, but only as a |
|
1149 | // last resort to override a header already sent. #WP23021 |
|
1150 | foreach ( headers_list() as $header ) { |
|
1151 | if ( 0 === stripos( $header, 'Last-Modified' ) ) { |
|
1152 | $headers['Last-Modified'] = ''; |
|
1153 | break; |
|
1154 | } |
|
1155 | } |
|
1156 | } |
|
1157 | ||
1158 | foreach ( $headers as $name => $field_value ) |
|
1159 | @header("{$name}: {$field_value}"); |