| @@ 483-494 (lines=12) @@ | ||
| 480 | unset( $headers['Last-Modified'] ); |
|
| 481 | ||
| 482 | // In PHP 5.3+, make sure we are not sending a Last-Modified header. |
|
| 483 | if ( function_exists( 'header_remove' ) ) { |
|
| 484 | @header_remove( 'Last-Modified' ); |
|
| 485 | } else { |
|
| 486 | // In PHP 5.2, send an empty Last-Modified header, but only as a |
|
| 487 | // last resort to override a header already sent. #WP23021 |
|
| 488 | foreach ( headers_list() as $header ) { |
|
| 489 | if ( 0 === stripos( $header, 'Last-Modified' ) ) { |
|
| 490 | $headers['Last-Modified'] = ''; |
|
| 491 | break; |
|
| 492 | } |
|
| 493 | } |
|
| 494 | } |
|
| 495 | } |
|
| 496 | ||
| 497 | foreach ( (array) $headers as $name => $field_value ) |
|
| @@ 1151-1162 (lines=12) @@ | ||
| 1148 | unset( $headers['Last-Modified'] ); |
|
| 1149 | ||
| 1150 | // In PHP 5.3+, make sure we are not sending a Last-Modified header. |
|
| 1151 | if ( function_exists( 'header_remove' ) ) { |
|
| 1152 | @header_remove( 'Last-Modified' ); |
|
| 1153 | } else { |
|
| 1154 | // In PHP 5.2, send an empty Last-Modified header, but only as a |
|
| 1155 | // last resort to override a header already sent. #WP23021 |
|
| 1156 | foreach ( headers_list() as $header ) { |
|
| 1157 | if ( 0 === stripos( $header, 'Last-Modified' ) ) { |
|
| 1158 | $headers['Last-Modified'] = ''; |
|
| 1159 | break; |
|
| 1160 | } |
|
| 1161 | } |
|
| 1162 | } |
|
| 1163 | ||
| 1164 | foreach ( $headers as $name => $field_value ) |
|
| 1165 | @header("{$name}: {$field_value}"); |
|