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:
0562f78
)
make `wp user get` show roles
author
scribu
<mail@scribu.net>
Sat, 27 Jul 2013 22:05:01 +0000
(
01:05
+0300)
committer
scribu
<mail@scribu.net>
Sun, 28 Jul 2013 16:34:41 +0000
(19:34 +0300)
fixes #616
php/commands/user.php
patch
|
blob
|
history
diff --git
a/php/commands/user.php
b/php/commands/user.php
index
d53cdd8
..
f80b56c
100644
(file)
--- a/
php/commands/user.php
+++ b/
php/commands/user.php
@@
-72,8
+72,9
@@
class User_Command extends \WP_CLI\CommandWithDBObject {
$user_data = $user->to_array();
} else {
// WP 3.4 compat
- $user_data = $user->data;
+ $user_data =
(array)
$user->data;
}
+ $user_data['roles'] = implode( ', ', $user->roles );
switch ( $assoc_args['format'] ) {