Make WordPress Core


Ignore:
Timestamp:
05/22/2019 09:47:49 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for the_date() and the_weekday_date().

Correct type for $currentday and $previousday globals.

See #47354, #47110.

File:
1 edited

Legend:

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

    r45285 r45377  
    41704170     * @since 4.4.0 Added the ability to pass a post ID to `$post`.
    41714171     *
    4172      * @global int             $id
    4173      * @global WP_User         $authordata
    4174      * @global string|int|bool $currentday
    4175      * @global string|int|bool $currentmonth
    4176      * @global int             $page
    4177      * @global array           $pages
    4178      * @global int             $multipage
    4179      * @global int             $more
    4180      * @global int             $numpages
     4172     * @global int     $id
     4173     * @global WP_User $authordata
     4174     * @global string  $currentday
     4175     * @global string  $currentmonth
     4176     * @global int     $page
     4177     * @global array   $pages
     4178     * @global int     $multipage
     4179     * @global int     $more
     4180     * @global int     $numpages
    41814181     *
    41824182     * @param WP_Post|object|int $post WP_Post instance or Post ID/object.
Note: See TracChangeset for help on using the changeset viewer.