WordPress.org

Make WordPress Core

Ticket #22803: 22803.diff

File 22803.diff, 484 bytes (added by nacin, 5 years ago)
  • wp-includes/class-wp-theme.php

     
    11041104        public static function get_allowed_on_site( $blog_id = null ) {
    11051105                static $allowed_themes = array();
    11061106
    1107                 if ( ! $blog_id )
     1107                if ( ! $blog_id || ! is_multisite() )
    11081108                        $blog_id = get_current_blog_id();
    11091109
    11101110                if ( isset( $allowed_themes[ $blog_id ] ) )