Use 3 * HOUR_IN_SECONDS rather than 10800.

git-svn-id: http://core.svn.wordpress.org/trunk@23175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-12 07:30:28 +00:00
parent c22fa1380d
commit de3a5b8694
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ $theme_field_defaults = array( 'description' => true, 'sections' => false, 'test
*/ */
function install_themes_feature_list( ) { function install_themes_feature_list( ) {
if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) if ( !$cache = get_transient( 'wporg_theme_feature_list' ) )
set_transient( 'wporg_theme_feature_list', array( ), 10800); set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
if ( $cache ) if ( $cache )
return $cache; return $cache;
@ -39,7 +39,7 @@ function install_themes_feature_list( ) {
if ( is_wp_error( $feature_list ) ) if ( is_wp_error( $feature_list ) )
return $features; return $features;
set_transient( 'wporg_theme_feature_list', $feature_list, 10800 ); set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS );
return $feature_list; return $feature_list;
} }