humanmade / authorship

A modern approach to author attribution in WordPress.
GNU General Public License v3.0
66 stars 7 forks source link

CLI command to migrate legacy WP users #118

Closed mattheu closed 1 year ago

mattheu commented 1 year ago

If you enable Authorship on an existing site, author archives break because authorship authors are not set.

This adds a CLI command to run through all posts that have no authorship author set, and sets adds the post_author to authorship.

Optionally, you can pass --override-authorship to remove all authorship users and replace with WordPress authors.

Fixes #78.

svandragt commented 1 year ago

I don't think the optional parameter is clear at all, but it's a great option to have. How about --set-wordpress-authors to be descriptive of what the end result is?

mattheu commented 1 year ago

I don't think the optional parameter is clear at all, but it's a great option to have. How about --set-wordpress-authors to be descriptive of what the end result is?

@svandragt I copied this command from the Publish Press Authors migration command, which does the exact same thing. So for consistency, I'd like to keep it the same.

mattheu commented 1 year ago

Feedback addressed @johnbillion