[wp-trac] [WordPress Trac] #50617: REST API: Add modified_before and modified_after to WP_REST_Request attributes
WordPress Trac
noreply at wordpress.org
Sun Jan 10 20:08:24 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 dev-feedback | Focuses:
------------------------------------+---------------------
Comment (by johnbillion):
For anybody who might be wondering, the post modified date is considered
public information so it's safe to add these as new REST API query
parameters. The modified date is exposed in the `modified` and
`modified_gmt` fields in an unauthenticated REST API request, and in the
`<updated>` element in an Atom feed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50617#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list