Will revisions be retained when converting to a multi-site?
We’re looking to convert a WordPress site to a multi-site, and the client we’re working with is very conscious that they don’t want to lose any revisions data.
I can’t find anything in the codex about data loss when converting to a multi-site, but is it a possibility that we might lose some of this data when converting the site?
Thank you
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Revisions are stored as posts in the *_posts table(s). This shouldn’t be touched during a conversion to Multisite.
I just did a quick test on my local machine:
- Installed WordPress
- Added a couple pages and posts
- Revised the pages and posts
- Made sure the revisions were stored in the DB
- Ran the Multisite conversion from the command line (
wp core multisite-convert) - Checked to make sure the revisions were still stored in the DB
It appears that the conversion did not affect the revisions at all.
However, note that your mileage may vary. I’d recommend doing a full database backup before running the conversion to Multisite. (I’d recommend doing that in any event, of course.)
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0