While Installing newly downloaded word press delete it’s old core file of word press except from Wp-Content and Config.Php file.
Manually Replace Wordpress Core Files
Replacing wordpress core files can resolve many issues with your WordPress site, from a compromised site, wp-admin is not accessible, even the infamous WSOD (White Screen of Death). This task can seem difficult but once it is clear “what is what” when looking at the files, the task becomes very straight forward. So let’s take a look at a standard WordPress site from the web root.
From this view we can see all the core file folders, the database connection file and the wp-content folder, which is where all of user content lives. (Themes, plugins, images, etc.) These are the three main categories of components when talking about WordPress file systems.
PRO TIP! It is always a good idea to disable plugins before removing the old core files.
When replacing core files we want to remove all of the core files keeping only the Wp-Content folder and the database connection file. (Wp-Config.Php) Let’s see how that stacks up.
Once we deleted all of the core files, we want the newest version of WordPress which can be found here: Latest WordPress
Note: Download it and extract in your PC, open extract folder and delete Wp-Content folder. Now go back to root of the folder from where you open this and make a zip of WordPress file.
Then upload the new zipped file to your web root and extract it.
Inside of the WordPress folder is all of your new core files that have to be moved in place of the ones we removed earlier. Move all of the files and folders to the web root and finally, delete the WordPress folder. Once complete this is complete, your file system should look as it did before we started. Next we have to log into the admin panel and reset permalinks to regenerate your .htaccess file. This can be found under Settings>Permalinks in your WordPress dash.
PRO TIP: Replacing the wp-config.php file is a good idea if the site was compromised. Doing so is as easy as copying the database connection strings into the supplied wp-config-sample.php and renaming it to wp-config.php.
That’s it! You should now have a functioning site if all went well. Time to turn plugins back on and check your links.
No we are moving ahead and discuss about Re-Install Plugins and Themes