Changeset 10672
- Timestamp:
- 02/28/2009 09:30:46 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r10619 r10672 305 305 $headers = array('X-Pingback' => get_bloginfo('pingback_url')); 306 306 $status = null; 307 $exit_required = false; 308 307 309 if ( is_user_logged_in() ) 308 310 $headers = array_merge($headers, wp_get_nocache_headers()); … … 350 352 (($client_modified_timestamp >= $wp_modified_timestamp) || ($client_etag == $wp_etag)) ) { 351 353 $status = 304; 352 add_action('send_headers', 'exit', 1);354 $exit_required = true; 353 355 } 354 356 } … … 360 362 foreach( (array) $headers as $name => $field_value ) 361 363 @header("{$name}: {$field_value}"); 364 365 if ($exit_required) 366 exit(); 362 367 363 368 do_action_ref_array('send_headers', array(&$this));
Note: See TracChangeset
for help on using the changeset viewer.