I have a love-hate relationship with WordPress. I love it because it’s the simplest CMS, pretty damn dynamic, and I’m the most fluent with it. But, if there is one thing that drives me mad it’s simply this; WordPress rolls out a lot of updates, but sometimes they make my site broken. That or plugins or widgets don’t work correctly. While there is a way to disable automatic updates (see this article). In this article I want to give you a how-to guide on how to manually rollback to a previous version of WordPress, using your FTP.
What You Need:
Time To Downgrade
It’s important to know which version of WordPress you’re currently using. Thankfully, WordPress makes this very easy on us. All you need to do is log in to your dashboard, and in your dashboard overview, you’ll see what version you are using. For me, I am using 4.0, but I want to rollback to 3.9.2.
1. Update/Deactivate Plugins
I probably should have mentioned this at the beginning of this article. But, always make sure you deactivate your plugins one by one to see if you can troubleshoot a plugin conflict. Also, make sure you update them to the latest versions. But, assuming you have done that make sure you go ahead and deactivate all your plugins. Then make sure you log out of your WordPress dashboard.
2. Earlier Version of WordPress
Now, as mentioned earlier in this article, you’re going to want to go to WordPress and download a zip file of the rollback we want. Go to WordPress and look for an earlier version of the plugin (click here).
3. Locate Files/Unzip
Locate the files that you have downloaded on your computer. Unzip the files.
4. FTP Login
Then login to your FTP client. Locate your root site. Usually, it is in the public-HTML folder. The goal is to locate your WordPress files. You will know you’re in the right directory when you see the folders wp-admin, wp-include, wp-content, etc.
Take all of these files and drag them to a folder for backup on your computer. I always do this just to play it safe. You can always revert back to the way things were if it wasn’t the problem.
5. Copy Files
What you’re going to want to do is copy all the files except the wp-content folder. You can do this by highlighting all the files, and command+clicking (MAC) or Control+clicking (Windows) users. Then drag all your files over to the root. Make sure you don’t accidentally drop them in a separate folder. It’s the reason I backup everything before doing the rollback :).
Make sure you don’t copy the wp-content folder!
6. Updating WordPress Database
It might take some minutes to transfer all the data. A little message should pop up on your FTP client asking you if you want to overwrite the files. Make sure you click “yes.” But, when you do, you’re going to want to login into your WordPress dashboard. You will see the following message:
Congratulations you have reverted to the previous version of WordPress. Don’t forget to activate all your plugins again. Hopefully, this solves whatever problem you might have been having!