Created
August 22, 2015 12:20
-
-
Save rahul286/2b36c21fcf476d53c11e to your computer and use it in GitHub Desktop.
Compare wordpress core file integrity
This file contains hidden or 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
| ## change to site | |
| cd /var/www/example.com/ | |
| ## download wordpress | |
| git clone https://github.com/wordpress/wordpress | |
| ## go to wordpress dir | |
| cd wordpress | |
| ## switch to correct wordpress version to htdocs | |
| git checkout 4.2.4 | |
| ## back to one dir up | |
| cd .. | |
| ## compare folders | |
| diff -r htdocs/wp-admin wordpress/wp-admin | |
| diff -r htdocs/wp-includes wordpress/wp-includes | |
| ## todo-compare wp-* , index.php, xmlrpc.php and other top level dirs | |
| ## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment