WordPress.org

Make WordPress Core

Changeset 20145


Ignore:
Timestamp:
03/07/12 23:39:56 (2 years ago)
Author:
nacin
Message:

Only update the old allowed_themes network option from the main site admin or in the network admin. see #20103, #20146.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme.php

    r20144 r20145  
    11041104            } 
    11051105            // Set the option so we never have to go through this pain again. 
    1106             if ( is_admin() ) { 
     1106            if ( ( is_admin() && is_main_site() ) || is_network_admin() ) { 
    11071107                update_site_option( 'allowedthemes', $allowed_themes ); 
    11081108                delete_site_option( 'allowed_themes' ); 
Note: See TracChangeset for help on using the changeset viewer.