Make WordPress Core


Ignore:
Timestamp:
03/25/2018 07:32:24 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42343 r42876  
    239239         * @since 4.4.0
    240240         *
    241          * @param array $defaults   An array of default get_terms() arguments.
    242          * @param array $taxonomies An array of taxonomies.
     241         * @param array    $defaults   An array of default get_terms() arguments.
     242         * @param string[] $taxonomies An array of taxonomy names.
    243243         */
    244244        $this->query_var_defaults = apply_filters( 'get_terms_defaults', $this->query_var_defaults, $taxonomies );
     
    352352         * @since 3.1.0
    353353         *
    354          * @param array $args       An array of get_terms() arguments.
    355          * @param array $taxonomies An array of taxonomies.
     354         * @param array    $args       An array of get_terms() arguments.
     355         * @param string[] $taxonomies An array of taxonomy names.
    356356         */
    357357        $args = apply_filters( 'get_terms_args', $args, $taxonomies );
     
    464464         * @since 2.3.0
    465465         *
    466          * @param string $exclusions `NOT IN` clause of the terms query.
    467          * @param array  $args       An array of terms query arguments.
    468          * @param array  $taxonomies An array of taxonomies.
     466         * @param string   $exclusions `NOT IN` clause of the terms query.
     467         * @param array    $args       An array of terms query arguments.
     468         * @param string[] $taxonomies An array of taxonomy names.
    469469         */
    470470        $exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies );
     
    628628         * @since 2.8.0
    629629         *
    630          * @param array $selects    An array of fields to select for the terms query.
    631          * @param array $args       An array of term query arguments.
    632          * @param array $taxonomies An array of taxonomies.
     630         * @param string[] $selects    An array of fields to select for the terms query.
     631         * @param array    $args       An array of term query arguments.
     632         * @param string[] $taxonomies An array of taxonomy names.
    633633         */
    634634        $fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );
     
    647647         * @since 3.1.0
    648648         *
    649          * @param array $pieces     Terms query SQL clauses.
    650          * @param array $taxonomies An array of taxonomies.
    651          * @param array $args       An array of terms query arguments.
     649         * @param string[] $pieces     Array of query SQL clauses.
     650         * @param string[] $taxonomies An array of taxonomy names.
     651         * @param array    $args       An array of term query arguments.
    652652         */
    653653        $clauses = apply_filters( 'terms_clauses', compact( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' ), $taxonomies, $args );
     
    860860         * @since 2.8.0
    861861         *
    862          * @param string $orderby    `ORDERBY` clause of the terms query.
    863          * @param array  $args       An array of terms query arguments.
    864          * @param array  $taxonomies An array of taxonomies.
     862         * @param string   $orderby    `ORDERBY` clause of the terms query.
     863         * @param array    $args       An array of term query arguments.
     864         * @param string[] $taxonomies An array of taxonomy names.
    865865         */
    866866        $orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );
Note: See TracChangeset for help on using the changeset viewer.