2.14.1.2.8. Update WordPress core files

Attention!

Before updating, be sure to back up your site and its database.

The easiest way to update WordPress — via the admin panel of the site itself. When a new version is available, a notification appears at the top of the admin panel:

  1. Open the admin panel of the site.
  2. In the "Updates" section, click "Update now":
  3. Please wait for the process to complete. During the update, the site will automatically be switched to maintenance mode. As part of the update, the new version of WordPress will be downloaded and installed, and any installed plugins will be deactivated and then reactivated.
  4. Update your installed plugins, themes, and translations.
  5. Check the site operation.

Updating using the official WP-CLI command-line tool can be useful if your WordPress files are corrupted or infected.

  1. Install the WP-CLI utility.
  2. Connect to the hosting via SSH.
  3. Run the core update by executing the following command:
    wp core download --skip-content --force --path=/home/account_name/example.com/www/
    • Instead of wp, specify the alias created during installation in step 5, or the path to the installed wp-cli.phar file.
    • Replace account_name with the name of the hosting account where the actions are being performed.
    • Instead of example.com/www, specify the path to the files for the desired site.
    • The skip-content key specifies that standard themes and plugins should be skipped during the download. If you also want to install them, remove this key from the command.
  4. Wait for the message confirming the download was successful:
    Success: WordPress downloaded.
  5. Check the site operation.
Content

    (1)