‘register_rest_route’ Not Being Called Correctly
-
Hi,
This seems to have only become a problem since we updated to WordPress 5.5. The actual problem occurs in the
initialize_update_user_route
method of theSyncDiscourseUser
class. Apparentlyregister_rest_route
now requires that you have apermission_callback
. I added'permission_callback' => '__return_true'
after line 53, and the problem went away. We are using WP Discourse version 2.1.2Regards,
Mark Pemburn
Blue Ocean Ideas
- The topic ‘‘register_rest_route’ Not Being Called Correctly’ is closed to new replies.