thebatclaudio / wp-rest-api-v2-menus

Adding menus endpoints on WP REST API v2
47 stars 22 forks source link

Notice: register_rest_route was called incorrectly in WP 5.5 #36

Closed uuganaa1333 closed 4 years ago

uuganaa1333 commented 4 years ago

Hello, I updated my WP to 5.5 and I am getting this warning when I create or edit posts/pages.

image

Notice: register_rest_route was called incorrectly. The REST API route definition for menus/v1/menus is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225 Notice: register_rest_route was called incorrectly. The REST API route definition for menus/v1/menus/(?P[a-zA-Z0-9_-]+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225 Notice: register_rest_route was called incorrectly. The REST API route definition for menus/v1/locations/(?P[a-zA-Z0-9_-]+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html/wp-includes/functions.php on line 5225 Notice: register_rest_route was called incorrectly. The REST API route definition for menus/v1/locations is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback...