What version of WordPress do you use to create a patch file?

Jonny asks:

I am really eager to start contributing to the core, but have only submitted one ticket so far (for which a patch was kindly created for me!).

I know it sounds silly, but I do have one question – what version of WordPress do you create a patch/diff file using? I am connected to the WordPress SVN repository at core.svn.wordpress.org – is it the version in ‘trunk’? Just want to make sure I get it right to save anyone having to do this for me again, thanks!

In most cases the version of WordPress you want to create a patch against would be the version in trunk. The only reason for not using trunk is if the issue is severe enough that it needs to be fixed in a point release.

At any time there are usually two active development streams within the WordPress subversion repository.  The first of these is the development for the next major release which will occur in the trunk version.  The second of these is the development of the next minor or point release which will occur in the relevant branch.  For example at the moment we have branches/3.0/ which is where development for the next 3.0.x release occurs.

Do you have a question about contributing to WordPress if so please ask!

About Peter Westwood

Happiness Gardener, Coder, Cat Herder, Bug Tracker, Cook and Code Dreamer
This entry was posted in Questions. Bookmark the permalink.

One Response to What version of WordPress do you use to create a patch file?

  1. Jonny says:

    Cool, thanks for explaining that so clearly – always patch against trunk version (unless serious/ie security, got it!

Comments are closed.