Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:21:46 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r46251 r46660  
    860860 * @since 5.3.0
    861861 *
    862  * @param int $network_id The network to get counts for.  Default is the current network id.
    863  * @return array Includes a grand total 'all' and an array of counts indexed by
    864  *                status strings: public, archived, mature, spam, deleted.
     862 * @param int $network_id Optional. The network to get counts for. Default is the current network ID.
     863 * @return int[] {
     864 *     Numbers of sites grouped by site status.
     865 *
     866 *     @type int $all      The total number of sites.
     867 *     @type int $public   The number of public sites.
     868 *     @type int $archived The number of archived sites.
     869 *     @type int $mature   The number of mature sites.
     870 *     @type int $spam     The number of spam sites.
     871 *     @type int $deleted  The number of deleted sites.
     872 * }
    865873 */
    866874function wp_count_sites( $network_id = null ) {
Note: See TracChangeset for help on using the changeset viewer.