Ticket #35521: 35521.patch
File 35521.patch, 856 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/theme.php
406 406 * @staticvar array $found_themes 407 407 * 408 408 * @param bool $force Optional. Whether to force a new directory scan. Defaults to false. 409 * @return array |falseValid themes found409 * @return array Valid themes found 410 410 */ 411 411 function search_theme_directories( $force = false ) { 412 412 global $wp_theme_directories; 413 static $found_themes = null;413 static $found_themes = array(); 414 414 415 415 if ( empty( $wp_theme_directories ) ) 416 return false;416 return array(); 417 417 418 418 if ( ! $force && isset( $found_themes ) ) 419 419 return $found_themes; 420 420 421 $found_themes = array();422 423 421 $wp_theme_directories = (array) $wp_theme_directories; 424 422 $relative_theme_roots = array(); 425 423