Skip to content

Commit

Permalink
fix: removed unused references from a past commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesshop committed Oct 24, 2024
1 parent 87e5ddd commit e09727d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function create_terms_for_posts(): void {
* @subcommand create-author-terms-for-posts
* @synopsis [--post-types=<csv>] [--post-statuses=<csv>] [--unbatched] [--records-per-batch=<records-per-batch>] [--specific-post-ids=<csv>] [--above-post-id=<above-post-id>] [--below-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' ];
Expand All @@ -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;
Expand Down

0 comments on commit e09727d

Please sign in to comment.