Make WordPress Core

Changeset 21686


Ignore:
Timestamp:
08/31/2012 05:05:18 PM (13 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

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

    r21503 r21686  
    10721072     */
    10731073    public static function get_allowed( $blog_id = null ) {
    1074         return self::get_allowed_on_network() + self::get_allowed_on_site( $blog_id );
     1074        $network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
     1075        return $network + self::get_allowed_on_site( $blog_id );
    10751076    }
    10761077
Note: See TracChangeset for help on using the changeset viewer.