Make WordPress Core

Ticket #65118: network-query.patch

File network-query.patch, 1.9 KB (added by baikare.sandeep007, 5 weeks ago)

network query comment documentation improvements

  • src/wp-includes/class-wp-network-query.php

    diff --git a/src/wp-includes/class-wp-network-query.php b/src/wp-includes/class-wp-network-query.php
    index 15600998ad..811a249b6b 100644
    a b class WP_Network_Query { 
    2121         * SQL for database query.
    2222         *
    2323         * @since 4.6.0
    24          * @var string
     24         * @var string SQL statement for the last performed network query.
    2525         */
    2626        public $request;
    2727
    class WP_Network_Query { 
    2929         * SQL query clauses.
    3030         *
    3131         * @since 4.6.0
    32          * @var array
     32         * @var array{
     33         *     select: string,
     34         *     from: string,
     35         *     where: array,
     36         *     groupby: string,
     37         *     orderby: string,
     38         *     limits: string
     39         * }
     40         * Associative array of SQL query clauses used to build the request.
    3341         */
    3442        protected $sql_clauses = array(
    3543                'select'  => '',
    class WP_Network_Query { 
    4452         * Query vars set by the user.
    4553         *
    4654         * @since 4.6.0
    47          * @var array
     55         * @var array<string, mixed> Query variables for the current query.
    4856         */
    4957        public $query_vars;
    5058
    class WP_Network_Query { 
    5260         * Default values for query vars.
    5361         *
    5462         * @since 4.6.0
    55          * @var array
     63         * @var array<string, mixed> Default values for query variables.
    5664         */
    5765        public $query_var_defaults;
    5866
    class WP_Network_Query { 
    6068         * List of networks located by the query.
    6169         *
    6270         * @since 4.6.0
    63          * @var array
     71         * @var WP_Network[]|int[] Array of WP_Network objects or network IDs, depending on 'fields' parameter.
    6472         */
    6573        public $networks;
    6674
    class WP_Network_Query { 
    6876         * The amount of found networks for the current query.
    6977         *
    7078         * @since 4.6.0
    71          * @var int
     79         * @var int Number of networks found for the current query.
    7280         */
    7381        public $found_networks = 0;
    7482
    class WP_Network_Query { 
    7684         * The number of pages.
    7785         *
    7886         * @since 4.6.0
    79          * @var int
     87         * @var int Number of pages of results for the current query.
    8088         */
    8189        public $max_num_pages = 0;
    8290