PluginProbe
Elementor Website Builder – more than just a page builder / 3.21.3
Elementor Website Builder – more than just a page builder v3.21.3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | app/modules/import-export/wp-cli.php +3 -2 4.2.23.21.3 View file →
@@ -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] ) ) {