WordPress.org

Make WordPress Core

Changeset 40333


Ignore:
Timestamp:
03/25/2017 03:30:41 PM (14 months ago)
Author:
swissspidy
Message:

Multisite: After [40305], rename clean_site_details_cache() method as it's not really private.

See #40063.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r40305 r40333  
    477477 *
    478478 * @since 4.7.4
    479  * @private
    480479 *
    481480 * @param int $site_id Optional. Site ID. Default is the current site ID.
    482481 */
    483 function _clean_site_details_cache( $site_id = 0 ) {
     482function clean_site_details_cache( $site_id = 0 ) {
    484483    $site_id = (int) $site_id;
    485484    if ( ! $site_id ) {
  • trunk/src/wp-includes/ms-default-filters.php

    r40305 r40333  
    8686
    8787// Some options changes should trigger site details refresh.
    88 add_action( 'update_option_blogname',   '_clean_site_details_cache', 10, 0 );
    89 add_action( 'update_option_siteurl',    '_clean_site_details_cache', 10, 0 );
    90 add_action( 'update_option_post_count', '_clean_site_details_cache', 10, 0 );
    91 add_action( 'update_option_home',       '_clean_site_details_cache', 10, 0 );
     88add_action( 'update_option_blogname',   'clean_site_details_cache', 10, 0 );
     89add_action( 'update_option_siteurl',    'clean_site_details_cache', 10, 0 );
     90add_action( 'update_option_post_count', 'clean_site_details_cache', 10, 0 );
     91add_action( 'update_option_home',       'clean_site_details_cache', 10, 0 );
    9292
    9393// If the network upgrade hasn't run yet, assume ms-files.php rewriting is used.
Note: See TracChangeset for help on using the changeset viewer.