[wp-trac] [WordPress Trac] #40878: Adding menus route
WordPress Trac
noreply at wordpress.org
Sun Oct 22 13:03:38 UTC 2017
#40878: Adding menus route
------------------------------------+------------------------------
Reporter: dingo_bastard | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: rest-api
------------------------------------+------------------------------
Comment (by schlessera):
Some additional observations:
A first implementation I did created custom implementations for the menus
and menu-items controllers. However, I think the more correct approach is
to reuse the posts and terms controllers, and then add whatever
information is needed to the post-type/taxonomy registration arguments to
adapt them as needed.
With the above patch, the menu-items controller is just the standard posts
controller.
The only thing that the additional `menus-controller` now does is make the
menu items embeddable. But I think that could actually be a default for
all post-type/posts relationships.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40878#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list