WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a local copy of the latest version of wordpress that I set up using

svn co http://core.svn.wordpress.org/trunk/

There is a diff that I want to pull into my local fileset:


Is this something that I can do with subversion? What commands do I need to use?

share|improve this question
up vote 2 down vote accepted

The command you need is patch which is not specific to SVN. It's really easy to do. See this article: http://jungels.net/articles/diff-patch-ten-minutes.html

share|improve this answer

Change to the directory, download the patch (.diff file), then apply it using the patch command:

cd /var/www/wp-includes/ #use your wp-includes directory here
wget http://core.trac.wordpress.org/raw-attachment/ticket/19416/19416.diff
patch class-wp-admin-bar.php < 19416.diff

Check that it worked ok and then remove the 19416.diff file.

share|improve this answer

Your Answer


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.