function __construct() { require_once ABSPATH . 'wp-admin/includes/plugin.php'; require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; parent::__construct(); $this->fetcher = new \WP_CLI\Fetchers\Plugin(); }
function __construct() { if (is_multisite()) { $this->obj_fields[] = 'enabled'; } parent::__construct(); $this->fetcher = new \WP_CLI\Fetchers\Theme(); }