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: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Themes | Version: | 3.5 |
| Severity: | trivial | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.phpShould that be updated via this ticket or a new one?