WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22377


Ignore:
Timestamp:
11/07/2012 12:06:34 PM (6 years ago)
Author:
rmccue
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22377 – Description

    initial v1  
    1414fall back to `pre_set_site_transient_update_plugins`. WordPress, however, sets
    1515this 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"
    1817and then once afterwards with the actual result.
    1918
    20 This is only a minor inconvience, but it appears to be somewhat fragile.
     19This is only a minor inconvenience, but it appears to be somewhat fragile.
    2120Ensuring that a plugin's custom code doesn't run on the first `set_transient()`
    2221requires setting a flag, and this is prone to breaking if `wp_update_plugins()`