Changeset 35738 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 11/25/2015 09:44:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r34995 r35738 57 57 'twentyfourteen' => 'Twenty Fourteen', 58 58 'twentyfifteen' => 'Twenty Fifteen', 59 'twentysixteen' => 'Twenty Sixteen', 59 60 ); 60 61 … … 1152 1153 1153 1154 /** 1155 * Determines the latest WordPress default theme that is installed. 1156 * 1157 * This hits the filesystem. 1158 * 1159 * @return WP_Theme|false Object, or false if no theme is installed, which would be bad. 1160 */ 1161 public static function get_core_default_theme() { 1162 foreach ( array_reverse( self::$default_themes ) as $slug => $name ) { 1163 $theme = wp_get_theme( $slug ); 1164 if ( $theme->exists() ) { 1165 return $theme; 1166 } 1167 } 1168 return false; 1169 } 1170 1171 /** 1154 1172 * Returns array of stylesheet names of themes allowed on the site or network. 1155 1173 *
Note: See TracChangeset
for help on using the changeset viewer.