diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php index 920e5d8b37..2d568a57f5 100644 --- a/wp-includes/ms-site.php +++ b/wp-includes/ms-site.php @@ -380,6 +380,10 @@ function update_site_cache( $sites, $update_meta_cache = true ) { * @return array|false Returns false if there is nothing to update. Returns an array of metadata on success. */ function update_sitemeta_cache( $site_ids ) { + // Ensure this filter is hooked in even if the function is called early. + if ( ! has_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' ) ) { + add_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' ); + } return update_meta_cache( 'blog', $site_ids ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ea6d0ed45..0b0092158e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-44924'; +$wp_version = '5.2-alpha-44925'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.