Skip to content

Commit ba3e5cc

Browse files
committed
Fix: change the old option values to newer values
1 parent f5d8814 commit ba3e5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Option_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ public function list_( $args, $assoc_args ) {
275275
if ( isset( $assoc_args['autoload'] ) ) {
276276
$autoload = $assoc_args['autoload'];
277277
if ( 'on' === $autoload || 'yes' === $autoload ) {
278-
$autoload_query = " AND autoload='yes'";
278+
$autoload_query = " AND autoload='on'";
279279
} elseif ( 'off' === $autoload || 'no' === $autoload ) {
280-
$autoload_query = " AND autoload='no'";
280+
$autoload_query = " AND autoload='off'";
281281
} else {
282282
WP_CLI::error( "Value of '--autoload' should be 'on', 'off', 'yes', or 'no'." );
283283
}

0 commit comments

Comments
 (0)