Changeset 41174 for trunk/src/wp-includes/theme.php
- Timestamp:
- 07/27/2017 04:59:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r41168 r41174 36 36 $theme_directories = search_theme_directories(); 37 37 38 if ( count( $wp_theme_directories ) > 1 ) {38 if ( is_array( $wp_theme_directories ) && count( $wp_theme_directories ) > 1 ) { 39 39 // Make sure the current theme wins out, in case search_theme_directories() picks the wrong 40 40 // one in the case of a conflict. (Normally, last registered theme root wins.) … … 628 628 global $wp_theme_directories; 629 629 630 if ( count($wp_theme_directories) <= 1 )630 if ( ! is_array( $wp_theme_directories ) || count( $wp_theme_directories ) <= 1 ) { 631 631 return '/themes'; 632 } 632 633 633 634 $theme_root = false;
Note: See TracChangeset
for help on using the changeset viewer.