Skip to content

Commit

Permalink
Fix: change the old option values to newer values
Browse files Browse the repository at this point in the history
  • Loading branch information
imrraaj committed Oct 22, 2024
1 parent f5d8814 commit ba3e5cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Option_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ public function list_( $args, $assoc_args ) {
if ( isset( $assoc_args['autoload'] ) ) {
$autoload = $assoc_args['autoload'];
if ( 'on' === $autoload || 'yes' === $autoload ) {
$autoload_query = " AND autoload='yes'";
$autoload_query = " AND autoload='on'";
} elseif ( 'off' === $autoload || 'no' === $autoload ) {
$autoload_query = " AND autoload='no'";
$autoload_query = " AND autoload='off'";
} else {
WP_CLI::error( "Value of '--autoload' should be 'on', 'off', 'yes', or 'no'." );
}
Expand Down

0 comments on commit ba3e5cc

Please sign in to comment.