[wp-trac] [WordPress Trac] #40748: Use REST API for Community Events
WordPress Trac
noreply at wordpress.org
Wed May 17 06:56:31 UTC 2017
#40748: Use REST API for Community Events
-------------------------------------------------+-------------------------
Reporter: iandunn | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: REST API | Release
Severity: normal | Version: trunk
Keywords: has-patch dev-feedback needs-unit- | Resolution:
tests | Focuses: javascript
-------------------------------------------------+-------------------------
Comment (by joehoyle):
I agree with @rmccue that we don't need fully-fledged endpoints for this,
as it's really just an alternative to admin-ajax and not part of the `/wp`
namespace. I think all we need to do is set a good precedent for using the
REST API as an ajax router (in this case). If I were to add anything I'd
also add an GET endpoint, and use `rest_do_request` to populate the PHP
data server-side too. This is again a good example to lay down for future
REST API admin work.
Given the simplicity of 40748.2.diff I think we could probably drop this
in 4.8, but I understand @matt's reluctance to do that given how late it
is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40748#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list