Make WordPress Core

Opened 8 years ago

Closed 8 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 Owned by: desrosj
Priority: normal Milestone: 5.1
Component: Date/Time Version: 5.1
Severity: normal Keywords: has-patch commit
Cc: Focuses: docs

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 8 years ago.
patch

Download all attachments as: .zip

Change History (5)

@behzod
8 years ago

patch

#1 @behzod
8 years ago

  • Focuses docs added

#2 @SergeyBiryukov
8 years ago

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

#3 @desrosj
8 years ago

  • Owner changed from SergeyBiryukov to desrosj

#4 @desrosj
8 years ago

  • Resolution → fixed
  • Status reviewing → 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.