Merge pull request #12815 from woocommerce/fix-tool-command-notice
Fix notice that displays when activating WC via the command-line.
This commit is contained in:
commit
a5055ec2cf
|
@ -21,6 +21,9 @@ class WC_CLI_Tool_Command {
|
||||||
$request = new WP_REST_Request( 'OPTIONS', '/wc/v1/system_status/tools' );
|
$request = new WP_REST_Request( 'OPTIONS', '/wc/v1/system_status/tools' );
|
||||||
$response = $wp_rest_server->dispatch( $request );
|
$response = $wp_rest_server->dispatch( $request );
|
||||||
$response_data = $response->get_data();
|
$response_data = $response->get_data();
|
||||||
|
if ( empty( $response_data ) ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$parent = "wc tool";
|
$parent = "wc tool";
|
||||||
$supported_commands = array( 'list', 'run' );
|
$supported_commands = array( 'list', 'run' );
|
||||||
|
|
Loading…
Reference in New Issue