}
}
- public function after_wp_config_load() {
- if ( $this->config['debug'] ) {
- if ( !defined( 'WP_DEBUG' ) )
- define( 'WP_DEBUG', true );
- }
- }
-
public function after_wp_load() {
add_filter( 'filesystem_method', function() { return 'direct'; }, 99 );
function wp_debug_mode() {
if ( \WP_CLI::get_config( 'debug' ) ) {
+ if ( !defined( 'WP_DEBUG' ) )
+ define( 'WP_DEBUG', true );
+
error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
ini_set( 'display_errors', true );
} else {
// Load wp-config.php code, in the global scope
eval( WP_CLI::$runner->get_wp_config_code() );
-WP_CLI::$runner->after_wp_config_load();
-
// Simulate a /wp-admin/ page load
$_SERVER['PHP_SELF'] = '/wp-admin/index.php';
define( 'WP_ADMIN', true );