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

    r42419 r42876  
    1313     *
    1414     * @since 2.0.0
    15      * @var array
     15     * @var string[]
    1616     */
    1717    public $public_query_vars = array( 'm', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type', 'embed' );
     
    2323     *
    2424     * @since 2.0.0
    25      * @var array
     25     * @var string[]
    2626     */
    2727    public $private_query_vars = array( 'offset', 'posts_per_page', 'posts_per_archive_page', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', 'comments_per_page', 'post__in', 'post__not_in', 'post_parent', 'post_parent__in', 'post_parent__not_in', 'title', 'fields' );
     
    283283         * @since 1.5.0
    284284         *
    285          * @param array $public_query_vars The array of whitelisted query variables.
     285         * @param string[] $public_query_vars The array of whitelisted query variable names.
    286286         */
    287287        $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars );
     
    478478         * @since 2.8.0
    479479         *
    480          * @param array $headers The list of headers to be sent.
    481          * @param WP    $this    Current WordPress environment instance.
     480         * @param string[] $headers Associative array of headers to be sent.
     481         * @param WP       $this    Current WordPress environment instance.
    482482         */
    483483        $headers = apply_filters( 'wp_headers', $headers, $this );
Note: See TracChangeset for help on using the changeset viewer.