-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI command to migrate legacy WP users #118
Conversation
I don't think the optional parameter is clear at all, but it's a great option to have. How about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, just needs:
- A fix for the dry-run flag
- Docs added to the readme (probably above the "PublishPress Authors Migration" section)
@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. |
30e53cb
to
1633357
Compare
Feedback addressed @johnbillion |
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.