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/date.php

    r42343 r42876  
    500500             * @since 4.1.0 Added 'user_registered' to the default recognized columns.
    501501             *
    502              * @param array $valid_columns An array of valid date query columns. Defaults
    503              *                             are 'post_date', 'post_date_gmt', 'post_modified',
    504              *                             'post_modified_gmt', 'comment_date', 'comment_date_gmt',
    505              *                             'user_registered'
     502             * @param string[] $valid_columns An array of valid date query columns. Defaults
     503             *                                are 'post_date', 'post_date_gmt', 'post_modified',
     504             *                                'post_modified_gmt', 'comment_date', 'comment_date_gmt',
     505             *                                'user_registered'
    506506             */
    507507            if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.