Update WordPress

Published

Updated

WordPress updates itself from wp-admin, with automatic background updates for minor releases. Test larger updates locally or on staging first, and keep the local copy in sync with production.

WordPress installs minor releases on its own. For other updates, wp-admin shows an update button, or WP-CLI runs wp core update. A Bedrock setup updates through Composer instead. See updating WordPress.

Update locally first

Test updates in a local development environment or a staging environment first. A core update can change the database schema. When only the files are updated, wp-admin asks to update the database.

Parallel updates

Run each update in every environment, local first, then production, so the versions and database schemas match.

Updating plugins and themes

Plugins and themes follow the same order. Outdated plugins are the most common way into a WordPress site, see secure WordPress.

Keeping your environments in sync

Editors add content in production, so the local database and uploads fall behind. Sync both:

  1. For the database, check our MySQL article for import/export.
  2. For the files you can either use SFTP or have a look at rsync to synchronize certain folders.

Content usually comes down, code changes go up.

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