diff --git a/advanced-custom-fields-wpcli.php b/advanced-custom-fields-wpcli.php index 608ca19..55f71a1 100644 --- a/advanced-custom-fields-wpcli.php +++ b/advanced-custom-fields-wpcli.php @@ -16,7 +16,6 @@ if ( defined( 'WP_CLI' ) && WP_CLI ) { require 'lib/acfwpcli/cli.php'; - require 'lib/acfwpcli/cli_utils.php'; } $acfwpcli = new ACFWPCLI; diff --git a/lib/acfwpcli/cli.php b/lib/acfwpcli/cli.php index e7e449d..4cf78b0 100644 --- a/lib/acfwpcli/cli.php +++ b/lib/acfwpcli/cli.php @@ -80,8 +80,6 @@ function export( $args, $assoc_args ) { $export_path = $this->menu_choice_export_path(); } - $export_path = \ACFWPCLI\CLIUtils::expand_tilde( $export_path ); - if ( ! is_dir( $export_path ) && ! mkdir( $export_path, 0755, false ) ) { WP_CLI::error( 'fieldgroup directory exists or cant be created!' ); } @@ -138,7 +136,7 @@ function import( $args, $assoc_args ) { extract( $assoc_args ); if ( isset( $json_file ) ) { - $choice = \ACFWPCLI\CLIUtils::expand_tilde( $json_file ); + $choice = $json_file; } else if (isset($all) && $all) { $choice = 'all'; } else { diff --git a/lib/acfwpcli/cli_utils.php b/lib/acfwpcli/cli_utils.php deleted file mode 100644 index b25427c..0000000 --- a/lib/acfwpcli/cli_utils.php +++ /dev/null @@ -1,14 +0,0 @@ -