Opened 12 years ago
Closed 12 years ago
#28124 closed enhancement (fixed)
Use a time constant instead of a number in get_theme_feature_list()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.0 | Priority: | normal |
| Severity: | trivial | Version: | 3.5 |
| Component: | Themes | Keywords: | good-first-bug has-patch |
| Focuses: | Cc: |
Description
We use 10800 twice in get_theme_feature_list(): tags/3.9/src/wp-admin/includes/theme.php#L240.
3 * HOUR_IN_SECONDS should be used instead, see [21996] and [23175].
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Second patch, day after contributors day at WordCamp Switzerland! :)
So the 28124.diff takes care of what you wanted. :)
I did some search inside
wp-adminand found following things:File
wp-admin/load-styles.php$expires_offset = 31536000; // 1 yearFile
wp-admin/load-scripts.php$expires_offset = 31536000; // 1 yearFile
wp-admin/includes/class-wp-upgrader.php// 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 ) );Should that be updated via this ticket or a new one?