The kinds of WordPress update

“Update WordPress” covers six different things, with different risks:

Update Example Risk Installs by itself?
Core, minor A security and maintenance release such as 6.8.2 to 6.8.3 Low Yes, by default
Core, major A new version such as 6.8 to 6.9, with new features Medium No, unless you allow it
Plugins Anything from a form plugin to WooCommerce Low to high Only if switched on per plugin
Themes The parent theme, rarely a child theme Low to medium Only if switched on
Translations Language packs for core, plugins and themes Low Yes
Database WordPress’s own after a core update; WooCommerce’s and Elementor’s after some versions Medium Core’s does; plugins’ often wait for a click

PHP is a seventh, but it comes from the host, not WordPress, and it needs its own plan: check that every plugin works on the new version first.

The riskiest updates are major versions of big plugins (WooCommerce, page builders, membership and booking plugins), premium plugins whose updates arrive late or not at all, and anything on a site that has gone months without updates.

Before you update

  • Make a way back. A recent backup of files and database, or at least a copy of the plugin or theme folder about to be replaced. For a major release on a site that takes payments, test on a staging copy first.
  • Read the changelog for major versions. “Requires PHP 8.1” or “requires WooCommerce 10” decides the order of things.
  • Check PHP compatibility. A plugin’s page on WordPress.org lists the minimum PHP and the WordPress version it was tested up to.
  • Note what is active. A failed update can leave a plugin switched off, and you want to know what to switch back on.
  • Pick a quiet hour in the client’s time zone, not Friday evening for a restaurant or a sale day for a shop.
  • Know who to tell if something goes wrong.

How to update WordPress, step by step

In wp-admin

  1. Go to Dashboard, Updates to see core, plugin, theme and translation updates in one place.
  2. Update plugins one at a time from the Plugins screen (“update now” on each row), rather than ticking them all, so a failure points at one plugin.
  3. Check the site (below) after each one.
  4. Update themes from Appearance, Themes or from the Updates screen.
  5. Update core from Dashboard, Updates last for a major release, then check again.
  6. If WordPress, WooCommerce or another plugin asks for a database update, run it, then check again.

With WP-CLI

From the site’s folder over SSH:

wp core check-update
wp plugin list --update=available
wp plugin update contact-form-7
wp theme update twentytwentyfive
wp core update --minor
wp core update
wp core update-db
wp language core update
wp language plugin update --all

wp plugin update --all is tempting and is how one broken plugin hides among twenty. If you use it, add --dry-run first to see the list, and check the site after. For WooCommerce’s own database update there is wp wc update.

What to check after each update

Most broken updates show on the first page load, if you look at the right pages:

  • The home page, on a phone and a computer.
  • The pages that make money or leads: the contact or booking form, the shop, a product, the cart, the checkout.
  • The login page, so you can still get in.
  • Error messages: “There has been a critical error on this website”, a PHP fatal error printed on the page, “Briefly unavailable for scheduled maintenance”.
  • Pages that stop halfway (a fatal error after the page started sending shows as half a page with status 200) and pages that lost most of their content (a page builder failing quietly).
  • Things that moved: a missing header, a broken menu, a layout that changed. These need eyes or screenshots compared before and after.
  • The browser console, for new JavaScript errors on pages that look fine but do not work.

Load pages with a fresh query string (?nocache=123), or purge the cache first, so you see what WordPress builds now and not a stored copy from before the update.

What goes wrong, and how to fix it

You see Usually because Fix
“Briefly unavailable for scheduled maintenance. Check back in a minute.” The update was cut off and left .maintenance in the site’s root Delete the .maintenance file. Step by step
“There has been a critical error on this website.” The new version clashes with PHP, another plugin or the theme Use the recovery mode link WordPress emails to the admin address, or rename the plugin’s folder over SFTP, then roll back
A plugin is switched off after a failed update WordPress deactivates an active plugin while it installs and reactivates it only if the install worked Switch it back on and check it; then find out why the update failed
“Download failed. Unauthorized” or a license message A premium plugin’s license is not active on that domain, or has expired Renew or activate the license, or install the new version’s zip by hand
“Could not copy file” or “Destination folder already exists” File permissions, or a leftover folder in wp-content/upgrade Ask the host to reset permissions; remove the leftover folder
“Another update is currently in progress.” A lock left by an interrupted core update Wait 15 minutes, or delete it: wp option delete core_updater.lock
“Database update required” WordPress or a plugin changed its tables Run the update from the notice, or wp core update-db
The layout broke but there is no error A theme or page builder changed its CSS Clear all caches; regenerate the page builder’s CSS; roll back if it stays

Rolling back

WordPress helps in two cases. Since version 6.3, when a manual plugin or theme update fails during installation, WordPress puts the previous version back. Since 6.6, when an automatic plugin update causes a fatal error, WordPress rolls it back. Neither checks whether the update broke a form or the layout.

To roll back by hand:

  • From a copy: put the previous plugin or theme folder back over SFTP or with the host’s file manager.
  • From WordPress.org: each plugin’s page lists earlier versions under Advanced. With WP-CLI: wp plugin install contact-form-7 --version=6.0.6 --force.
  • Core: wp core update --version=6.8.2 --force puts older files back, but not an older database. Prefer the backup taken before the update.

One warning that applies to every rollback: an update that changed the database (WooCommerce and many large plugins do) is not undone by putting the old files back. If the old version cannot read the new tables, restore the database from the backup too, which also loses orders and form entries made since. That is why a broken update is best caught within minutes, before visitors write anything new.

