Make WordPress Core


Ignore:
Timestamp:
10/25/2012 08:38:55 PM (13 years ago)
Author:
nacin
Message:

Avoid 'headers already sent' messages for header_remove() the same way we currently do with header(). props ryan. fixes #22258.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r22283 r22303  
    928928        @header("{$name}: {$field_value}");
    929929    if ( empty( $headers['Last-Modified'] ) && function_exists( 'header_remove' ) )
    930         header_remove( 'Last-Modified' );
     930        @header_remove( 'Last-Modified' );
    931931}
    932932
Note: See TracChangeset for help on using the changeset viewer.