Changeset 29249 for trunk/src/wp-includes/theme.php
- Timestamp:
- 07/19/2014 11:06:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r29176 r29249 371 371 $directory = WP_CONTENT_DIR . '/' . $directory; 372 372 // If this directory does not exist, return and do not register 373 if ( ! file_exists( $directory ) ) 373 if ( ! file_exists( $directory ) ) { 374 374 return false; 375 } 376 377 $wp_theme_directories[] = $directory; 375 } 376 } 377 378 if ( ! is_array( $wp_theme_directories ) ) { 379 $wp_theme_directories = array(); 380 } 381 382 $untrailed = untrailingslashit( $directory ); 383 if ( ! empty( $untrailed ) && ! in_array( $untrailed, $wp_theme_directories ) ) { 384 $wp_theme_directories[] = $untrailed; 385 } 378 386 379 387 return true;
Note: See TracChangeset
for help on using the changeset viewer.