Make WordPress Core


Ignore:
Timestamp:
12/15/2014 08:54:14 AM (10 years ago)
Author:
nacin
Message:

Rename _wp_clear_update_cache() to wp_clean_update_cache().

This makes it match most cache-clearing functions, including the ones it wraps. Also no need for it to be prefixed as "private."

wp_clean_plugins_cache() doesn't always exist, so as a quick fix, clear the transient we care to clear.

see #30369.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r30762 r30856  
    18461846
    18471847        if ( $parsed_args['clear_update_cache'] ) {
    1848             _wp_clear_update_cache();
     1848            wp_clean_update_cache();
    18491849        }
    18501850
     
    27772777
    27782778            // Clear existing caches
    2779             _wp_clear_update_cache();
     2779            wp_clean_update_cache();
    27802780
    27812781            wp_version_check();  // check for Core updates
Note: See TracChangeset for help on using the changeset viewer.