| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | namespace Elementor\App\Modules\ImportExport; |
| 3 | 4 | |
| 4 | 5 | use Elementor\Core\Utils\Collection; |
| 5 | 6 | use Elementor\Core\Utils\Plugins_Manager; |
| @@ -6,9 +7,9 @@ | ||
| 6 | 7 | use Elementor\Plugin; |
| 7 | 8 | use Elementor\App\Modules\KitLibrary\Connect\Kit_Library; |
| 8 | 9 | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | - exit; // Exit if accessed directly. | |
| 11 | + exit; // Exit if accessed directly | |
| 11 | 12 | } |
| 12 | 13 | |
| 13 | 14 | class Wp_Cli extends \WP_CLI_Command { |
| 14 | 15 | |
| @@ -96,9 +97,9 @@ | ||
| 96 | 97 | * @param array $args |
| 97 | 98 | * @param array $assoc_args |
| 98 | 99 | */ |
| 99 | 100 | public function import( array $args, array $assoc_args ) { |
| 100 | - if ( ! current_user_can( 'manage_options' ) ) { | |
| 101 | + if ( ! current_user_can( 'administrator' ) ) { | |
| 101 | 102 | \WP_CLI::error( 'You must run this command as an admin user' ); |
| 102 | 103 | } |
| 103 | 104 | |
| 104 | 105 | if ( empty( $args[0] ) ) { |