Skip to content

Validate Parameter Names in wp user update Command #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions features/user.feature
Original file line number Diff line number Diff line change
@@ -376,6 +376,12 @@ Feature: Manage WordPress users
administrator
"""

When I run `wp user update 1 --user_pass=new_password`
Then STDOUT should contain:
"""
Success: Updated user 1.
"""

Scenario: Managing user capabilities
Given a WP install

3 changes: 0 additions & 3 deletions src/User_Command.php
Original file line number Diff line number Diff line change
@@ -518,9 +518,6 @@ public function create( $args, $assoc_args ) {
* [--role=<role>]
* : A string used to set the user's role.
*
* --<field>=<value>
* : One or more fields to update. For accepted fields, see wp_update_user().
*
* [--skip-email]
* : Don't send an email notification to the user.
*