Multisite: After [40305], rename `clean_site_details_cache()` method as it's not really private.
See #40063. Built from https://develop.svn.wordpress.org/trunk@40333 git-svn-id: http://core.svn.wordpress.org/trunk@40240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8256ecfecb
commit
6216c997ba
|
@ -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();
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-40330';
|
||||
$wp_version = '4.8-alpha-40333';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue