Make WordPress Core

Changeset 38943


Ignore:
Timestamp:
10/26/2016 03:38:48 AM (9 years ago)
Author:
jeremyfelt
Message:

Multisite: Replace get_blog_details() in inline documentation.

Some documentation is now out of date and some can be replaced with a mention of get_site().

Fixes #37102.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r38936 r38943  
    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 ) {
  • trunk/src/wp-includes/ms-deprecated.php

    r38902 r38943  
    2020 * @since MU
    2121 * @deprecated 3.1.0 Use get_site()
    22  * @see get_blog_details()
    23  *
    24  * @return int Current site ID.
     22 * @see get_site()
     23 *
     24 * @return WP_Site Current site object.
    2525 */
    2626function get_dashboard_blog() {
  • trunk/src/wp-includes/ms-functions.php

    r38914 r38943  
    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
  • trunk/src/wp-includes/ms-load.php

    r38904 r38943  
    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.
     
    244244
    245245    if ( $site ) {
    246         // @todo get_blog_details()
    247246        return $site;
    248247    }
Note: See TracChangeset for help on using the changeset viewer.