Guide
How to update WordPress safely, step by step
Update WordPress safely by taking a backup first, updating in the order core, themes and then plugins, and checking the site after each step. For anything important, try the update on a staging copy before the live site. Security updates should be applied quickly, because outdated plugins are the most common way WordPress sites get hacked.
The safe order
A reliable update routine
- Back upFiles and database, stored away from the server
- TestTry on a staging copy if the site matters
- UpdateCore, then themes, then plugins, one at a time
- CheckBrowse pages, forms, checkout and login
- Roll back if neededRestore the backup and investigate
Why it matters
Why updates are worth the effort
Updates do three jobs. They fix security holes, they fix bugs, and they add features and compatibility with newer versions of PHP and browsers. Of these, security is the one that cannot wait. When a weakness in a plugin is made public, automated tools begin scanning the web for sites still running the old version within a short time. A site that is a few weeks behind is a very easy target.
People avoid updating because they fear breaking the site, and that fear is reasonable. A plugin update can occasionally clash with the theme or another plugin. The answer is not to stop updating, but to update with a safety net: a backup, a tested process and a quick way back. Done properly, an update is a routine ten minute task rather than a gamble.
Small sites benefit most from habit. Pick a regular time each week, perhaps Monday morning, and work through the update screen. Sites that are updated weekly rarely have more than a handful of changes at once, which makes any problem easy to trace. Sites that are left for a year arrive at a pile of major version jumps, and that is where the real trouble starts.
Step by step
How to update WordPress without breaking it
Take a fresh backup
Export the database and copy the files, or use a backup plugin. Our weekly remote backups are a safety net, but take your own before any big update. See our backup guide.
Read what is changing
On the Updates screen, look at the version numbers. A patch such as 6.5.1 to 6.5.2 is small. A jump to a new major version deserves a look at the release notes.
Update WordPress core first
Core is the foundation. Update it, then load the site and the admin area to confirm both still work.
Update themes next
Update the active theme and any parent theme. If you have a child theme with edits, check it still looks right.
Update plugins one at a time
Update each plugin, or small batches, and check the site between them. If something breaks, you know the cause.
Test the important journeys
Submit a contact form, log in as a user, add a product to a basket, view on a phone. Test what earns you money.
Clear caches
Purge the page cache and your browser cache so you see the real result and visitors do not get stale pages.
Backups and a fast, protected server
Weekly remote backups, Imunify360 and a firewall on every plan.
Know the types
Types of WordPress update
| Type | Example | Risk | How to handle it |
|---|---|---|---|
| Minor core release | 6.5.1 to 6.5.2 | Low | Usually safe to let run automatically |
| Major core release | 6.4 to 6.5 | Medium | Back up, test on staging, then update |
| Plugin security fix | Patch release | Low, but urgent | Update promptly after a backup |
| Plugin major version | Version 2 to 3 | Medium to high | Read the notes and test on staging |
| Theme update | Minor or major | Medium | Check customisations survive; use a child theme |
| PHP version change | One version to another | Medium | Check plugin compatibility, then switch in the control panel |
Automation
Automatic updates: when to switch them on
WordPress can apply minor core updates automatically, and you can also turn on automatic updates for individual plugins and themes from the Plugins and Themes screens. For a simple brochure site, automatic updates for trusted, well supported plugins are a sensible choice, because the security benefit outweighs the small risk of something going wrong.
For a shop, a booking site or any site where downtime costs money, be more careful. Let minor core updates run automatically, but update plugins by hand after a backup, ideally on staging. A broken checkout plugin that goes unnoticed overnight can cost far more than a few days of delay.
Whatever you choose, do not rely on automation alone. Automatic updates can fail quietly, and a plugin the author has abandoned never gets a fix at all. Look at the Updates screen each week and read any emails WordPress sends about failed updates.
Decide
Update now or wait?
Update promptly when
- The update is labelled as a security fix
- You have a recent backup
- The site is simple and low risk
- The plugin has a good support record
- Several versions behind already
Pause and test first when
- It is a major version of a core plugin
- The site takes orders or bookings
- You have custom code in the theme
- The release notes mention breaking changes
- You are about to launch a campaign
Going wrong
What to do if an update breaks your site
First, stay calm and avoid making more changes. If you see a white screen or a critical error, our guide to the WordPress white screen of death walks through the fixes. The most common cause after an update is a single plugin or theme, so the first move is usually to disable the one you just updated.
If you cannot reach the dashboard, rename the plugin folder inside wp-content/plugins using the file manager or SFTP. WordPress then treats that plugin as inactive and the site often returns at once. Once you are back in, check for a newer version, read the plugin support forum and decide whether to wait for a fix or replace it.
If the damage is wider, restore the backup you took before you began. That is exactly what it is for. Contact our live chat (open 24/7) if you would like help bringing back a copy, and tell us the time you started updating so we can pick the right one.
Habits
Update habits that save trouble
- Update on a schedule, not only when nagged
- Never update just before a launch or sale
- Delete plugins you no longer use rather than leaving them inactive
- Keep a child theme for any custom changes
- Use a staging site for major changes
- Keep PHP on a supported version
- Note down what you updated and when
- Replace plugins that stop receiving updates
Worked example
A typical weekly update session
Imagine a small business site with eight plugins and a custom child theme. On Monday morning you open the Updates screen and see three plugin updates and one minor core release. You take a backup, let core update, load the home page, then update the plugins one at a time. After the second, the contact form looks odd. You roll that single plugin back, note the problem and move on with the rest.
The whole session takes about fifteen minutes, and because you changed only a few things you knew exactly where to look. Compare that with a site left for a year, where dozens of updates arrive together and a fault could come from any of them. Small, regular steps are the safest approach, and they are also the least stressful.
Need a hand with an update?
Live chat is open 24/7 for hosting questions.
FAQ
Common questions
How often should I update WordPress?
Check at least weekly. Apply security updates as soon as you can after taking a backup.
Should I update plugins or WordPress first?
Update WordPress core first, then themes, then plugins, checking the site between each step.
Can updates delete my content?
Normal updates do not delete posts or pages, which live in the database. A backup protects you if something unusual happens.
What is a staging site?
A private copy of your site for testing changes. See our staging site guide.
Does your hosting update WordPress for me?
You control updates in your dashboard. We provide backups, a firewall and malware scanning to protect the account.
Keep reading
Related pages
Keep WordPress current with backups behind you
Weekly remote backups and security tools on every plan.