Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have been put in charge of a site that have a lot (and i mean it) of core hacks, some are pretty easy, some are really hard to spot (like removing a do_action on the_content.

So, my question is , how i would and remove the hacks the previous maintaners did, while adding the new features requested.

Should i go and fix as soon as i spot them, or actively search for any hack in the core? (Side-Effect of the core hacks,can not update wordpress or it will completely break and a lot of features will be "removed" effectively putting the site down)

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

Pull down the copy of Wordpress from your client's server to your local.

Download a clean zip of the version of Wordpress your client has installed. http://wordpress.org/download/release-archive/

From there, you will need to use a file comparison tool (i.e. Diff on Linux). You can also use GIT to find the difference in folders by creating a GIT repo of the hacked Wordpress, then overwrite the files with the new WP and GIT will track them and show you the differences. Github for Mac can make easy work for you.

share|improve this answer
    
This is a good way to do it, though it will take some time to completely clean the core and convert these hacks into network enabled plugins ... –  Hansy Schmitt Sep 26 '11 at 19:29
    
Good luck! Let us know how it goes. This can be useful for others. –  Brian Fegter Sep 26 '11 at 21:57
add comment

To add to what Brain said, I think using a visual IDE that shows git/svn changes helps a lot, and also allows you to save all the changes.

Here is a screenshot of what a git compare looks like in netbeans 7.0. ( the git integration is still new but so far seems to work quite well). It works with SVN, CVS, and Mercurial too.

enter image description here

share|improve this answer
    
"To add to what Brain said" @BrainFegter :) –  kaiser Oct 24 '11 at 16:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.