STEP 5: Update WordPress files
There are two methods to update all the WordPress files. You can choose the one that works best for your scenario:
Method 1: Re-install WordPress from within the WordPress Dashboard via the Updates tab. Even if you have the latest version, you can click on Reinstall Now as that will update all WP files with a clean copy. This will not update the wp-config.php file (step 6) or delete/update any of your themes or plugins (step 7).
Method 2: Manually overwrite the following:
- /wp-admin directory
- /wp-includes directory
- all files in the root directory, except wp-config.php (this will be done in step 6)
Note: Do NOT overwrite the /wp-content folder as that contains your themes and plugins. We’ll address that in step 7.