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 trace config startup logic #82

Open bobbingwide opened 4 years ago

bobbingwide commented 4 years ago

oik-bwtrace v2.x used to support a constant named BW_TRACE_CONFIG_STARTUP. Its purpose was to enable tracing as soon as the wp-config.php file was loaded.

Requirement

Enable tracing from the loading of the wp-config.php file

define( 'BW_TRACE_CONFIG_STARTUP', true );
if ( file_exists( ABSPATH . '/wp-content/plugins/oik-bwtrace/libs/bwtrace.php' ) ) { 
  require_once( ABSPATH . '/wp-content/plugins/oik-bwtrace/libs/bwtrace.php' );
}  

Proposed solution