WP-API / menus-endpoints

Feature plugin for Menu Endpoints
43 stars 12 forks source link

PHP notice when accessing the menu-items endpoint #38

Closed draganescu closed 4 years ago

draganescu commented 5 years ago

Howdy,

Accessing wp/v2/menu-items/ results in:

<b>Notice</b>:  Undefined index: type in <b>/var/www/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php</b> on line <b>255</b><br />

The result is correct, but this notice invalidates the response of course.

spacedmonkey commented 5 years ago

I believe this is fixed in https://github.com/WP-API/menus-endpoints/pull/31

Still awaiting code review.