make debug file optional
This commit is contained in:
parent
cfa8974ffa
commit
663c6315c9
1 changed files with 3 additions and 2 deletions
|
@ -88,8 +88,9 @@ if ( \get_option( 'blog_public', 1 ) ) {
|
||||||
Rest\NodeInfo::init();
|
Rest\NodeInfo::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( \WP_DEBUG ) {
|
$debug_file = \dirname( __FILE__ ) . '/includes/debug.php';
|
||||||
require_once \dirname( __FILE__ ) . '/includes/debug.php';
|
if ( \WP_DEBUG && file_exists( $debug_file ) && is_readable( $debug_file ) ) {
|
||||||
|
require_once $debug_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue