bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

cater for REST API v2 #42

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

rest-api v2 ( https://github.com/WP-API/WP-API ) returns JSON to the requester. oik-bwtrace should not append HTML comments. In v1 the constant that was defined was JSON_REQUEST. v2 uses REST_REQUEST. bw_trace_ok_to_echo() should detect this.