関数 get_theme_roots()
2014/12/16
関数 get_theme_roots()
定義ファイル :/blog/wp-includes/theme.php 1
1 2 3 4 5 6 7 8 9 10 11 12 13 | function get_theme_roots() { global $wp_theme_directories; if ( count($wp_theme_directories) <= 1 ) return '/themes'; $theme_roots = get_site_transient( 'theme_roots' ); if ( false === $theme_roots ) { search_theme_directories( true ); // Regenerate the transient. $theme_roots = get_site_transient( 'theme_roots' ); } return $theme_roots; } |