Skip to content

Instantly share code, notes, and snippets.

@rahul286
Created August 22, 2015 12:20
Show Gist options
  • Select an option

  • Save rahul286/2b36c21fcf476d53c11e to your computer and use it in GitHub Desktop.

Select an option

Save rahul286/2b36c21fcf476d53c11e to your computer and use it in GitHub Desktop.
Compare wordpress core file integrity
## 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