Changeset 14485 for trunk/wp-includes/theme.php
- Timestamp:
- 05/06/2010 07:53:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r14409 r14485 1208 1208 * Checks that current theme files 'index.php' and 'style.css' exists. 1209 1209 * 1210 * Does not check the fallback theme. The fallback themeshould always exist.1210 * Does not check the default theme, which is the fallback and should always exist. 1211 1211 * Will switch theme to the fallback theme if current theme does not validate. 1212 1212 * You can use the 'validate_current_theme' filter to return FALSE to … … 1214 1214 * 1215 1215 * @since 1.5.0 1216 * @see WP_ FALLBACK_THEME1216 * @see WP_DEFAULT_THEME 1217 1217 * 1218 1218 * @return bool … … 1223 1223 return true; 1224 1224 1225 if ( get_template() != WP_ FALLBACK_THEME && !file_exists(get_template_directory() . '/index.php') ) {1226 switch_theme( WP_ FALLBACK_THEME, WP_FALLBACK_THEME );1225 if ( get_template() != WP_DEFAULT_THEME && !file_exists(get_template_directory() . '/index.php') ) { 1226 switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); 1227 1227 return false; 1228 1228 } 1229 1229 1230 if ( get_stylesheet() != WP_ FALLBACK_THEME && !file_exists(get_template_directory() . '/style.css') ) {1231 switch_theme( WP_ FALLBACK_THEME, WP_FALLBACK_THEME );1230 if ( get_stylesheet() != WP_DEFAULT_THEME && !file_exists(get_template_directory() . '/style.css') ) { 1231 switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME ); 1232 1232 return false; 1233 1233 }
Note: See TracChangeset
for help on using the changeset viewer.