add url parameter on site create / release 2.0.1

This commit is contained in:
Amaury Balmer 2020-10-28 20:19:02 +01:00
parent 91c0f55955
commit ef562c92d3
2 changed files with 4 additions and 3 deletions

View file

@ -68,10 +68,11 @@ class WP_CLI_Command {
// first step
$_command = sprintf(
'site create --slug=%s --porcelain --title="%s" --network_id=%d',
'site create --slug=%s --porcelain --title="%s" --network_id=%d --url="%s"',
$this->destination_slug,
$this->destination_name,
$origin_network_id
$origin_network_id,
$this->origin_url
);
$this->destination_id = WP_CLI::runcommand(

View file

@ -3,7 +3,7 @@
* Plugin Name: WP-CLI Site Duplicator
* Plugin URI: https://github.com/BeAPI/wp-cli-site-duplicator-command
* Description: A WP-CLI command for duplicating a site (blog) on a WordPress mutisite network
* Version: 2.0.0
* Version: 2.0.1
* Requires at least: 4.4
* Requires PHP: 5.6
* Author: Be API