WordPress.org

Make WordPress Core

Changeset 19470


Ignore:
Timestamp:
11/28/2011 08:35:36 PM (6 years ago)
Author:
ryan
Message:

Initialize active_sitewide_plugins during network install and upgrade. fixes #19385

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r19411 r19470  
    895895        'global_terms_enabled' => global_terms_enabled() ? '1' : '0',
    896896        'initial_db_version' => get_option( 'initial_db_version' ),
     897        'active_sitewide_plugins' => array(),
    897898    );
    898899    if ( ! $subdomain_install )
  • trunk/wp-admin/includes/upgrade.php

    r19469 r19470  
    12551255    if ( $wp_current_db_version < 19390 )
    12561256        update_site_option( 'initial_db_version', $wp_current_db_version );
     1257    if ( $wp_current_db_version < 19470 ) {
     1258        if ( false === get_site_option( 'active_sitewide_plugins' ) )
     1259            update_site_option( 'active_sitewide_plugins', array() );
     1260    }
    12571261}
    12581262
  • trunk/wp-includes/version.php

    r19457 r19470  
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 19389;
     14$wp_db_version = 19470;
    1515
    1616/**
Note: See TracChangeset for help on using the changeset viewer.