Upgrade the options table before calling populate_options() to avoid errors. Props Nazgul. fixes #4921
git-svn-id: https://develop.svn.wordpress.org/trunk@6053 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aeb86060e6
commit
2ba7c9b6c1
@ -171,6 +171,9 @@ function upgrade_all() {
|
||||
$wp_current_db_version = 2541;
|
||||
}
|
||||
|
||||
if ( $wp_current_db_version < 6039 )
|
||||
upgrade_230_options_table();
|
||||
|
||||
populate_options();
|
||||
|
||||
if ( $wp_current_db_version < 2541 ) {
|
||||
@ -192,9 +195,6 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 5539 )
|
||||
upgrade_230();
|
||||
|
||||
if ( $wp_current_db_version < 6039 )
|
||||
upgrade_230_options_table();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
|
||||
$wp_rewrite->flush_rules();
|
||||
|
Loading…
Reference in New Issue
Block a user