Skip to content

Commit 868f024

Browse files
authored
Merge pull request #5804 from Dan-Q/fix/5744-colorization-after-tables
2 parents a9a40b4 + 2526f63 commit 868f024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/WP_CLI/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private function show_multiple_fields( $data, $format, $ascii_pre_colorized = fa
301301
private static function show_table( $items, $fields, $ascii_pre_colorized = false ) {
302302
$table = new Table();
303303

304-
$enabled = Colors::shouldColorize();
304+
$enabled = WP_CLI::get_runner()->in_color();
305305
if ( $enabled ) {
306306
Colors::disable( true );
307307
}

0 commit comments

Comments
 (0)