Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 33d1413

Browse files
committed
UX tweaks
1 parent 980face commit 33d1413

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/commands/remove-user.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function execute( InputInterface $input, OutputInterface $output ): in
105105
}
106106

107107
// Remove?
108-
if ( $this->just_list ) {
108+
if ( $this->just_list || ( empty( $pressable_collaborators ) && empty( $wpcom_users ) ) ) {
109109
return 0;
110110
}
111111
if ( $input->isInteractive() ) {
@@ -224,7 +224,7 @@ protected function get_wpcom_users( OutputInterface $output ): ?array {
224224
}
225225

226226
/**
227-
* Outputs the WordPress.com sites that failed to fetch collaborators from.
227+
* Outputs the WordPress.com sites that failed to fetch users from.
228228
*
229229
* @param OutputInterface $output The output object.
230230
* @param array $sites The sites to output.
@@ -234,7 +234,7 @@ protected function get_wpcom_users( OutputInterface $output ): ?array {
234234
protected function output_wpcom_failed_sites( OutputInterface $output, array $sites ): void {
235235
$table = new Table( $output );
236236

237-
$table->setHeaderTitle( 'Failed to fetch collaborators from the following WordPress.com sites' );
237+
$table->setHeaderTitle( 'Failed to fetch users from the following WordPress.com sites' );
238238
$table->setHeaders( array( 'WP URL', 'Site ID' ) );
239239

240240
foreach ( $sites as $site ) {

0 commit comments

Comments
 (0)