WordPress.org

Make WordPress Core

Ticket #46167: 46167.2.diff

File 46167.2.diff, 622 bytes (added by spacedmonkey, 6 months ago)
  • src/wp-includes/ms-site.php

     
    380380 * @return array|false Returns false if there is nothing to update. Returns an array of metadata on success.
    381381 */
    382382function update_sitemeta_cache( $site_ids ) {
     383        if ( ! has_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' ) ) {
     384                add_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter' );
     385        }
    383386        return update_meta_cache( 'blog', $site_ids );
    384387}
    385388