From e09727d66032f54d15c1e7059b17f3920a47060f Mon Sep 17 00:00:00 2001 From: Eddie Carrasco Date: Thu, 24 Oct 2024 11:16:11 -0400 Subject: [PATCH] fix: removed unused references from a past commit --- php/class-wp-cli.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/class-wp-cli.php b/php/class-wp-cli.php index 9317d8ae..62494f1d 100644 --- a/php/class-wp-cli.php +++ b/php/class-wp-cli.php @@ -137,7 +137,7 @@ public function create_terms_for_posts(): void { * @subcommand create-author-terms-for-posts * @synopsis [--post-types=] [--post-statuses=] [--unbatched] [--records-per-batch=] [--specific-post-ids=] [--above-post-id=] [--below-post-id=] * @return void - * @throws Exception If above-post-id is greater than or equal to below-post-id, or if unable to obtain a prolific author account. + * @throws Exception If above-post-id is greater than or equal to below-post-id. */ public function create_author_terms_for_posts( $args, $assoc_args ) { $post_types = isset( $assoc_args['post-types'] ) ? explode( ',', $assoc_args['post-types'] ) : [ 'post' ]; @@ -162,7 +162,6 @@ public function create_author_terms_for_posts( $args, $assoc_args ) { WP_CLI::line( sprintf( 'Found %d posts with missing author terms.', $count_of_posts_with_missing_author_terms ) ); $authors = []; - $author_trans = []; $author_terms = []; $count = 0; $affected = 0;