diff --git a/php/WP_CLI/REPL.php b/php/WP_CLI/REPL.php index 576359ecc0..0a14b3e422 100644 --- a/php/WP_CLI/REPL.php +++ b/php/WP_CLI/REPL.php @@ -80,18 +80,14 @@ private static function create_prompt_cmd( $prompt, $history_path ) { $prompt = escapeshellarg( $prompt ); $history_path = escapeshellarg( $history_path ); - $cmd = << ' ); + $repl = new $class( "\nwp> " ); $repl->start(); } }