Skip to content

Commit 75f704d

Browse files
Copilotswissspidy
andcommitted
Optimize data collection to skip summary format
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 2ec032e commit 75f704d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/WP_CLI/CommandWithTranslation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public function update( $args, $assoc_args ) {
130130

131131
$results[] = $result;
132132

133-
// Capture data for formatted output.
134-
if ( $format ) {
133+
// Capture data for formatted output (skip for summary format).
134+
if ( $format && 'summary' !== $format ) {
135135
$slug_value = 'core' === $obj_type ? $update->Version : $update->slug;
136136
$results_data[] = array(
137137
$slug_key => $slug_value,

0 commit comments

Comments
 (0)