Make WordPress Core


Ignore:
Timestamp:
09/11/2024 12:06:15 PM (18 months ago)
Author:
johnbillion
Message:

Docs: Various docblock improvements and corrections.

See #61608

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-site-query.php

    r58454 r59009  
    264264     *
    265265     * @param string|array $query Array or URL query string of parameters.
    266      * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
    267      *                   or the number of sites when 'count' is passed as a query var.
     266     * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
     267     *                             or the number of sites when 'count' is passed as a query var.
    268268     */
    269269    public function query( $query ) {
     
    280280     * @global wpdb $wpdb WordPress database abstraction object.
    281281     *
    282      * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
    283      *                   or the number of sites when 'count' is passed as a query var.
     282     * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
     283     *                             or the number of sites when 'count' is passed as a query var.
    284284     */
    285285    public function get_sites() {
     
    334334         *              of the current WP_Site_Query instance.
    335335         *
    336          * @param array|int|null $site_data Return an array of site data to short-circuit WP's site query,
    337          *                                  the site count as an integer if `$this->query_vars['count']` is set,
    338          *                                  or null to run the normal queries.
    339          * @param WP_Site_Query  $query     The WP_Site_Query instance, passed by reference.
     336         * @param WP_Site[]|int[]|int|null $site_data Return an array of site data to short-circuit WP's site query,
     337         *                                            the site count as an integer if `$this->query_vars['count']` is set,
     338         *                                            or null to run the normal queries.
     339         * @param WP_Site_Query            $query     The WP_Site_Query instance, passed by reference.
    340340         */
    341341        $site_data = apply_filters_ref_array( 'sites_pre_query', array( $site_data, &$this ) );
Note: See TracChangeset for help on using the changeset viewer.