Support » Plugin: Cerber Security & Antispam » PHP notice fails REST API return

  • Resolved 7studio

    (@7studio)


    Hi Gregory,

    It seems that WP has deprecated the rest_enabled filter since its version 4.7.0 and your plugin (wp-cerber.php on line 1577) applies it without checking the WP version. In this circumstance, WP throws a PHP Notice each time you do an API request and it’s really annoying when you wait for a right formatted JSON in JavaScript 😉
    Can you add a condition to apply the right filter (rest_enabled or rest_jsonp_enabled) and avoid this particular case?

    Hope this issue contributes to your plugin,
    Xavier.

    • This topic was modified 1 week, 1 day ago by  7studio.
    • This topic was modified 1 week, 1 day ago by  7studio.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.