Skip to content

Add format parameter in user list-caps#2961

Merged
danielbachhuber merged 4 commits into
wp-cli:masterfrom
ernilambar:2958-format-user-list-caps
Jun 6, 2016
Merged

Add format parameter in user list-caps#2961
danielbachhuber merged 4 commits into
wp-cli:masterfrom
ernilambar:2958-format-user-list-caps

Conversation

@ernilambar
Copy link
Copy Markdown
Member

See #2958

Comment thread php/commands/user.php Outdated
}
}

if ( ! empty( $active_user_cap_list ) ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should always display the list, even when there are no caps. This is consistent with the other commands that implement --format=<format>.

By always displaying the list, you'd get an empty table with --format=table

@ernilambar
Copy link
Copy Markdown
Member Author

@danielbachhuber anything I need to do in this PR?

@danielbachhuber
Copy link
Copy Markdown
Member

:shipit:

@danielbachhuber danielbachhuber merged commit df0a3c2 into wp-cli:master Jun 6, 2016
@ernilambar ernilambar deleted the 2958-format-user-list-caps branch June 6, 2016 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants