Way to How To Reinstall WordPress Core Files without losing content via FTP
- After logging into FTP dashboard ,drag all WordPress Core Files inside /public_html
- Download the latest version of WordPress
- Download ENTIRE WordPress files of your site
- Open your Downloaded WordPress files of your site say /quarantine is your entire site folder.
Open wp-config.php and copy information as shown below
6.Navigate to your public_html directory and you should see a file called wp-config-sample.php, right-click on this file and Edit, open the file in Notepad then fill in your database name, database user, and database user password and save it as shown below.
7.Now right-click on wp-config-sample.php choose Rename, and then name the file just wp-config.php as shown below. .
8.Now upload your theme from here /quarantine/wp-content/themes to /public_html/wp-content/themes directory as shown below. .
This will complete Reinstall WordPress Core Files without losing content via FTP