OSDN Git Service

Use the new `set_url()` method introduced in ab45bfd
authorDaniel Bachhuber <d@danielbachhuber.com>
Fri, 22 Nov 2013 16:21:19 +0000 (08:21 -0800)
committerDaniel Bachhuber <d@danielbachhuber.com>
Fri, 22 Nov 2013 16:21:19 +0000 (08:21 -0800)
php/commands/core.php

index ab644f7..732b7d5 100644 (file)
@@ -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;