Skip to content

Commit 8ac6db2

Browse files
Revert "Remove success message for plugin search command"
This reverts commit 3216e9d.
1 parent 3216e9d commit 8ac6db2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ protected function _search( $args, $assoc_args ) {
609609

610610
$items = $api->$plural;
611611

612+
$count = \WP_CLI\Utils\get_flag_value( $api->info, 'results', 'unknown' );
613+
\WP_CLI::success( sprintf( 'Showing %s of %s %s.', count( $items ), $count, $plural ) );
614+
612615
$formatter->display_items( $items );
613616
}
614617

0 commit comments

Comments
 (0)