Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (9 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-comment-query.php

    r42376 r42875  
    450450                 * @since 3.1.0
    451451                 *
    452                  * @param array            $_comments An array of comments.
    453                  * @param WP_Comment_Query $this     Current instance of WP_Comment_Query (passed by reference).
     452                 * @param WP_Comment[]     $_comments An array of comments.
     453                 * @param WP_Comment_Query $this      Current instance of WP_Comment_Query (passed by reference).
    454454                 */
    455455                $_comments = apply_filters_ref_array( 'the_comments', array( $_comments, &$this ) );
    … …  
    850850                 * @since 3.1.0
    851851                 *
    852                  * @param array            $pieces A compacted array of comment query clauses.
    853                  * @param WP_Comment_Query $this  Current instance of WP_Comment_Query (passed by reference).
     852                 * @param string[]         $pieces An associative array of comment query clauses.
     853                 * @param WP_Comment_Query $this   Current instance of WP_Comment_Query (passed by reference).
    854854                 */
    855855                $clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) );
    … …  
    933933         * @global wpdb $wpdb WordPress database abstraction object.
    934934         *
    935          * @param array $comments Array of top-level comments whose descendants should be filled in.
     935         * @param WP_Comment[] $comments Array of top-level comments whose descendants should be filled in.
    936936         * @return array
    937937         */
Note: See TracChangeset for help on using the changeset viewer.