Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35224 closed defect (bug) (fixed)

Incorrect docs for rest_parse_date

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

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 11 years ago.

Download all attachments as: .zip

Change History (4)

#1 @TimothyBlynJacobs
11 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review4.5

#3 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 36086:

Docs: Correct @return type for rest_parse_date().

Props TimothyBlynJacobs.
Fixes #35224.

Note: See TracTickets for help on using tickets.