PHP Warning: Undefined variable $rest_api_route
-
Hello,
I’m getting lots of these warnings in error.log:
PHP Warning: Undefined variable $rest_api_route in ../varnish-http-purge/varnish-http-purge.php on line 976, referer: ../wp-admin/edit.php?product_tag=test&post_type=product&vhp_flush_do=object&_wpnonce=xxx&paged=2
It seems that
$rest_api_route
is defined only If json is NOT disabled (line 885) and when purging Custom Taxonomies it doesn’t checkif ( isset( $rest_api_route ) )
, as done for JSON API Permalink for the post based on type on line 903.Kind Regards
Dave
- The topic ‘PHP Warning: Undefined variable $rest_api_route’ is closed to new replies.