Skip to content

Commit

Permalink
Add uppercase first word warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
baizmandesign committed May 14, 2024
1 parent 9091c32 commit 9c85840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/plugin-list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Feature: List WordPress plugins
When I try `wp plugin list --skip-update-check --force-check`
Then STDERR should contain:
"""
Error: plugin updates cannot be both force-checked and skipped. Choose one.
Error: Plugin updates cannot be both force-checked and skipped. Choose one.
"""
And STDOUT should be empty
And the return code should be 1
2 changes: 1 addition & 1 deletion features/theme-list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Feature: List WordPress themes
When I try `wp theme list --skip-update-check --force-check`
Then STDERR should contain:
"""
Error: theme updates cannot be both force-checked and skipped. Choose one.
Error: Theme updates cannot be both force-checked and skipped. Choose one.
"""
And STDOUT should be empty
And the return code should be 1
2 changes: 1 addition & 1 deletion src/WP_CLI/CommandWithUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ protected function _list( $_, $assoc_args ) {

// If `--force-check` and `--skip-update-check` flags are both present, abort.
if ( true === (bool) Utils\get_flag_value( $assoc_args, 'force-check', false ) && true === (bool) Utils\get_flag_value( $assoc_args, 'skip-update-check', false ) ) {
WP_CLI::error( "{$this->item_type} updates cannot be both force-checked and skipped. Choose one." );
WP_CLI::error( ucfirst( "{$this->item_type} updates cannot be both force-checked and skipped. Choose one." ) );
}

// If `--force-check` flag is present, delete the upgrade transient.
Expand Down

0 comments on commit 9c85840

Please sign in to comment.