Keep WordPress, themes, and plugins updated
Most hacked WordPress sites run out-of-date software. Updates also fix bugs and bring new features. This article shows how to update and how to choose what updates by itself.
What gets updated
| Part | Why it matters |
|---|---|
| WordPress core | Security fixes. Minor versions (6.8.1) install automatically by default |
| Plugins | The most common source of break-ins |
| Themes | Same as plugins. Delete unused ones |
| PHP | See Pick a PHP version |
Who does it
- Essential: you do it, using this article.
- Business: updates are done for you monthly. See What our WordPress care includes.
- Pro: updates are done for you weekly.
Update by hand in your account
- Open Account → Hosting → your site → WordPress.
- Click Manage next to your site. Available updates lists WordPress, plugins, and themes that have one.
- Click Update next to an item, or Update everything. We back up the site before every update.
- Open the site, click through a few pages, and test a form.
For risky updates, turn on Smart Update. It tests first.
Set up auto-updates
- Sign in to wp-admin, using WordPress admin in your account.
- Go to Plugins and click Enable auto-updates next to each plugin you trust. Do the same under Appearance → Themes.
- WordPress core installs minor (security) versions by itself. To change that for major versions, ask us at https://barbrick.ca/submitticket.php.
If a site must never break, keep plugins on manual updates and use Smart Update.
Update with WP-CLI
wp core update
wp plugin update --all
wp theme update --all
See Use WP-CLI.
Good habits
- Make sure a recent backup exists. We take one every hour, and we take another before each update you run here.
- Update one thing at a time on busy shops.
- Update off-peak.
- Remove plugins and themes you don't use.
If something goes wrong
- White screen after update: see Fix the WordPress white screen.
- Layout changed: restore the plugin version from backup. See Back up and restore WordPress.
- Stuck on "Briefly unavailable for scheduled maintenance": delete
.maintenancefrom the site folder. See Maintenance mode.
Still stuck? Ask us and we'll walk you through it.
