Make WordPress Core


Ignore:
Timestamp:
06/14/2016 06:13:03 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Update the documentation for get_site() and the get_site filter following the removal of the $output parameter in [37652].

Props flixos90.
See #35791.

File:
1 edited

Legend:

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

    r37652 r37699  
    480480 * @global WP_Site $current_blog The current site.
    481481 *
    482  * @param WP_Site|int $site Site to retrieve.
    483  * @return WP_Site|array|null Depends on $output value.
     482 * @param WP_Site|int|null $site Optional. Site to retrieve. Default is the current site.
     483 * @return WP_Site|null The site object or null if not found.
    484484 */
    485485function get_site( &$site = null ) {
     
    506506     * @since 4.6.0
    507507     *
    508      * @param mixed $_site Site data.
     508     * @param WP_Site $_site Site data.
    509509     */
    510510    $_site = apply_filters( 'get_site', $_site );
Note: See TracChangeset for help on using the changeset viewer.