Make WordPress Core

Ticket #26217: 26217.3.patch

File 26217.3.patch, 1.0 KB (added by DrewAPicture, 10 years ago)

Final pass

  • src/wp-includes/class-wp-theme.php

     
    179179
    180180                // Initialize caching on first run.
    181181                if ( ! isset( self::$persistently_cache ) ) {
     182                        /** This action is documented in wp-includes/theme.php */
    182183                        self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' );
    183184                        if ( self::$persistently_cache ) {
    184185                                wp_cache_add_global_groups( 'themes' );
     
    10861087         * @return array Array of stylesheet names.
    10871088         */
    10881089        public static function get_allowed( $blog_id = null ) {
     1090                /**
     1091                 * Filter the array of themes allowed on the site or network.
     1092                 *
     1093                 * @since MU
     1094                 *
     1095                 * @param array $allowed_themes An array of theme stylesheet names.
     1096                 */
    10891097                $network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
    10901098                return $network + self::get_allowed_on_site( $blog_id );
    10911099        }