Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#35224 closed defect (bug) (fixed)

Incorrect docs for rest_parse_date

Reported by: timothyblynjacobs's profile TimothyBlynJacobs Owned by: sergeybiryukov's profile 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 7 years ago.

Download all attachments as: .zip

Change History (4)

#1 @TimothyBlynJacobs
7 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
7 years ago

  • Milestone changed from Awaiting Review to 4.5

#3 @SergeyBiryukov
7 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.