Automatic updates: when to switch them on

  • Core minor releases install themselves by default. Leave them on. define( 'WP_AUTO_UPDATE_CORE', 'minor' ); in wp-config.php makes that explicit.
  • Core major releases can install themselves with define( 'WP_AUTO_UPDATE_CORE', true );. Most agencies keep these manual.
  • Plugins and themes have an “Enable auto-updates” link per item on the Plugins and Themes screens (WordPress 5.5 and later). WordPress emails the site’s admin address after automatic updates. See WordPress’s own guide.

A sensible policy for client sites:

  1. Security fixes for serious holes, automatically and at once, with checks after.
  2. Minor plugin and theme updates (5.3 to 5.4), automatically, in a nightly window, with checks after.
  3. Major versions of big plugins and of WordPress, by hand, when someone can look.
  4. A list of plugins never to update automatically, such as WooCommerce on a busy shop, or a plugin the site depends on with a history of breaking.
  5. No automatic update without a way back.

Major updates: plan them like a small project

A new major version of WordPress, WooCommerce, a page builder or a membership plugin deserves more than a nightly run:

  1. Read what changed. The release notes and the developer’s blog: removed features, new requirements (PHP, WordPress, other plugins), database changes.
  2. Wait a little. For big plugins, the first point release (10.3.1 after 10.3.0) often fixes what the major release broke. A week’s wait is reasonable unless the release fixes a security hole.
  3. Check the add-ons. WooCommerce extensions, page builder add-ons and the theme need versions that support the new major. Update them first.
  4. Try it on a copy for sites that take payments or bookings: the host’s staging site, or a local copy.
  5. Agree a time with the client, and tell them what to look at afterwards.
  6. Update, then test by hand: place a test order, submit the forms, log in as a customer, open the pages built with the page builder on a phone.
  7. Keep the way back ready for the next few days, including the database backup from just before.

Note the major updates you plan in each month’s report, so the client knows what is coming and why it is scheduled.

Updating many client sites

The same routine across forty sites needs a few more rules:

  • One site and one server at a time. Twenty sites on one server updating at once can overload it, and its bot protection may block whatever is calling.
  • A window per client, in their time zone.
  • A cap per night, so a backlog clears over a few nights instead of all at once.
  • Stop on trouble. If an update breaks a page on one site, pause the run for that site before the next update makes it harder to tell what happened.
  • Premium plugins from your own copy. Upload the new version’s zip once and install it on every site where the license blocks the download.
  • Record everything: what was updated, from which version to which, and what was rolled back and why.

How to update plugins safely has the single-site routine as steps, and bulk updates covers updating one plugin across many sites.

Telling the client

List the month’s updates in the monthly report with old and new versions, and say when an update was rolled back and why. A line such as “the booking plugin’s update on the 12th broke the date picker, so it was rolled back within minutes and will be retried once the developer fixes it” shows that someone is checking, which is what the client pays for. See client reports.

How Keptstone updates WordPress

Keptstone runs safe updates in both of its plans, from $2 a site a month:

  • A restore point first. The connector zips the plugin or theme folder on the site before updating, kept for 14 days. WordPress core gets no restore point, and the alert says so if core breaks a site.
  • Page checks before and after. The site’s key pages (up to five, such as home, contact and checkout) are loaded past the page cache before the update, three seconds after it, and again after ten seconds if anything looks broken. A page counts as broken for errors, critical error messages, stuck maintenance, pages that stop halfway, error pages that answer 200, and pages that lost most of their content.
  • Screenshots compared on desktop and mobile, block by block, with sliders and other moving parts learned and left out: “Looks the same”, “Small visual changes” or “Looks different”. See visual checks.
  • Rollback by itself through the connector when a page broke, with an email and a Slack message to say what happened. No FTP details. A rollback by hand is one click for 13 days.
  • Failed updates put right: plugins WordPress switched off during a failed update are switched back on, and the reason is shown in words (a license, file permissions, an update no longer offered).
  • Automatic policies per site: off, security fixes only, security fixes and minor updates, or all updates, in a window you choose in the client’s time zone. With automatic updates on, fixes for the most serious holes start at once, outside the window. Plugins and themes run first and core last, at most six a night, one site and one server at a time, stopping at the first broken page.
  • Sites behind host firewalls run the same checks themselves at their next check-in.

See safe updates and pricing.

Questions

Should I update WordPress core or plugins first?

For a minor core release it hardly matters, since minor releases rarely change anything plugins rely on. For a major core release, update plugins and themes first, because their latest versions are the ones tested with the new WordPress, then core, then check again. Either way, one at a time.

Is it safe to update WordPress?

Updating is far safer than not updating, because outdated plugins with known holes are one of the most common ways into WordPress sites. The risk is a broken page after an update, which a way back and checks after each update take care of.

How often should I update WordPress?

Apply security fixes for serious holes the same day, other plugin, theme and minor core updates weekly, and major releases once you have checked they work with the site's plugins. Leaving updates for months makes each round bigger and riskier.

What happens if I don't update WordPress?

The site keeps working until a hole in one of its plugins is found and published, then bots start trying it. Old versions also stop working with newer PHP, which hosts eventually move to, so a neglected site tends to break all at once.

Can I undo a WordPress update?

Yes for plugins and themes: reinstall the previous version from a backup or from WordPress.org's list of earlier versions. Core can be put back too, but database changes made by an update are not undone by replacing files, so a restore point or backup taken just before is the reliable way back.