WordPress.org

Make WordPress Core

Ticket #21099: 21099.patch

File 21099.patch, 556 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-includes/class-wp-theme.php

     
    10711071         * @return array Array of stylesheet names.
    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                return apply_filters( 'allowed_themes', self::get_allowed_on_network() + self::get_allowed_on_site( $blog_id ) );
    10751075        }
    10761076
    10771077        /**