Skip to content

Commit 7a7031e

Browse files
Copilotswissspidy
andcommitted
Fix output buffering logic to properly capture echo and var_dump output
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 2512c9c commit 7a7031e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WP_CLI/Shell/REPL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function start() {
5757
if ( 0 < strlen( $out ) ) {
5858
echo rtrim( $out, "\n" ) . "\n";
5959
}
60+
ob_start();
6061
if ( ! $this->quiet ) {
6162
echo '=> ';
6263
var_dump( $evl );

0 commit comments

Comments
 (0)