Make WordPress Core

Ticket #34182: 34182.diff

File 34182.diff, 476 bytes (added by jeremyfelt, 8 years ago)
  • src/wp-admin/includes/theme.php

     
    8383                }
    8484        }
    8585
     86        // Remove the theme from allowed themes on the network.
     87        if ( is_multisite() ) {
     88                WP_Theme::network_disable_theme( $stylesheet );
     89        }
     90
    8691        // Force refresh of theme update information.
    8792        delete_site_transient( 'update_themes' );
    8893