public function __construct() { parent::__construct(); if (!defined("VANDELAY_CONFIG_FILE")) { WP_CLI::error("Please set configuration file using VANDELAY_CONFIG_FILE constant"); } }
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(); }
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(); }
function __construct() { parent::__construct(); $this->fetcher = new \WP_CLI\Fetchers\Theme(); }
function __construct() { parent::__construct(); }
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); }