[wp-trac] [WordPress Trac] #39256: REST API: Multiple issues with setting dates of posts
WordPress Trac
noreply at wordpress.org
Wed Feb 1 21:31:48 UTC 2017
#39256: REST API: Multiple issues with setting dates of posts
----------------------------------------+--------------------
Reporter: jnylen0 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.3
Component: REST API | Version: 4.7
Severity: major | Resolution:
Keywords: needs-patch has-unit-tests | Focuses:
----------------------------------------+--------------------
Comment (by aduth):
- The `$has_timezone` regular expression could incorrectly match e.g.
`+99:99`, and does not match a valid `-0500` (omitting `:` permitted).
More accurate option might be `#(Z|[+-]([0-1]\d|2[0-4])(:?[0-5]\d)?)$#`
- `rest_get_date_with_gmt` had previously been the only function to call
`rest_parse_date` with a second parameter. Since it no longer does, should
we remove that argument altogether?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39256#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list