Ticket #26217: 26217.2.patch
File 26217.2.patch, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/class-wp-theme.php
179 179 180 180 // Initialize caching on first run. 181 181 if ( ! isset( self::$persistently_cache ) ) { 182 /** This action is documented in wp-includes/theme.php */ 182 183 self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' ); 183 184 if ( self::$persistently_cache ) { 184 185 wp_cache_add_global_groups( 'themes' ); … … 1086 1087 * @return array Array of stylesheet names. 1087 1088 */ 1088 1089 public static function get_allowed( $blog_id = null ) { 1090 /** 1091 * Filter the array of themes that are allowed on the network. 1092 * 1093 * @since MU 1094 * 1095 * @param array $get_allowed_on_network An array of stylesheet names. 1096 */ 1089 1097 $network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() ); 1090 1098 return $network + self::get_allowed_on_site( $blog_id ); 1091 1099 }