[wp-trac] [WordPress Trac] #42970: Add a 'rest_nonce_action' filter to the REST API
WordPress Trac
noreply at wordpress.org
Fri Nov 29 03:00:55 UTC 2019
#42970: Add a 'rest_nonce_action' filter to the REST API
-----------------------------+------------------------------
Reporter: enlightenedpie | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch close | Focuses: rest-api
-----------------------------+------------------------------
Changes (by TimothyBlynJacobs):
* keywords: has-patch => has-patch close
Comment:
I wonder how practical using this filter would be. If a site changed the
REST API action with that filter, all the plugins that were creating a
`wp_rest` nonce to call the REST API would no longer work. As such, the
practicality here seems quite small and would probably be better served by
a custom authentication filter. Because of that I think it may make sense
to close the ticket, conditionally adding a close keyword.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42970#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list