Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31503


Ignore:
Timestamp:
03/02/2015 12:57:07 PM (10 years ago)
Author:
SergeyBiryukov
Comment:

Introduced in [30856] ([30870] for the 4.1 branch).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31503

    • Property Milestone changed from Awaiting Review to 4.2
  • Ticket #31503 – Description

    initial v1  
    11I may be mistaken, but there seems to be a flaw in wp_clean_update_cache. here is teh existing code:
     2{{{
    23/**
    34 * Clear existing update caches for plugins, themes, and core.
     
    1516        delete_site_transient( 'update_core' );
    1617}
     18}}}
    1719If the function 'wp_clean_plugins_cache' exists, then it is called twice, once in the if...else and once outside the if...else.
    1820If the function wp_clean_plugins_cache does not exist then delete_site_transient( 'update_plugins' ); will run (the else) but then you will get a fatal error 'call to an undefined function.