OSDN Git Service

shell: use WP_CLI::print_value(), since we don't want to colorize the output
authorscribu <mail@scribu.net>
Tue, 30 Apr 2013 14:21:48 +0000 (17:21 +0300)
committerscribu <mail@scribu.net>
Tue, 30 Apr 2013 14:21:48 +0000 (17:21 +0300)
php/commands/shell.php

index 02daaed..d379d93 100644 (file)
@@ -36,7 +36,7 @@ class Shell_Command extends \WP_CLI_Command {
 
                                eval( $line );
 
-                               \WP_CLI::line( var_export( $_, false ) );
+                               \WP_CLI::print_value( var_export( $_, false ) );
                        }
                }
        }