Initialize active_sitewide_plugins during network install and upgrade. fixes #19385

git-svn-id: http://svn.automattic.com/wordpress/trunk@19470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-11-28 20:35:36 +00:00
parent 28276e825c
commit b6b8a588bb
3 changed files with 6 additions and 1 deletions

View File

@ -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';

View File

@ -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

View File

@ -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