Home / Fix guides / Outdated WordPress core or plugins / WordPress

WordPress fix guide

How to fix outdated WordPress core and plugins

Old versions of WordPress, plugins and themes are one of the most common ways sites get hacked, because known flaws are public once a fix is released. Here is how to update safely, and what to do when a plugin has no update at all.

Most WordPress break-ins do not use anything clever. They use a flaw that was already fixed in a newer version of a plugin, a theme or WordPress itself. If your site is still running the old version, anyone can look up the flaw and try it. Updating is the fix, but doing it in a careful order keeps your site from breaking in the process.

Why outdated software is a risk

WordPress core, plugins and themes are all separate pieces of software, and each one gets its own security fixes. Plugins and themes are the usual weak point, since a typical site has many of them from many different authors. A plugin you deactivated but did not delete can still be attacked, because its files are still on the server.

Before you update: make a backup

Updates can occasionally clash with your theme or another plugin. A backup lets you undo the damage in minutes. Many hosts offer one-click backups or daily snapshots in their control panel. If yours does not, use a well-known backup plugin such as UpdraftPlus. Make sure the backup includes both the files and the database, and know how to restore it before you need to.

If the site takes orders or bookings, try the updates on a staging copy first. Many hosts include a staging tool, but it depends on your plan.

Step by step: update WordPress safely

  1. Log in to the dashboard at /wp-admin/ and open Dashboard then Updates. This page lists WordPress core, plugins, themes and translations that have updates waiting.
  2. Take a fresh backup of files and database.
  3. Update plugins first, one at a time or in small groups. Select them on the Updates page and click Update Plugins, or use the Update now links on the Plugins then Installed Plugins screen.
  4. Update your theme next. If you edited theme files directly, those changes will be lost unless you use a child theme, so check first.
  5. Update WordPress core last. If it offers a major version (for example a new first or second number), consider waiting a few days for early bugs to be fixed, unless it is marked as a security release.
  6. Visit the front of your site and test the important parts: the home page, a contact form, checkout if you have one, and the login. Then log in again and check the dashboard for errors.
  7. If something broke, deactivate the plugin you updated last under Plugins, or restore your backup, and ask the plugin author or your developer for help.

Premium plugins and themes often need a valid license key before they will show updates. If an update is missing, look for a license field in the plugin's own settings.

If you or your developer have command line access, WP-CLI does the same job. wp plugin list --update=available shows what is outdated, and wp plugin update --all updates plugins.

What WordPress updates by itself

WordPress installs minor and security releases of core automatically by default. It does not install major releases on its own unless you opt in on the Updates page. Plugin and theme auto-updates are off unless you turn them on.

To turn them on, open Plugins then Installed Plugins and click Enable auto-updates next to each plugin you trust. Themes have the same link under Appearance then Themes. Auto-updates need a working scheduled task system (WP-Cron) and can be disabled by your host or by a setting in wp-config.php, so check that they actually run.

When there is no update to install

Sometimes a scan says a plugin is outdated, but the dashboard shows nothing. The usual reasons:

  • The plugin is abandoned. On its page at wordpress.org, look for a note saying it has not been updated in a long time or is closed. Replace it with a maintained alternative.
  • It is a premium plugin with an expired license. Renew it or replace it.
  • It is inactive. Delete it with the Delete link on the Plugins then Installed Plugins screen. Do this for every plugin and theme you do not use.
  • Your server's PHP version is too old for the new release. Check Tools then Site Health, and ask your host to switch to a supported PHP version.
  • Never install plugins or themes from unofficial download sites. Those copies often contain hidden malicious code.

If you suspect the site was already compromised, updating alone will not clean it. Change all passwords, restore from a clean backup if you have one, and get professional help.

Keep it from happening again

Pick a regular day to review Dashboard then Updates, even if auto-updates are on. Keep the number of plugins small, and remove the ones you no longer need. SiteMonday's week 31 outdated software check looks for old software on your site each year and lists what to update in a ranked fix list, which is useful as a second pair of eyes. For the general version of this problem on any platform, see how to fix outdated plugins and software.

Old software also tends to show itself in your server headers. If you want to stop advertising version numbers, see server version disclosure on WordPress.

Not on WordPress? Read the general guide to outdated wordpress core or plugins, or the guide for WooCommerce, Elementor, WP Engine, SiteGround, Bluehost, Hostinger.

Questions

Will updating WordPress delete my content?

Normally no, because your posts, pages and media are stored in the database and the uploads folder, which updates do not replace. Edits made directly inside theme or plugin files can be overwritten, which is why a backup comes first.

Should I turn on auto-updates for every plugin?

It is a good default for well-maintained plugins, since security fixes arrive without delay. For critical plugins such as checkout or booking, many owners prefer to update manually after testing on a staging copy.

Why does my dashboard show no updates but a scan says my plugin is old?

The plugin is probably abandoned, a premium plugin with an expired license, or limited by your PHP version. Check its wordpress.org page and your license, then replace it if it is no longer maintained.

Is it safe to leave a deactivated plugin installed?

Not really. Its files stay on the server and a flaw in them can still be reached, so delete any plugin or theme you do not use.

How do I check which WordPress version I am running?

Open the dashboard and look at `Dashboard` then `Updates`, which shows your current version at the top. The footer of most admin pages also shows it in the bottom right.

More WordPress fixes