diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index e469f5c14c..52bf5745c3 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/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' );