From a5552151ba19735c45530d728a468abca8a683c4 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 26 Aug 2016 06:13:19 -0700 Subject: [PATCH] Namespace the command class --- command.php | 4 ++-- ...{class-profile-command.php => class-command.php} | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) rename inc/{class-profile-command.php => class-command.php} (97%) diff --git a/command.php b/command.php index 8cc1314..60be189 100644 --- a/command.php +++ b/command.php @@ -1,6 +1,6 @@ focus_scope = WP_CLI\Utils\get_flag_value( $assoc_args, 'scope' ); - $this->focus_hook = WP_CLI\Utils\get_flag_value( $assoc_args, 'hook' ); + $this->focus_scope = Utils\get_flag_value( $assoc_args, 'scope' ); + $this->focus_hook = Utils\get_flag_value( $assoc_args, 'hook' ); - if ( ! isset( \WP_CLI::get_runner()->config['url'] ) ) { + if ( ! isset( WP_CLI::get_runner()->config['url'] ) ) { WP_CLI::add_wp_hook( 'muplugins_loaded', function(){ WP_CLI::set_url( home_url( '/' ) ); });