An user reported here that WordPress Popular Posts is throwing a PHP notice under WordPress version 5.5 that says:
Notice: register_rest_route was called incorrectly. The REST API route definition for wordpress-popular-posts/v1/popular-posts/widget/(?P[\d]+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback.
I couldn't reproduce the issue myself but adding the permission_callback argument as requested won't hurt.
Describe the bug
An user reported here that WordPress Popular Posts is throwing a PHP notice under WordPress version 5.5 that says:
I couldn't reproduce the issue myself but adding the
permission_callback
argument as requested won't hurt.To Reproduce
Steps to reproduce the behavior: