[wp-trac] [WordPress Trac] #39256: REST API: Multiple issues with setting dates of posts
WordPress Trac
noreply at wordpress.org
Tue Feb 21 01:32:05 UTC 2017
#39256: REST API: Multiple issues with setting dates of posts
--------------------------------------+-----------------------
Reporter: jnylen0 | Owner: jnylen0
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.7.3
Component: REST API | Version: 4.7
Severity: major | Resolution:
Keywords: has-unit-tests has-patch | Focuses:
--------------------------------------+-----------------------
Comment (by dd32):
Replying to [comment:12 jnylen0]:
> [attachment:39256.4.diff] is ready for commit, but it would be nice to
modify `rest_get_date_with_gmt` in place rather than deprecating it. I
think this should be fine, @dd32 do you agree?
@jnylen0 It looks like altering the function to simply handle a timezone
on the input string is sane, without deprecating or adding an extra flag.
It doesn't appear that any code which would be using that function would
expect that the timezone data would be discarded, so seems fine.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39256#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list