Changes between Initial Version and Version 1 of Ticket #22377
- Timestamp:
- 11/07/2012 12:06:34 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22377 – Description
initial v1 14 14 fall back to `pre_set_site_transient_update_plugins`. WordPress, however, sets 15 15 this transient twice, 16 [https://core.trac.wordpress.org/browser/trunk/wp-includes/update.php?rev=21996#L193 17 once before updating] "to prevent multiple blocking requests if request hangs" 16 [https://core.trac.wordpress.org/browser/trunk/wp-includes/update.php?rev=21996#L193 once before updating] "to prevent multiple blocking requests if request hangs" 18 17 and then once afterwards with the actual result. 19 18 20 This is only a minor inconv ience, but it appears to be somewhat fragile.19 This is only a minor inconvenience, but it appears to be somewhat fragile. 21 20 Ensuring that a plugin's custom code doesn't run on the first `set_transient()` 22 21 requires setting a flag, and this is prone to breaking if `wp_update_plugins()`