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:
ad22bf2
)
site list: check for multisite before doing anything
author
scribu
<mail@scribu.net>
Sat, 10 Aug 2013 13:55:22 +0000
(16:55 +0300)
committer
scribu
<mail@scribu.net>
Sat, 10 Aug 2013 13:55:22 +0000
(16:55 +0300)
php/commands/site.php
patch
|
blob
|
history
diff --git
a/php/commands/site.php
b/php/commands/site.php
index
c87fc63
..
4f38778
100644
(file)
--- a/
php/commands/site.php
+++ b/
php/commands/site.php
@@
-338,6
+338,10
@@
class Site_Command extends WP_CLI_Command {
* @synopsis [--format=<format>] [--fields=<fields>]
*/
function _list( $_, $assoc_args ) {
+ if ( !is_multisite() ) {
+ WP_CLI::error( 'This is not a multisite install.' );
+ }
+
global $wpdb;
$defaults = array(