WordPress.org

Make WordPress Core

Changeset 20238


Ignore:
Timestamp:
03/21/2012 05:32:28 PM (10 years ago)
Author:
nacin
Message:

WP_Theme::get_allowed_on_network() doesn't take a blog_id argument. props duck_. Restore static declaration accidentally removed in [20193]. see #20103.

File:
1 edited

Legend:

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

    r20231 r20238  
    5151        $allowed = $args['allowed'];
    5252        if ( 'network' === $allowed )
    53             $theme_directories = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_network( $args['blog_id'] ) );
     53            $theme_directories = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_network() );
    5454        elseif ( 'site' === $allowed )
    5555            $theme_directories = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_site( $args['blog_id'] ) );
     
    6161
    6262    $themes = array();
     63    static $_themes = array();
    6364
    6465    foreach ( $theme_directories as $theme => $theme_root ) {
Note: See TracChangeset for help on using the changeset viewer.