Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     if (!defined("VANDELAY_CONFIG_FILE")) {
         WP_CLI::error("Please set configuration file using VANDELAY_CONFIG_FILE constant");
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     if (\WP_CLI\Utils\wp_version_compare(3.7, '<')) {
         // remove description for wp <= 3.7
         $this->fields = array_values(array_diff($this->fields, array('description')));
     }
     parent::__construct();
 }
Esempio n. 3
0
 public function __construct()
 {
     global $wp_version;
     if (version_compare($wp_version, 3.7, '<')) {
         // remove description for wp <= 3.7
         $this->fields = array_values(array_diff($this->fields, array('description')));
     }
     parent::__construct();
 }
Esempio n. 4
0
 function __construct()
 {
     parent::__construct();
     $this->fetcher = new \WP_CLI\Fetchers\Theme();
 }
Esempio n. 5
0
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 6
-10
 function __construct($args, $assoc_args)
 {
     require_once ABSPATH . 'wp-admin/includes/plugin.php';
     require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
     parent::__construct($args, $assoc_args);
 }