Browse files

Remove use of WP_CLI::line when outputting transient value

In the main project, issue #71 outlines a problem with using this method to output option values when "%" is used. The transient get command is also susceptible to this issue. The same fix has been applied here.
  • Loading branch information...
1 parent 964eec2 commit 2fc14a258b33856af32db36b4d709824a61b296f Zack Tollman committed Apr 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/php/wp-cli/commands/internals/transient.php
View
4 src/php/wp-cli/commands/internals/transient.php
@@ -31,9 +31,9 @@ public function get( $args ) {
}
if ( is_array( $value ) || is_object( $value ) )
- WP_CLI::line( var_export( $value ) );
+ echo var_export( $value ) . "\n";
else
- WP_CLI::success( $value );
+ echo $value . "\n";
}
/**

0 comments on commit 2fc14a2

Please sign in to comment.