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:
d3e49e0
)
fix edge case in guess_url()
author
scribu
<mail@scribu.net>
Wed, 17 Jul 2013 00:29:13 +0000
(
03:29
+0300)
committer
scribu
<mail@scribu.net>
Wed, 17 Jul 2013 00:29:32 +0000
(
03:29
+0300)
php/WP_CLI/Runner.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/Runner.php
b/php/WP_CLI/Runner.php
index
917f843
..
497208b
100644
(file)
--- a/
php/WP_CLI/Runner.php
+++ b/
php/WP_CLI/Runner.php
@@
-129,10
+129,11
@@
class Runner {
}
}
- if ( !empty( $hit ) && isset( $hit['domain'] ) )
+ if ( !empty( $hit ) && isset( $hit['domain'] ) )
{
$url = $hit['domain'];
- if ( !empty( $hit ) && isset( $hit['path'] ) )
- $url .= $hit['path'];
+ if ( isset( $hit['path'] ) )
+ $url .= $hit['path'];
+ }
}
if ( isset( $url ) ) {