mirror of
https://ghproxy.net/https://github.com/BeAPI/wp-cli-site-duplicator-command.git
synced 2025-08-17 19:01:33 +08:00
add url parameter on site create / release 2.0.1
This commit is contained in:
parent
91c0f55955
commit
ef562c92d3
2 changed files with 4 additions and 3 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue