This is a new, more efficient, command to help backfill author term data for any posts that are missing it. The new command was based off of the old one. The key differences between that command and this one are:
If, for some reason, the command were to get killed while it was backfilling data, re-running wp co-authors-plus create-terms-for-posts would always start back from the first post. For sites of a certain stature, this could create a situation where this command would never finish executing. Instead, this new command only looks for posts that are missing the requisite author term in the relationships table via SQL.
Since only posts that are missing the author term are pulled, once the missing data is created, any subsequent command execution means that you will be processing a smaller and smaller list of posts that need to be addressed, unlike the existing command.
Deploy Notes
Are there any new dependencies added that should be taken into account when deploying to WordPress.org?
No, this is an entirely new command.
Steps to Test
Check out PR.
Take a DB backup.
Execute this command with wp co-authors-plus create-author-terms-for-posts
Once complete, run the old command: wp co-authors-plus create-terms-for-posts. Notice that no new author terms are being created.
Description
This is a new, more efficient, command to help backfill author term data for any posts that are missing it. The new command was based off of the old one. The key differences between that command and this one are:
wp co-authors-plus create-terms-for-posts
would always start back from the first post. For sites of a certain stature, this could create a situation where this command would never finish executing. Instead, this new command only looks for posts that are missing the requisite author term in the relationships table via SQL.Deploy Notes
Are there any new dependencies added that should be taken into account when deploying to WordPress.org? No, this is an entirely new command.
Steps to Test
wp co-authors-plus create-author-terms-for-posts
wp co-authors-plus create-terms-for-posts
. Notice that no new author terms are being created.