This script was created to help combat Wordpress sites that have been infected by malware. The script scans through the directory it's been placed in, detects whether or not Wordpress exists in that directory, and downloads a clean copy of Wordpress and any applicable plugins into a /new directory, straight from the Wordpress repository.
The script currently does not work on themes, nor will it be able to download any plugins that do not exist in the free Wordpress repository.
Just place clean-wp-install.php inside the Wordpress directory, and click "Proceed".
Important: Requires allow_url_fopen to be enabled on the server.
Still to do:
- Allow the /new directory to be customised.
- Copy media from wp-content/uploads into the /new Wordpress directory.
Created by Conor Campbell at Bro Media