Changeset 12128 for trunk/wp-includes/theme.php
- Timestamp:
- 10/29/2009 09:53:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r12124 r12128 399 399 400 400 /* Store theme roots in the DB */ 401 if ( get_ transient( 'theme_roots' ) != $theme_roots )402 set_ transient( 'theme_roots', $theme_roots, 7200 ); // cache for two hours401 if ( get_site_transient( 'theme_roots' ) != $theme_roots ) 402 set_site_transient( 'theme_roots', $theme_roots, 7200 ); // cache for two hours 403 403 404 404 foreach ( (array) $theme_names as $theme_name ) { … … 427 427 */ 428 428 function get_theme_roots() { 429 $theme_roots = get_ transient( 'theme_roots' );429 $theme_roots = get_site_transient( 'theme_roots' ); 430 430 if ( false === $theme_roots ) { 431 431 get_themes(); 432 $theme_roots = get_ transient( 'theme_roots' ); // this is set in get_theme()432 $theme_roots = get_site_transient( 'theme_roots' ); // this is set in get_theme() 433 433 } 434 434 return $theme_roots;
Note: See TracChangeset
for help on using the changeset viewer.