Initialize active_sitewide_plugins during network install and upgrade. fixes #19385
git-svn-id: https://develop.svn.wordpress.org/trunk@19470 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
23dcc6ef17
commit
ef187a99f6
@ -894,6 +894,7 @@ We hope you enjoy your new site. Thanks!
|
||||
'subdomain_install' => intval( $subdomain_install ),
|
||||
'global_terms_enabled' => global_terms_enabled() ? '1' : '0',
|
||||
'initial_db_version' => get_option( 'initial_db_version' ),
|
||||
'active_sitewide_plugins' => array(),
|
||||
);
|
||||
if ( ! $subdomain_install )
|
||||
$sitemeta['illegal_names'][] = 'blog';
|
||||
|
@ -1254,6 +1254,10 @@ function upgrade_network() {
|
||||
// 3.3
|
||||
if ( $wp_current_db_version < 19390 )
|
||||
update_site_option( 'initial_db_version', $wp_current_db_version );
|
||||
if ( $wp_current_db_version < 19470 ) {
|
||||
if ( false === get_site_option( 'active_sitewide_plugins' ) )
|
||||
update_site_option( 'active_sitewide_plugins', array() );
|
||||
}
|
||||
}
|
||||
|
||||
// The functions we use to actually do stuff
|
||||
|
@ -11,7 +11,7 @@ $wp_version = '3.3-beta4';
|
||||
*
|
||||
* @global int $wp_db_version
|
||||
*/
|
||||
$wp_db_version = 19389;
|
||||
$wp_db_version = 19470;
|
||||
|
||||
/**
|
||||
* Holds the TinyMCE version
|
||||
|
Loading…
Reference in New Issue
Block a user