WP_Theme::get_allowed_on_network() doesn't take a blog_id argument. props duck_. Restore static declaration accidentally removed in [20193]. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
110ff8c995
commit
1872a4a8fc
@ -50,7 +50,7 @@ function wp_get_themes( $args = array() ) {
|
||||
if ( is_multisite() && null !== $args['allowed'] ) {
|
||||
$allowed = $args['allowed'];
|
||||
if ( 'network' === $allowed )
|
||||
$theme_directories = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_network( $args['blog_id'] ) );
|
||||
$theme_directories = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_network() );
|
||||
elseif ( 'site' === $allowed )
|
||||
$theme_directories = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_site( $args['blog_id'] ) );
|
||||
elseif ( $allowed )
|
||||
@ -60,6 +60,7 @@ function wp_get_themes( $args = array() ) {
|
||||
}
|
||||
|
||||
$themes = array();
|
||||
static $_themes = array();
|
||||
|
||||
foreach ( $theme_directories as $theme => $theme_root ) {
|
||||
if ( isset( $_themes[ $theme ] ) )
|
||||
|
Loading…
Reference in New Issue
Block a user