Use 3 * HOUR_IN_SECONDS rather than 10800.

git-svn-id: https://develop.svn.wordpress.org/trunk@23175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-12 07:30:28 +00:00
parent ec381a51c0
commit 05861ebb8c

View File

@ -30,7 +30,7 @@ $theme_field_defaults = array( 'description' => true, 'sections' => false, 'test
*/
function install_themes_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 )
return $cache;
@ -39,7 +39,7 @@ function install_themes_feature_list( ) {
if ( is_wp_error( $feature_list ) )
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;
}