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

bw_trace_c3() should not produce HTML comments after "load-async-upload.php" action #38

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

While testing of the new version of the WordPress-Importer I noted a problem which I initially raised as https://github.com/humanmade/WordPress-Importer/issues/46

The problem when running locally was due to the tracing I'd enabled to attempt to detect the problem I'd noted running on a remote server.

As suspected, it was the trace shutdown logic that was writing HTML comments back to some JavaScript that couldn't cater for it.

Solution

Don't write HTML comments when load_async-upload.php has been performed.