Contents Magic

WordPress Core. Resist The Urge To Modify

August 25th, 2007 ·

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

This advice is not for everyone. Obviously not everyone has the capability, motivation, need and desire to modify the WordPress core files. But for the programmers out there, at certain points it seems very straight forward to go ahead and modify the files in WordPress core files and achieve the desired functionlity.

For example when I was writing Flickrize Image Search, at point it was very easy for me go ahead and implement my desired functionlity in upload.php for the Image Search section. I could not. First of all it would not be a plugin anymore. But more importantly, it would render my WordPress install incompatible with any future upgrades. In essence , when I upgrade to a new version of WordPress, I would have to make the same changes again in the new core.

Bad design. This is Why WordPress supports plugin. Writing plugins is not that hard. I wrote one of my plugin Expire Comments in just 4 hours. Testing however takes more time then that.

Browse more posts marked in:

;

2 responses so far ↓ I do follow BTW
  • 1 TigerTom // Feb 8, 2008 at 8:03 pm

    This is good advice for *any* online software; if a plugin modifies the core files, look for another.

    Otherwise, every upgrade you do will overwrite the modifed files.

  • 2 Sole // Feb 13, 2008 at 9:58 pm

    I was always more of a blogger guy myself. All this “core file” whatnot just seems way more complicated than it probably needs to be. Hats off to people like you who can do that sort of thing though.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>