Make WordPress Core


Ignore:
Timestamp:
11/23/2021 09:35:57 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections and improvements.

See #53399

File:
1 edited

Legend:

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

    r52226 r52236  
    339339     * @since 3.2.0
    340340     *
    341      * @param string $type              Type of meta, eg 'user', 'post'.
     341     * @param string $type              Type of meta. Possible values include but are not limited
     342     *                                  to 'post', 'comment', 'blog', 'term', and 'user'.
    342343     * @param string $primary_table     Database table where the object being filtered is stored (eg wp_users).
    343344     * @param string $primary_id_column ID column for the filtered object in $primary_table.
    344      * @param object $context           Optional. The main query object.
    345      * @return array|false {
    346      *     Array containing JOIN and WHERE SQL clauses to append to the main query.
     345     * @param object $context           Optional. The main query object that corresponds to the type, for
     346     *                                  example a `WP_Query`, `WP_User_Query`, or `WP_Site_Query`.
     347     * @return string[]|false {
     348     *     Array containing JOIN and WHERE SQL clauses to append to the main query,
     349     *     or false if no table exists for the requested meta type.
    347350     *
    348351     *     @type string $join  SQL fragment to append to the main JOIN clause.
     
    379382         * @since 3.1.0
    380383         *
    381          * @param array  $sql               Array containing the query's JOIN and WHERE clauses.
    382          * @param array  $queries           Array of meta queries.
    383          * @param string $type              Type of meta.
    384          * @param string $primary_table     Primary table.
    385          * @param string $primary_id_column Primary column ID.
    386          * @param object $context           The main query object.
     384         * @param string[] $sql               Array containing the query's JOIN and WHERE clauses.
     385         * @param array    $queries           Array of meta queries.
     386         * @param string   $type              Type of meta. Possible values include but are not limited
     387         *                                    to 'post', 'comment', 'blog', 'term', and 'user'.
     388         * @param string   $primary_table     Primary table.
     389         * @param string   $primary_id_column Primary column ID.
     390         * @param object   $context           The main query object that corresponds to the type, for
     391         *                                    example a `WP_Query`, `WP_User_Query`, or `WP_Site_Query`.
    387392         */
    388393        return apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context ) );
Note: See TracChangeset for help on using the changeset viewer.