Make WordPress Core


Ignore:
Timestamp:
09/03/2012 06:11:42 PM (14 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 the 3.4 branch.

File:
1 edited

Legend:

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

    • Property svn:mergeinfo set to
      /branches/3.1/wp-includes/class-wp-theme.php18031
      /branches/3.3/wp-includes/class-wp-theme.php20543
      /trunk/wp-includes/class-wp-theme.php18512,​21503,​21686
    r21615 r21699  
    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.