Make WordPress Core


Ignore:
Timestamp:
03/09/2016 07:41:34 AM (9 years ago)
Author:
jeremyfelt
Message:

Docs: Update param/return types for WP_Site in ms-blogs.php

  • get_blog_details() now returns a WP_Site object.
  • clean_blog_cache() is now called with a WP_Site object.

See #32450.

File:
1 edited

Legend:

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

    r36416 r36894  
    116116 * @param bool             $get_all Whether to retrieve all details or only the details in the blogs table.
    117117 *                                  Default is true.
    118  * @return object|false Blog details on success. False on failure.
     118 * @return WP_Site|false Blog details on success. False on failure.
    119119 */
    120120function get_blog_details( $fields = null, $get_all = true ) {
     
    441441 * @since 3.5.0
    442442 *
    443  * @param stdClass $blog The blog details as returned from get_blog_details()
     443 * @param WP_Site $blog The blog details as returned from get_blog_details()
    444444 */
    445445function clean_blog_cache( $blog ) {
Note: See TracChangeset for help on using the changeset viewer.