WordPress.org

Make WordPress Core

Changeset 37203


Ignore:
Timestamp:
04/14/2016 03:49:01 AM (4 years ago)
Author:
jeremyfelt
Message:

Multisite: Remove theme from network allowed themes when deleted

Previously, a deleted theme would remain in the list of allowed themes until manually cleared. This uses WP_Theme::network_disable_theme(), added in [37202].

Fixes #34182.

File:
1 edited

Legend:

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

    r36845 r37203  
    8282            $wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.mo' );
    8383        }
     84    }
     85
     86    // Remove the theme from allowed themes on the network.
     87    if ( is_multisite() ) {
     88        WP_Theme::network_disable_theme( $stylesheet );
    8489    }
    8590
Note: See TracChangeset for help on using the changeset viewer.