Make WordPress Core


Ignore:
Timestamp:
05/05/2014 08:25:46 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Use a time constant in get_theme_feature_list() and File_Upload_Upgrader.

props GaVrA.
fixes #28124.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r28137 r28253  
    16801680
    16811681            // schedule a cleanup for 2 hours from now in case of failed install
    1682             wp_schedule_single_event( time() + 7200, 'upgrader_scheduled_cleanup', array( $this->id ) );
     1682            wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) );
    16831683
    16841684        } elseif ( is_numeric( $_GET[$urlholder] ) ) {
Note: See TracChangeset for help on using the changeset viewer.