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
This commit is contained in:
parent
1e7b157523
commit
ae78742444
@ -476,11 +476,10 @@ function clean_blog_cache( $blog ) {
|
|||||||
* Cleans the site details cache for a site.
|
* Cleans the site details cache for a site.
|
||||||
*
|
*
|
||||||
* @since 4.7.4
|
* @since 4.7.4
|
||||||
* @private
|
|
||||||
*
|
*
|
||||||
* @param int $site_id Optional. Site ID. Default is the current site ID.
|
* @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;
|
$site_id = (int) $site_id;
|
||||||
if ( ! $site_id ) {
|
if ( ! $site_id ) {
|
||||||
$site_id = get_current_blog_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' );
|
remove_filter( 'option_home', '_config_wp_home' );
|
||||||
|
|
||||||
// Some options changes should trigger site details refresh.
|
// Some options changes should trigger site details refresh.
|
||||||
add_action( 'update_option_blogname', '_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_siteurl', 'clean_site_details_cache', 10, 0 );
|
||||||
add_action( 'update_option_post_count', '_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_home', 'clean_site_details_cache', 10, 0 );
|
||||||
|
|
||||||
// If the network upgrade hasn't run yet, assume ms-files.php rewriting is used.
|
// 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' );
|
add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );
|
||||||
|
Loading…
Reference in New Issue
Block a user