rollbar / rollbar-php-wordpress

Official WordPress plugin from Rollbar, Inc.
https://rollbar.com/
GNU General Public License v2.0
15 stars 20 forks source link

Constant notice: The REST API route definition for <code>rollbar/v1/test-php-logging</code> is missing the required <code>permission_callback</code> argument. #99

Closed brandoncc closed 3 years ago

brandoncc commented 3 years ago

Hello,

Thanks for this excellent plugin. It seems Wordpress 5.5 made some changes which cause a constant flow of these warnings in my rollbar reports:

E_USER_NOTICE: register_rest_route was called incorrectly. The REST API route definition for rollbar/v1/test-php-logging 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.)

brandoncc commented 3 years ago

It looks like this is actually fixed by #96. Please merge and ship the fix when you have the bandwidth 😄