diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index e469f5c14c..52bf5745c3 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -83,6 +83,11 @@ function delete_theme($stylesheet, $redirect = '') { } } + // Remove the theme from allowed themes on the network. + if ( is_multisite() ) { + WP_Theme::network_disable_theme( $stylesheet ); + } + // Force refresh of theme update information. delete_site_transient( 'update_themes' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 93c2261d33..d12744aeb7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37202'; +$wp_version = '4.6-alpha-37203'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.