WordPress.org

Make WordPress Core

Changeset 36735


Ignore:
Timestamp:
02/26/2016 05:09:23 PM (6 years ago)
Author:
DrewAPicture
Message:

Docs: Correctly document parameters in the hook doc for the get_meta_sql filter as individual parameters rather than an array.

When an array of parameters is passed to do_action|apply_filters_ref_array, parameters should be documented as individuals instead of as part of the whole.

Props sudar.
Fixes #35962.

File:
1 edited

Legend:

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

    r36609 r36735  
    348348         * @since 3.1.0
    349349         *
    350          * @param array $args {
    351          *     An array of meta query SQL arguments.
    352          *
    353          *     @type array  $clauses           Array containing the query's JOIN and WHERE clauses.
    354          *     @type array  $queries           Array of meta queries.
    355          *     @type string $type              Type of meta.
    356          *     @type string $primary_table     Primary table.
    357          *     @type string $primary_id_column Primary column ID.
    358          *     @type object $context           The main query object.
    359          * }
     350         * @param array  $clauses           Array containing the query's JOIN and WHERE clauses.
     351         * @param array  $queries           Array of meta queries.
     352         * @param string $type              Type of meta.
     353         * @param string $primary_table     Primary table.
     354         * @param string $primary_id_column Primary column ID.
     355         * @param object $context           The main query object.
    360356         */
    361357        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.