PHP notice fails REST API return
-
Hi Gregory,
It seems that WP has deprecated the
rest_enabledfilter 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_enabledorrest_jsonp_enabled) and avoid this particular case?Hope this issue contributes to your plugin,
Xavier.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP notice fails REST API return’ is closed to new replies.