Changeset 44828
- Timestamp:
- 03/11/2019 11:46:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r44827 r44828 3059 3059 if ( ! did_action( 'admin_head' ) ) : 3060 3060 if ( ! headers_sent() ) { 3061 header( 'Content-Type: text/html; charset=utf-8' ); 3061 3062 status_header( $r['response'] ); 3062 3063 nocache_headers(); 3063 header( 'Content-Type: text/html; charset=utf-8' );3064 3064 } 3065 3065 … … 3239 3239 status_header( $r['response'] ); 3240 3240 } 3241 nocache_headers(); 3241 3242 } 3242 3243 … … 3265 3266 3266 3267 list( $message, $title, $r ) = _wp_die_process_input( $message, $title, $args ); 3268 3269 if ( ! headers_sent() ) { 3270 nocache_headers(); 3271 } 3267 3272 3268 3273 if ( $wp_xmlrpc_server ) { … … 3296 3301 list( $message, $title, $r ) = _wp_die_process_input( $message, $title, $args ); 3297 3302 3298 // This is intentional. For backward-compatibility, support passing null here. 3299 if ( ! headers_sent() && null !== $args['response'] ) { 3300 status_header( $r['response'] ); 3303 if ( ! headers_sent() ) { 3304 // This is intentional. For backward-compatibility, support passing null here. 3305 if ( null !== $args['response'] ) { 3306 status_header( $r['response'] ); 3307 } 3308 nocache_headers(); 3301 3309 } 3302 3310
Note: See TracChangeset
for help on using the changeset viewer.