unfulvio / wp-api-menus

:abcd: Menu routes for WordPress JSON REST API.
https://wordpress.org/plugins/wp-api-menus
GNU General Public License v2.0
140 stars 59 forks source link

Fix rare instance of a PHP notice being thrown #51

Closed k1sul1 closed 2 years ago

k1sul1 commented 6 years ago

PHP Notice: Trying to get property of non-object in /data/wordpress/htdocs/wp-content/plugins/wp-api-menus/includes/wp-api-menus-v2.php on line 387

It returns null in the offending item when displayed in the REST response.

thefrosty commented 3 years ago

This would be fixed by #52