From: Daniel Bachhuber Date: Fri, 22 Nov 2013 16:21:19 +0000 (-0800) Subject: Use the new `set_url()` method introduced in ab45bfd X-Git-Tag: v0.13.0~25^2~3 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8a8b1044d43e9e0db4be4a1079bc933ed152d65d;p=wvm%2Fwvm.git Use the new `set_url()` method introduced in ab45bfd --- diff --git a/php/commands/core.php b/php/commands/core.php index ab644f78..732b7d59 100644 --- 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=`, // 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;