[wp-trac] [WordPress Trac] #40748: Use REST API for Community Events
WordPress Trac
noreply at wordpress.org
Wed May 17 06:38:09 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 rmccue):
Replying to [comment:7 rmccue]:
> Because there's no other dashboard-only endpoints added yet, this
includes the minimal infrastructure work to get that happening. In
particular, it adds the new `wp-admin/includes/rest-endpoints.php` file,
which is loaded in `wp-settings.php`. We might want to move this to
`create_initial_rest_routes` to avoid loading an admin file on every page
load.
Also worth noting: adding this infrastructure makes it way easier to add
more endpoints for new features in the future, since it establishes the
pattern. Basically, the process changes from adding an item to the `admin-
ajax.php` list and making a specially-named function, to adding the
register call and a function to implement it.
(Once we've finalised the naming of this new namespace and bikeshedded it,
I'll also enshrine this into the Core Handbook.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40748#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list