예제 #1
0
 public function __construct()
 {
     parent::__construct();
     if (!defined("VANDELAY_CONFIG_FILE")) {
         WP_CLI::error("Please set configuration file using VANDELAY_CONFIG_FILE constant");
     }
 }
예제 #2
0
파일: taxonomy.php 프로젝트: Jaace/wp-cli
 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();
 }
예제 #3
0
파일: taxonomy.php 프로젝트: jjeaton/wp-cli
 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();
 }
예제 #4
0
 function __construct()
 {
     parent::__construct();
     $this->fetcher = new \WP_CLI\Fetchers\Theme();
 }
예제 #5
0
 function __construct()
 {
     parent::__construct();
 }
예제 #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);
 }