First, downloaded a fresh copy of WordPress to your computer and unzipped it.
Then, go to wp-content > plugins and rename “plugins” to “pluginsXXX”. This will disable all your plugins.
Being as there are may be other files on your site that are not a part of WordPress, I will list the exact files and folders to replace.
The files/folder you will NOT replace:
– wp-content folder
– htaccess (if one is there)
– wp-config.php
Do not rush doing this!!
1- delete the current “wp-admin” folder
2- upload the new “wp-admin” folder
3- delete the current “wp-includes” folder
4- upload the new “wp-includes” folder
Stop – sip coffee (or tea …or other beverage of choice)
Next, you will first delete only, one file at a time, the following files in your WordPress installation and then upload the new file from your computer:
NOT .htaccess (if there is one)
index.php
wp-activate.php
wp-blog-header.php
wp-comments-post.php
NOT wp-config.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
There will be a “wp-config-sample.php” in the fresh WordPress. Do not upload this.
This will replace your WordPress core files without losing any content.
Check your site and post back here with your results. I will be monitoring this thread periodically for your reply.