From ae78742444ef7d9060707f19fdbc60cd3470359d Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 25 Mar 2017 15:30:41 +0000 Subject: [PATCH] Multisite: After [40305], rename `clean_site_details_cache()` method as it's not really private. See #40063. git-svn-id: https://develop.svn.wordpress.org/trunk@40333 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-blogs.php | 3 +-- src/wp-includes/ms-default-filters.php | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index 1c22e424d6..cf34289a44 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/wp-includes/ms-blogs.php @@ -476,11 +476,10 @@ function clean_blog_cache( $blog ) { * Cleans the site details cache for a site. * * @since 4.7.4 - * @private * * @param int $site_id Optional. Site ID. Default is the current site ID. */ -function _clean_site_details_cache( $site_id = 0 ) { +function clean_site_details_cache( $site_id = 0 ) { $site_id = (int) $site_id; if ( ! $site_id ) { $site_id = get_current_blog_id(); diff --git a/src/wp-includes/ms-default-filters.php b/src/wp-includes/ms-default-filters.php index 011a71259a..9adce23b32 100644 --- a/src/wp-includes/ms-default-filters.php +++ b/src/wp-includes/ms-default-filters.php @@ -85,10 +85,10 @@ remove_filter( 'option_siteurl', '_config_wp_siteurl' ); remove_filter( 'option_home', '_config_wp_home' ); // Some options changes should trigger site details refresh. -add_action( 'update_option_blogname', '_clean_site_details_cache', 10, 0 ); -add_action( 'update_option_siteurl', '_clean_site_details_cache', 10, 0 ); -add_action( 'update_option_post_count', '_clean_site_details_cache', 10, 0 ); -add_action( 'update_option_home', '_clean_site_details_cache', 10, 0 ); +add_action( 'update_option_blogname', 'clean_site_details_cache', 10, 0 ); +add_action( 'update_option_siteurl', 'clean_site_details_cache', 10, 0 ); +add_action( 'update_option_post_count', 'clean_site_details_cache', 10, 0 ); +add_action( 'update_option_home', 'clean_site_details_cache', 10, 0 ); // If the network upgrade hasn't run yet, assume ms-files.php rewriting is used. add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );