PHP Notice in Block Editor
-
Hi,
When editing a post using the block editor, with WP_DEBUG enabled, I can see the following notice (behind the editor):
“Notice: register_rest_route was called incorrectly. The REST API route definition for lw/v1/sso is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback.”
This is being caused by the register_rest_route() function call in
learnworlds-sso/class.learnworlds-sso-route.php
on line 56.Adding
'permission_callback' => '__return_true'
to the function args array would resolve this.Thanks!
- The topic ‘PHP Notice in Block Editor’ is closed to new replies.