Restore the 'allowed_themes' filter.
This filter has wrapped the network-wide themes, outside of the network-wide allowed function (dating back to MU), hence the unusual placement. This restores previous behavior; we will introduce new filters to enable greater flexibility. see #21099. for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@21686 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da2f11a8b8
commit
cb60d4a2fa
@ -1071,7 +1071,8 @@ final class WP_Theme implements ArrayAccess {
|
||||
* @return array Array of stylesheet names.
|
||||
*/
|
||||
public static function get_allowed( $blog_id = null ) {
|
||||
return self::get_allowed_on_network() + self::get_allowed_on_site( $blog_id );
|
||||
$network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
|
||||
return $network + self::get_allowed_on_site( $blog_id );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user