Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#45323 closed defect (bug) (fixed)

Docs: parameter name is wrong in the return descriptions of get_the_time(), get_post_time(), and get_post_modified_time()

Reported by: behzod's profile behzod Owned by: desrosj's profile desrosj
Milestone: 5.1 Priority: normal
Severity: normal Version: 5.1
Component: Date/Time Keywords: has-patch commit
Focuses: docs Cc:

Description

Parameter name ($id) is wrong in the return descriptions of get_the_time(), get_post_time(), and get_post_modified_time()

current description is:

* @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure.

must be:

* @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure.

Attachments (1)

typo-in-the-docblocks.diff (2.2 KB) - added by behzod 6 years ago.
patch

Download all attachments as: .zip

Change History (5)

@behzod
6 years ago

patch

#1 @behzod
6 years ago

  • Focuses docs added

#2 @SergeyBiryukov
6 years ago

  • Component changed from General to Date/Time
  • Keywords commit added
  • Milestone changed from Awaiting Review to 5.1
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @desrosj
6 years ago

  • Owner changed from SergeyBiryukov to desrosj

#4 @desrosj
6 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 44592:

Docs: Update inaccurate return descriptions.

In the @return tag description for get_post_modified_time(), get_the_time(), and get_post_time(), the $d parameter is incorrectly referred to as $id.

Props behzod.
Fixes #45323.

Note: See TracTickets for help on using tickets.