Changeset 20021
- Timestamp:
- 02/28/2012 08:08:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r20020 r20021 418 418 } 419 419 420 $theme_roots[$stylesheet] = str_replace( WP_CONTENT_DIR, '', $theme_root );421 420 $wp_themes[$name] = array( 422 421 'Name' => $name, … … 443 442 unset($theme_files); 444 443 445 /* Store theme roots in the DB */446 if ( get_site_transient( 'theme_roots' ) != $theme_roots )447 set_site_transient( 'theme_roots', $theme_roots, 7200 ); // cache for two hours448 unset($theme_roots);449 450 444 /* Resolve theme dependencies. */ 451 445 $theme_names = array_keys( $wp_themes ); … … 480 474 $theme_roots = get_site_transient( 'theme_roots' ); 481 475 if ( false === $theme_roots ) { 482 get_themes();483 $theme_roots = get_site_transient( 'theme_roots' ); // this is set in get_theme()476 search_theme_directories(); // Regenerate the transient. 477 $theme_roots = get_site_transient( 'theme_roots' ); 484 478 } 485 479 return $theme_roots;
Note: See TracChangeset
for help on using the changeset viewer.