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

In some circumstances bw_trace_c3() calls undefined c() function #37

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

Sometimes, during shutdown processing, the bw_trace_c3() function invokes c() when the function doesn't exist. This produces unwanted PHP messages.

Proposal

Since this only happens in error situations we might as well just wrap the call to c() in an if function_exists( "c") test.