Technosailor
  • Home
  • Blog
  • Venture Files
  • Espanol
  • Technosailor Staff
  • Twitter Pitch Me!
May
10
2007

Customized WordPress: Applying Patches to WordPress

Posted by: Aaron Brazell

We’ve talked a lot already about basic subversion, creating a WordPress repository and bundling externals such as plugins. This will accomplish most of what you probably want or need to do with a Custom WordPress repository. However, there may be modifications that you’d like to integrate into the core - perhaps patches that you’ve worked up personally or patches that have been submitted to WordPress that perhaps never saw the light of day. Never fear, you can apply patches to your repository to customize the code for future use.

For this example, let’s use the patch in ticket #2177 submitted to WordPress Trac as an example. This patch, or diff as they are called, has been added to the WordPress core for WordPress 2.3 and provides hooks for all the feeds and related data elements on the WordPress dashboard. This means that you will be able to replace the feeds used with your own.

Say you didn’t want to wait until WordPress 2.3 is released later this summer. You can easily take this diff and apply it to your own WordPress repository. Simply grab the diff from Trac (Hint: macbrain:~/svn aaron$ wget -O mypatch.diff http://trac.wordpress.org/changeset/5346?format=diff&new=5346) then use the patch command:

macbrain:~/svn aaron$ patch -d wpwc -p0 -N < mypatch.diff

This command means “apply mypatch.diff to the files designated in the diff starting in the wpwc directory”. You could actually place all these patches in a shell script and run them consecutively if there’s a bunch.

Finally, when you’ve patched your working copy, don’t forget to commit your changes!

macbrain:~/svn aaron$ svn commit wpwc -m "Applied #2177 to Repository"

Table of contents for Build Your Own WordPress Repository

  1. Customized WordPress: Understanding Subversion
  2. Customized WordPress: Setting up an SVN Repository
  3. Customized WordPress: SVN Externals
  4. Customized WordPress: Applying Patches to WordPress
  5. Customized WordPress: Reasons for Doing It
Previous in series Next in series
  • Add to Mixx!
  • Stumble it!
About the Author: Aaron Brazell is the lead editor of Technosailor.com and a social media expert. His passion is to see companies and individuals use the internet and web technologies wisely and effectively to promote their brands and companies. He served as Director of Technology at b5media from 2005-2008 and is currently an independent consultant.
Tagged: at 8:16 am -

2 Responses to “Customized WordPress: Applying Patches to WordPress”

  1. 1
    Dave Zatz Says:

    If 2.3 is coming this summer, when can I expect 2.2? ;)

    May 10th, 2007 at 3:28 pm
  2. 2
    Aaron Brazell Says:

    Soon and very soon. It just went to RC1. ;)

    May 10th, 2007 at 3:29 pm

Or add a Video Comment
with
« Back to text comment
  • Recent Posts

    • Western Style Writing vs. Eastern Style Writing
    • How Has Social Software Changed Your Life?
    • America the Beautiful
    • Identi.ca and the Art of the Launch
    • Job Search: Define Your Goals
  • Reader Contribution

    • Sean on Western Style Writing vs. Eastern Style Writing
    • Leslie Poston on Western Style Writing vs. Eastern Style Writing
    • Betsy Buchanan on 10 Things You Need to Know About WordPress 2.6
    • Aaron Brazell on Western Style Writing vs. Eastern Style Writing
    • Igor The Troll on Western Style Writing vs. Eastern Style Writing
  • RSS Venture Files

    • The Difference Between Designers and Marketers
    • But this worked four years ago?
    • Rules for Entrepreneurs - Avoid relying on a few whale customers
    • 6 Steps to Successful Small Business PR
    • Rules for Entrepreneurs - Outsource what you suck at
  • RSS Wicked Marketing

    • Yeah it’s cheaper, but what are you really getting?
    • What a designer is and isn’t…seriously you need to know…
    • The difference between success and closing next year…
    • It’s time to get Wicked…
  • RSS Technosailor en Español

    • PopTok: usa tus películas favoritas para enviar un mensaje
    • Video en Vivo desde tu iPhone
    • 7 Funciones que le Faltan al iPhone 3G
    • Como Vencer la Sobrecarga Informativa
    • La Batalla es Digital
  • Tip Jar


  • License Creative Commons Attribution-Noncommercial-Share Alike 3.0 | Copyright © 2004 - 2008 - Aaron Brazell | Lisa helped out | Privacy Policy

    Twitter Pitch!

    <p>Twitter pitching is a form of pitch that requires succint "what does this mean for me" kind of pitching. It is the ultimate efficiency of words. You have 140 characters or less to tell me why your pitch matters to me or my readers. Please include a means of contacting you. This is included in your 140 characters. If you send successive pitches, you will likely be ignored, unless it's obvious that the first pitch was a case of "accidental send", etc.</p> <p>This form of pitching does not mean I'm being a diva. It means that my time is valuable, and you want a piece of it. It's good practice for you, and delivers your pitch in a format I want. Win-win.</p>


    (X) Close

    Twitter Pitch Me!