WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#35224 closed defect (bug) (fixed)

Incorrect docs for rest_parse_date

Reported by: TimothyBlynJacobs Owned by: SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version: 4.4
Component: REST API Keywords: has-patch
Focuses: docs Cc:

Description

The rest_parse_date() function returns a unix timestamp, but the docs say it returns a DateTime instance.

Attachments (1)

35224.diff (736 bytes) - added by TimothyBlynJacobs 5 years ago.

Download all attachments as: .zip

Change History (4)

#1 @TimothyBlynJacobs
5 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 4.5

#3 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 36086:

Docs: Correct @return type for rest_parse_date().

Props TimothyBlynJacobs.
Fixes #35224.

Note: See TracTickets for help on using tickets.