As a developer, you may want to know about the process of completing manual update WordPress core.
These are the basic instructions; if you need more information, see the detailed upgrading instructions. If you’re having trouble with the Three Step Update, check out the more extensive upgrade instructions.
For these instructions, it is assumed that your blog’s URL is http://example.com/wordpress/
In this blog, we’ll discuss how to update WordPress core files manual without any hassles.
How to update WordPress core files manually?
We’ll describe some steps of the WordPress core update.
Step 1: Replace WordPress files
- Get the latest WordPress zip (or tar.gz) file.
- Unpack the zip file that you downloaded.
- Deactivate plugins.
- Using your FTP or shell access, delete the old wp-includes and wp-admin directories on your web host.
- Using FTP or your shell access, upload the new
wp-includes
andwp-admin
directories to your web host, in place of the previously deleted directories. - Overwrite existing files by uploading individual files from the new
wp-content
folder to your existingwp-content
folder. DO NOT REMOVE YOUR OLD WP-CONTENT FOLDER. In your existingwp-content
directory, do not delete any files or directories (except for the one being overwritten by new files). - You should upload all new loose files from the root directory of the new version to your existing WordPress root directory.
NOTE: In the wp-includes and wp-admin directories and subdirectories, as well as in the root directory, you should replace all of the old WordPress files with the new ones (such as index.php, wp-login.php, and so on). Don’t worry, your wp-config.php file will remain intact.
When it comes to duplicating the wp-content
directory, be cautious. Rather than replacing your entire wp-content
directory, make sure you simply copy the files from within this directory. You’ll want to keep your themes and plugins here because here is where they live.
If you haven’t renamed or altered the default or classic themes, make sure not to overwrite them, or you’ll lose your chances. (However, you might wish to compare them to see if there are any new features or corrections.)
Finally, read over the wp-config-sample.php file to see if any new settings have been included that you need to include in your wp-config.php.
Step 2: Remove .maintenance file to update WordPress core
If you’re manually upgrading after a failed auto-upgrade, use FTP to remove the file .maintenance
from your WordPress directory. The nag notice about the “failed update” will disappear.
Step 3: Update your installation
Go to /wp-admin to access your main WordPress admin page. It’s possible that you’ll be asked to log in again. If a database upgrade is required at this time, WordPress will notify you and provide you with a link to http://example.com/wordpress/wp-admin/upgrade.php. Follow the instructions by clicking on the link. This will bring your database up to date and make it compatible with the most recent code. We should do this as soon as feasible following the first step 1.
Don’t forget to reactivate plugins!
Step 4: Do something nice for yourself
If you have caching enabled, delete the cache now so that the changes take effect right away. Otherwise, your site’s visitors (including yourself) will see the old version (until the cache updates).
Your WordPress installation has been updated successfully. That’s as straightforward as we can make it without using Subversion to update WordPress.
Consider writing a blog post on the update, reading that book or article you’ve been putting off, or simply sitting back and watching the world go by for a few moments.
Final Step
Your update is now complete, so you can go in and enable your Plugins again.
If you have issues with logging in, try clearing cookies in your browser.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.