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

Improve support for tracing REST requests #67

Closed bobbingwide closed 4 years ago

bobbingwide commented 6 years ago

With the new block editor using REST requests to get the data to display in dynamic blocks and document blocks we need an improved capability of tracing REST requests. Part of the solution is to support tracing of REST requests to a different set of files We also need more information in the trace log. The data to be traced is in the global $HTTP_RAW_POST_DATA. This is not normally available until the REST API has done its bit.

Hooking into 'rest_pre_echo_response' allows us to see both the incoming request and the response.

bobbingwide commented 6 years ago

Also update the Tested up to section of the readme.txt file.