OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab45bfd
)
Use the new `set_url()` method introduced in ab45bfd
author
Daniel Bachhuber
<d@danielbachhuber.com>
Fri, 22 Nov 2013 16:21:19 +0000
(08:21 -0800)
committer
Daniel Bachhuber
<d@danielbachhuber.com>
Fri, 22 Nov 2013 16:21:19 +0000
(08:21 -0800)
php/commands/core.php
patch
|
blob
|
history
diff --git
a/php/commands/core.php
b/php/commands/core.php
index
ab644f7
..
732b7d5
100644
(file)
--- a/
php/commands/core.php
+++ b/
php/commands/core.php
@@
-446,10
+446,8
@@
class Core_Command extends WP_CLI_Command {
// Support prompting for the `--url=<url>`,
// which is normally a runtime argument
- if ( isset( $assoc_args['url'] ) ) {
- $url_parts = \WP_CLI\Runner::parse_url( $assoc_args['url'] );
- \WP_CLI\Runner::set_url_params( $url_parts );
- }
+ if ( isset( $assoc_args['url'] ) )
+ $url_parts = WP_CLI::set_url( $assoc_args['url'] );
$public = true;