diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 6db2c27725..e46594eb0e 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1679,7 +1679,7 @@ class File_Upload_Upgrader { $this->id = wp_insert_attachment( $object, $file['file'] ); // schedule a cleanup for 2 hours from now in case of failed install - wp_schedule_single_event( time() + 7200, 'upgrader_scheduled_cleanup', array( $this->id ) ); + wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) ); } elseif ( is_numeric( $_GET[$urlholder] ) ) { // Numeric Package = previously uploaded file, see above. diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index ab665f8153..d141a39c4b 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -238,7 +238,7 @@ function get_theme_feature_list( $api = true ) { return $features; if ( !$feature_list = get_site_transient( 'wporg_theme_feature_list' ) ) - set_site_transient( 'wporg_theme_feature_list', array(), 10800); + set_site_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); if ( !$feature_list ) { $feature_list = themes_api( 'feature_list', array() ); @@ -249,7 +249,7 @@ function get_theme_feature_list( $api = true ) { if ( !$feature_list ) return $features; - set_site_transient( 'wporg_theme_feature_list', $feature_list, 10800 ); + set_site_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS ); $category_translations = array( 'Colors' => __( 'Colors' ),