Inline documentation for hooks in wp-includes/class-wp-theme.php.

Props richard2222, kpdesign.
Fixes #26217.


git-svn-id: https://develop.svn.wordpress.org/trunk@26891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2014-01-02 01:53:29 +00:00
parent b707874fa9
commit 01a99608e0

View File

@ -179,6 +179,7 @@ final class WP_Theme implements ArrayAccess {
// Initialize caching on first run.
if ( ! isset( self::$persistently_cache ) ) {
/** This action is documented in wp-includes/theme.php */
self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' );
if ( self::$persistently_cache ) {
wp_cache_add_global_groups( 'themes' );
@ -1086,6 +1087,13 @@ final class WP_Theme implements ArrayAccess {
* @return array Array of stylesheet names.
*/
public static function get_allowed( $blog_id = null ) {
/**
* Filter the array of themes allowed on the site or network.
*
* @since MU
*
* @param array $allowed_themes An array of theme stylesheet names.
*/
$network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
return $network + self::get_allowed_on_site( $blog_id );
}