Only update the old allowed_themes network option from the main site admin or in the network admin. see #20103, #20146.
git-svn-id: https://develop.svn.wordpress.org/trunk@20145 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68bc832f61
commit
f7bd4afbeb
@ -1103,7 +1103,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
$allowed_themes = $converted;
|
||||
}
|
||||
// Set the option so we never have to go through this pain again.
|
||||
if ( is_admin() ) {
|
||||
if ( ( is_admin() && is_main_site() ) || is_network_admin() ) {
|
||||
update_site_option( 'allowedthemes', $allowed_themes );
|
||||
delete_site_option( 'allowed_themes' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user