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:
8e4b6b7
)
function rename, and remove unneeded @subcommand declarations
author
Lee Willis
<leewillis77@gmail.com>
Sun, 10 Mar 2013 21:56:38 +0000
(21:56 +0000)
committer
Lee Willis
<leewillis77@gmail.com>
Sun, 10 Mar 2013 21:56:38 +0000
(21:56 +0000)
php/commands/role.php
patch
|
blob
|
history
diff --git
a/php/commands/role.php
b/php/commands/role.php
index
785544c
..
0846352
100644
(file)
--- a/
php/commands/role.php
+++ b/
php/commands/role.php
@@
-30,10
+30,9
@@
class Role_Command extends WP_CLI_Command {
/**
* Create a new role.
*
- * @subcommand create
* @synopsis <role-key> <role-name>
*/
- public function
_
create( $args ) {
+ public function create( $args ) {
self::persistence_check();
$role_key = array_shift( $args );
@@
-52,10
+51,9
@@
class Role_Command extends WP_CLI_Command {
/**
* Delete an existing role
*
- * @subcommand delete
* @synopsis <role-key>
*/
- public function
_
delete( $args ) {
+ public function delete( $args ) {
global $wp_roles;