WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to cope code changes with WP updates (3 posts)

  1. Blutarsky
    Member
    Posted 5 years ago #

    I'd like to change the behaviour of WP using the MORE tag (no tag scrolling), but this needs to modify the WP code.
    Is there an efficient way to track changes in a way they won't be lost on WP updates?

  2. figaro
    Member
    Posted 5 years ago #

    I document my hacks in a simple text file noting the files I've hacked. Then each time I do a hack in the core code, I comment it by entering my name...something like <!-- changed by figaro -->

    Then each time I upgrade, I use winmerge to compare the new code with my existing code and incorporate my hacks into the new code.

    Not sure if that fits with your definition of efficient or not, but it works well for me.

    Another possibility...years ago, I used the my-hacks.php file for my hacks. I See there is still a setting in Settings/Misc to use the my-hacks.php file, but I haven't used it in years...not sure how well this still works, but here is some very old documentation on it.

    http://wordpress.org/development/2003/12/new-feature-my-hacksphp/

  3. Blutarsky
    Member
    Posted 5 years ago #

    Thanks, I will use your strategy!

Topic Closed

This topic has been closed to new replies.

About this Topic