Skip to content

Commit ffec9fa

Browse files
swissspidyCopilot
andauthored
Update src/Term_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 23cd649 commit ffec9fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Term_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,9 @@ public function prune( $args, $assoc_args ) {
773773
} elseif ( $result ) {
774774
WP_CLI::log( "Deleted {$taxonomy} {$term->term_id}." );
775775
++$successes;
776+
} else {
777+
WP_CLI::warning( "Failed to delete {$taxonomy} {$term->term_id}." );
778+
++$errors;
776779
}
777780
}
778781

0 commit comments

Comments
 (0)