Skip to content

Commit

Permalink
fix: appeasing PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesshop committed Oct 24, 2024
1 parent e09727d commit a90e878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public function create_author_terms_for_posts( $args, $assoc_args ) {
$author = get_user_by( 'id', $record->post_author );

if ( false === $author ) {
// phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.user_meta__wpdb__users -- This is just trying to convey where the root problem should be resolved.
WP_CLI::warning( sprintf( 'Post Author ID %d does not exist in %s table, inserting skip postmeta (`%s`).', $record->post_author, $wpdb->users, self::SKIP_POST_FOR_BACKFILL_META_KEY ) );
$this->skip_backfill_for_post( $record->post_id, 'nonexistent_post_author_id' );
continue;
Expand Down

0 comments on commit a90e878

Please sign in to comment.