WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/25/2018 07:32:24 PM (4 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-query.php

    r42843 r42876  
    13801380     * @since 3.7.0
    13811381     *
    1382      * @param array $terms Terms to check.
     1382     * @param string[] $terms Array of terms to check.
    13831383     * @return array Terms that are not stopwords.
    13841384     */
     
    14481448         * @since 3.7.0
    14491449         *
    1450          * @param array $stopwords Stopwords.
     1450         * @param string[] $stopwords Array of stopwords.
    14511451         */
    14521452        $this->stopwords = apply_filters( 'wp_search_stopwords', $stopwords );
     
    26952695             * @since 3.1.0
    26962696             *
    2697              * @param array    $clauses The list of clauses for the query.
     2697             * @param string[] $clauses Associative array of the clauses for the query.
    26982698             * @param WP_Query $this    The WP_Query instance (passed by reference).
    26992699             */
     
    28192819             * @since 3.1.0
    28202820             *
    2821              * @param array    $pieces The pieces of the query.
     2821             * @param string[] $pieces Associative array of the pieces of the query.
    28222822             * @param WP_Query $this   The WP_Query instance (passed by reference).
    28232823             */
     
    29662966             * @since 2.3.0
    29672967             *
    2968              * @param array    $posts The post results array.
    2969              * @param WP_Query $this The WP_Query instance (passed by reference).
     2968             * @param WP_Post[] $posts Array of post objects.
     2969             * @param WP_Query  $this The WP_Query instance (passed by reference).
    29702970             */
    29712971            $this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) );
     
    31033103             * @since 1.5.0
    31043104             *
    3105              * @param array    $posts The array of retrieved posts.
    3106              * @param WP_Query $this The WP_Query instance (passed by reference).
     3105             * @param WP_Post[] $posts Array of post objects.
     3106             * @param WP_Query  $this The WP_Query instance (passed by reference).
    31073107             */
    31083108            $this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) );
     
    41784178         * @since 4.4.0
    41794179         *
    4180          * @param array   $pages Array of "pages" derived from the post content.
    4181          *                       of `<!-- nextpage -->` tags..
    4182          * @param WP_Post $post  Current post object.
     4180         * @param string[] $pages Array of "pages" from the post content split by `<!-- nextpage -->` tags.
     4181         * @param WP_Post  $post  Current post object.
    41834182         */
    41844183        $pages = apply_filters( 'content_pagination', $pages, $post );
Note: See TracChangeset for help on using the changeset viewer.