Dear WordPress Gurus:
Every time I go to upgrade WordPress and am following the instructions on this page, I wish they were more clearly written and more sequential in their steps. One thing that always scares the tar out of me is the backwards nature of the instructions beginning at Step 3. It’s only until after those instructions are given (and perhaps followed!) that the reader encounters two very important pieces of information:
NOTE The wp-content folder requires special handling, as do the plugins and themes folders. You must copy over the contents of these folders, not the entire folder. Copying the entire folder overwrites all your customizations and added content.
Also take care to preserve the content of the wp-config.php file in the root directory.
Ack!
So… I propose a rewrite, maybe something similar to what I’ve suggested below. If you use it, feel free to alter it in any way. Thanks!
==========
1. Get the latest WordPress. Either download and extract it to your computer or download it directly to the server.
As a reminder, to extract a tar.gz to a folder use this command, replacing (folder name) with the name of your folder: tar -xvzf latest.tar.gz -C ./(folder name)
2. Download a backup copy of the wp-config.php file in the root directory. This file contains current settings for your existing installation, e.g. database sign-in information. (See information below.)
3. Delete your old wp-includes and wp-admin directories.
4. The wp-content folder and its subfolders require special handling. You must copy over the contents of these folders, not the entire folder. Copying the entire folder overwrites all your customizations and added content. Follow these instructions:
- upload all of the files/folders in
wp-content/plugins to the wp-content folder on your site, overwriting any existing files/folders
- upload all of the files/folders in
wp-content/themes to the wp-content folder on your site, overwriting any existing files/folders
- upload any files in
wp-content to the wp-content folder on your site, overwriting any existing files
5. Copy the remaining WordPress files and folders to your server, overwriting any existing files/folders. You may use FTP or shell commands to do so. Note that this means *all* the files, including all the files in the root directory as well. If you use the default or classic theme and have customized it, then you can skip that theme.
The wp-config.php file in the root directory contains current settings for your existing installation, e.g. database sign-in information. Occasionally new versions of WordPress adds statements to this file. (E.g. in version 2.5 the SECRET_KEY variable was added, see Extended upgrade instructions). Compare your existing file with the new installation file which is named wp-config-sample.php. Either transfer your settings to the sample-file and rename it to wp-config.php or copy the new statements from the sample file into your current file.