WordPress.org

Make WordPress Core

Changeset 21913


Ignore:
Timestamp:
09/19/2012 01:51:40 AM (6 years ago)
Author:
nacin
Message:

Send nocache_headers() in the admin earlier, on the DB upgrade page. Prevents a potential redirect loop reproduced in Chrome from heavy caching of headers. props mdawaffe. see #21745.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r21646 r21913  
    2929
    3030require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
     31
     32nocache_headers();
    3133
    3234if ( get_option('db_upgraded') ) {
     
    6769auth_redirect();
    6870
    69 nocache_headers();
    70 
    7171// Schedule trash collection
    7272if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') )
  • trunk/wp-admin/upgrade.php

    r19937 r21913  
    1717/** Load WordPress Bootstrap */
    1818require( '../wp-load.php' );
     19
     20nocache_headers();
    1921
    2022timer_start();
Note: See TracChangeset for help on using the changeset viewer.