Make WordPress Core

Ticket #36203: 36203.patch

File 36203.patch, 762 bytes (added by spacedmonkey, 9 years ago)
  • wp-includes/ms-blogs.php

    diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php
    index 9108d59..33b4349 100644
    a b function clean_blog_cache( $blog ) { 
    454454        wp_cache_delete( 'current_blog_' . $blog->domain . $blog->path, 'site-options' );
    455455        wp_cache_delete( 'get_id_from_blogname_' . trim( $blog->path, '/' ), 'blog-details' );
    456456        wp_cache_delete( $domain_path_key, 'blog-id-cache' );
     457
     458        /**
     459         * Fires immediately after a site has been removed from the object cache.
     460         *
     461         * @since 4.6.0
     462         *
     463         * @param int     $id Blog ID.
     464         * @param WP_Site $blog
     465         * @param String  $domain_path_key md5 of domain and path.
     466         */
     467        do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key );
    457468}
    458469
    459470/**