wp/wp-admin/admin.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    29 
    29 
    30 if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
    30 if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
    31 	define( 'WP_LOAD_IMPORTERS', true );
    31 	define( 'WP_LOAD_IMPORTERS', true );
    32 }
    32 }
    33 
    33 
       
    34 /** Load WordPress Bootstrap */
    34 require_once dirname( __DIR__ ) . '/wp-load.php';
    35 require_once dirname( __DIR__ ) . '/wp-load.php';
    35 
    36 
    36 nocache_headers();
    37 nocache_headers();
    37 
    38 
    38 if ( get_option( 'db_upgraded' ) ) {
    39 if ( get_option( 'db_upgraded' ) ) {
    39 
    40 
    40 	flush_rewrite_rules();
    41 	flush_rewrite_rules();
    41 	update_option( 'db_upgraded', false );
    42 	update_option( 'db_upgraded', false, true );
    42 
    43 
    43 	/**
    44 	/**
    44 	 * Fires on the next page load after a successful DB upgrade.
    45 	 * Fires on the next page load after a successful DB upgrade.
    45 	 *
    46 	 *
    46 	 * @since 2.8.0
    47 	 * @since 2.8.0