Make WordPress Core

Ticket #37102: 37102.diff

File 37102.diff, 2.3 KB (added by jeremyfelt, 9 years ago)
  • src/wp-includes/ms-blogs.php

     
    443443 *
    444444 * @since 3.5.0
    445445 *
    446  * @param WP_Site $blog The blog details as returned from get_blog_details()
     446 * @param WP_Site $blog The site object to be cleared from cache.
    447447 */
    448448function clean_blog_cache( $blog ) {
    449449        $blog_id = $blog->blog_id;
  • src/wp-includes/ms-deprecated.php

     
    1919 *
    2020 * @since MU
    2121 * @deprecated 3.1.0 Use get_site()
    22  * @see get_blog_details()
     22 * @see get_site()
    2323 *
    24  * @return int Current site ID.
     24 * @return WP_Site Current site object.
    2525 */
    2626function get_dashboard_blog() {
    2727    _deprecated_function( __FUNCTION__, '3.1.0' );
  • src/wp-includes/ms-functions.php

     
    17621762 *
    17631763 * WordPress MS stores a blog's post count as an option so as
    17641764 * to avoid extraneous COUNTs when a blog's details are fetched
    1765  * with get_blog_details(). This function is called when posts
    1766  * are published or unpublished to make sure the count stays current.
     1765 * with get_site(). This function is called when posts are published
     1766 * or unpublished to make sure the count stays current.
    17671767 *
    17681768 * @since MU
    17691769 *
  • src/wp-includes/ms-load.php

     
    211211
    212212        /*
    213213         * @todo
    214          * get_blog_details(), caching, etc. Consider alternative optimization routes,
     214         * caching, etc. Consider alternative optimization routes,
    215215         * perhaps as an opt-in for plugins, rather than using the pre_* filter.
    216216         * For example: The segments filter can expand or ignore paths.
    217217         * If persistent caching is enabled, we could query the DB for a path <> '/'
     
    243243        $site = array_shift( $result );
    244244
    245245        if ( $site ) {
    246                 // @todo get_blog_details()
    247246                return $site;
    248247        }
    249248