Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve trace config startup logic #82

Open
bobbingwide opened this issue Dec 2, 2019 · 0 comments
Open

Improve trace config startup logic #82

bobbingwide opened this issue Dec 2, 2019 · 0 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

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

  • Check the current status of the logic.
  • Add support for exporting the current trace options and action options configuration to a flat file ( JSON? ) so that they can be loaded when the database is not available.
  • We have to find a way to hide the trace files directory... perhaps this should be what needs to be put in BW_TRACE_CONFIG_STARTUP.
  • Document the new solution
  • Check what logic's required in _oik_bwtrace_mu.php and db.php.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant