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 found a patch I want here:

I can see the diff, but what do I do now? How can I get that code into my Wordpress? Do I have to copy it manually? Is there anywhere to download it from?

share|improve this question
up vote 3 down vote accepted

You can download the diff file from the bottom of the diff page.

The program to apply a diff is called "patch". It's widely available for various platforms.

Example usages: http://en.wikipedia.org/wiki/Patch_(Unix)#Usage_examples

share|improve this answer
Thank you very much- that worked. I'm only going to add a detailed description of the steps I took: 1) I downloaded the diff file from the bottom of the page 2) I uploaded the file to the server, to the folder in which the file that diff will be applied to resides in (in my case the file that the diff applied to was comment-template.php, which resides in wp-includes, so I uploaded 17763.diff to `mysite/wp-includes'. 3)I connected to the server via SSH, and changed directory to that directory 4)I wrote the command: $ patch < mods.diff 5) and that was that! – Lea Cohen Jul 21 '11 at 9:25

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.