WordPress.org

Make WordPress Core

Changeset 10672


Ignore:
Timestamp:
02/28/2009 09:30:46 AM (12 years ago)
Author:
westi
Message:

Make the exit call explicit so that it works. Fixes #9248.

File:
1 edited

Legend:

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

    r10619 r10672  
    305305        $headers = array('X-Pingback' => get_bloginfo('pingback_url'));
    306306        $status = null;
     307        $exit_required = false;
     308
    307309        if ( is_user_logged_in() )
    308310            $headers = array_merge($headers, wp_get_nocache_headers());
     
    350352                     (($client_modified_timestamp >= $wp_modified_timestamp) || ($client_etag == $wp_etag)) ) {
    351353                $status = 304;
    352                 add_action('send_headers', 'exit', 1);
     354                $exit_required = true;
    353355            }
    354356        }
     
    360362        foreach( (array) $headers as $name => $field_value )
    361363            @header("{$name}: {$field_value}");
     364
     365        if ($exit_required)
     366            exit();
    362367
    363368        do_action_ref_array('send_headers', array(&$this));
Note: See TracChangeset for help on using the changeset viewer.