mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 01:52:24 +01:00
Drop the dual-use of db_version. Now it just stores the version. Post-upgrade hook triggered by separate binary db_upgraded option. fixes #9618
git-svn-id: https://develop.svn.wordpress.org/trunk@11040 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
677a8f5387
commit
3c2fd1ca40
@ -18,9 +18,9 @@ if ( defined('ABSPATH') )
|
||||
else
|
||||
require_once('../wp-load.php');
|
||||
|
||||
if ( get_option('db_version') == 'db_upgraded' ) {
|
||||
if ( get_option('db_upgraded') ) {
|
||||
$wp_rewrite->flush_rules();
|
||||
update_option('db_version', $wp_db_version);
|
||||
update_option( 'db_upgraded', false );
|
||||
|
||||
/**
|
||||
* Runs on the next page load after successful upgrade
|
||||
|
@ -344,7 +344,8 @@ function upgrade_all() {
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
|
||||
update_option('db_version', 'db_upgraded');
|
||||
update_option( 'db_version', $wp_db_version );
|
||||
update_option( 'db_upgraded', true );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user