WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40878, comment 15


Ignore:
Timestamp:
02/13/2018 05:37:38 PM (2 years ago)
Author:
ryelle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40878, comment 15

    initial v1  
    55- `GET /wp/v2/menu-items/?menus=2` for a list of menu items in menu with ID=2
    66
    7 I've added these so that we can get a Custom/Navigation Menu block in gutenberg, see [https://github.com/WordPress/gutenberg/issues/1466 this issue] & PR (coming soon). These are read-only, and they contain the extra menu-related fields like `target`, `classes`, `attr_title`, etc. This also replaces the post's `link` with the menu destination link (the link to the `nav_menu_item` post type does not exist).
     7I've added these so that we can get a Custom/Navigation Menu block in gutenberg, see [https://github.com/WordPress/gutenberg/issues/1466 this issue] & [https://github.com/WordPress/gutenberg/pull/5036 PR]. These are read-only, and they contain the extra menu-related fields like `target`, `classes`, `attr_title`, etc. This also replaces the post's `link` with the menu destination link (the link to the `nav_menu_item` post type does not exist).
    88
    99For reference, the endpoints from schlessera's patch: