WordPress.org

Make WordPress Core

Ticket #21745: 21745.diff

File 21745.diff, 885 bytes (added by mdawaffe, 20 months ago)
  • wp-admin/admin.php

     
    4141        do_action('after_db_upgrade'); 
    4242} elseif ( get_option('db_version') != $wp_db_version && empty($_POST) ) { 
    4343        if ( !is_multisite() ) { 
     44                nocache_headers(); 
    4445                wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])))); 
    4546                exit; 
    4647        } elseif ( apply_filters( 'do_mu_upgrade', true ) ) { 
  • wp-admin/upgrade.php

     
    1717/** Load WordPress Bootstrap */ 
    1818require( '../wp-load.php' ); 
    1919 
     20nocache_headers(); 
     21 
    2022timer_start(); 
    2123require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 
    2224