Changeset 20116
- Timestamp:
- 03/05/2012 05:30:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r20059 r20116 89 89 if ( empty( $theme_root ) ) { 90 90 $theme_root = get_raw_theme_root( $stylesheet ); 91 if ( ! in_array( $theme_root, $wp_theme_directories ) )91 if ( ! in_array( $theme_root, (array) $wp_theme_directories ) ) 92 92 $theme_root = WP_CONTENT_DIR . $theme_root; 93 93 } … … 493 493 // Always prepend WP_CONTENT_DIR unless the root currently registered as a theme directory. 494 494 // This gives relative theme roots the benefit of the doubt when things go haywire. 495 if ( ! in_array( $theme_root, $wp_theme_directories ) )495 if ( ! in_array( $theme_root, (array) $wp_theme_directories ) ) 496 496 $theme_root = WP_CONTENT_DIR . $theme_root; 497 497 } else { … … 516 516 517 517 if ( $stylesheet_or_template && $theme_root = get_raw_theme_root( $stylesheet_or_template ) ) { 518 if ( in_array( $theme_root, $wp_theme_directories ) ) {518 if ( in_array( $theme_root, (array) $wp_theme_directories ) ) { 519 519 // Absolute path. Make an educated guess. YMMV -- but note the filter below. 520 520 if ( 0 === strpos( $theme_root, WP_CONTENT_DIR ) )
Note: See TracChangeset
for help on using the changeset viewer.