Support » Plugin: AdRoll for WooCommerce Stores » Incorrect implementation of `register_rest_route`

  • Hello, I ran across this issue this evening and was hoping someone could fix in a future update. I am testing an upgrade of my client’s site to WP 5.6 and Woo 4.8.0, and was checking the debug.log when I came across this error, since WP added a doingItWrong to this method in WordPress 5.5.

    Specific information on how to properly register rest routes nowadays can be found here : https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/#permissions-callback

    Thank you!

    [20-Dec-2020 21:59:07 UTC] PHP Notice: register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>adroll/v1/configure</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in \\xxxxxxxxxxxx\xxxxxxxx\wp-includes\functions.php on line 5311

Viewing 1 replies (of 1 total)
  • Plugin Author nextrollandersen

    (@nextrollandersen)

    Hi Dave, thanks so much for the in depth bug report!

    We will work on that to release in our next iteration

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.