Bug : Notice: register_rest_route is called the wrong way
-
Hi Joel,
Since WordPress update to 5.6.2, I’ve got this bug notice.
Notice: register_rest_route is called the wrong way. For REST API routes that are intended to be public, use __return_true as a permission callback.
I added API REST user rights by adding the following code in shp-icon/src/Plugin.php
after line 204.'permission_callback' => function () { return current_user_can( 'edit_posts' ); },
Can you tell me if it’s good?
I no longer have a bug notification at the moment.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug : Notice: register_rest_route is called the wrong way’ is closed to new replies.