OSDN Git Service

global flags have 'runtime' key '', which is falsy
authorscribu <mail@scribu.net>
Thu, 24 Oct 2013 00:13:52 +0000 (03:13 +0300)
committerscribu <mail@scribu.net>
Thu, 24 Oct 2013 00:13:52 +0000 (03:13 +0300)
php/WP_CLI/Configurator.php

index ff2d204..7be52c1 100644 (file)
@@ -64,7 +64,7 @@ class Configurator {
                foreach ( $mixed_args as $tmp ) {
                        list( $key, $value ) = $tmp;
 
-                       if ( isset( $this->spec[ $key ] ) && $this->spec[ $key ]['runtime'] ) {
+                       if ( isset( $this->spec[ $key ] ) && $this->spec[ $key ]['runtime'] !== false ) {
                                $details = $this->spec[ $key ];
 
                                if ( isset( $details['deprecated'] ) ) {