[wp-trac] [WordPress Trac] #50617: REST API: Add modified_before and modified_after to WP_REST_Request attributes
WordPress Trac
noreply at wordpress.org
Wed Jan 13 18:20:05 UTC 2021
#50617: REST API: Add modified_before and modified_after to WP_REST_Request
attributes
---------------------------+---------------------
Reporter: claytoncollie | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.7
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+---------------------
Comment (by claytoncollie):
Thanks for looking at this ticket @johnbillion
I found that if I created the post with the same `post_date` and
`post_modified` date, the test would pass. I also found that if the
`post_date` was some amount of time in the past compared to the
`post_modified` date, then my tests would fail. For this reason, I split
the post creation with the `post_date` value apart from the
`post_modified` being updated. The `post_date` and `post_modified` dates
are now 15 days apart. After doing it this way, all my tests pass.
Probably cannot have a `post_modified` value without a `post_date` value
in the past. Does that sound correct?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50617#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list