You appear to be a bot. Output may be restricted
Description
Implement (lazy) trace startup from wp-config.phpWe cater for the follow defined constants
- define( 'BW_TRACE_ON', true );
- define( 'BW_ACTIONS_ON', true );
- define( 'BW_COUNT_ON', true );
- define( 'BW_TRACE_RESET', true );
- define( 'BW_ACTIONS_RESET', true );
Usage
bw_lazy_trace_config_startup();
Parameters
Returns
voidSource
File name: oik/includes/bwtrace.incLines:
1 to 44 of 44
function bw_lazy_trace_config_startup() { if ( defined( 'BW_TRACE_ON' ) ) $trace_on = BW_TRACE_ON; else $trace_on = false; if ( defined( 'BW_ACTIONS_ON' ) ) $actions_on = BW_ACTIONS_ON; else $actions_on = false; if ( defined( 'BW_COUNT_ON' ) ) $count_on = BW_COUNT_ON; else $count_on = false; if ( defined( 'BW_TRACE_RESET' ) ) $trace_reset = BW_TRACE_RESET; else $trace_reset = false; if ( defined( 'BW_ACTIONS_RESET' ) ) $actions_reset = BW_ACTIONS_RESET; else $actions_reset = false; if ( $trace_on ) { bw_trace_inc_init(); bw_trace_on( true ); if ( $trace_reset ) { bw_trace_reset(); } } if ( $actions_on || $count_on ) { oik_require2( "includes/oik-bwtrace.inc", "oik-bwtrace" ); bw_action_inc_init(); bw_trace_actions_on(); if ( $actions_reset ) { bw_actions_reset(); } } }View on GitHub View on Trac