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' );