[resolved] how to apply a patch? (4 posts)

  1. Anonymous
    Posted 10 years ago #

    Trbecker was kind enough to submit a patch to a bug I reported, but the problem is I do not know how to run the patch? I googled and tried some commands but none were successful.
    I would like very much to test this patch and close this bug if someone could give me a little help.
    (i am using the latest wordpress from CVS)

  2. James Huff
    Volunteer Moderator
    Posted 10 years ago #

    It looks like you have to put that code somewhere in edit-form-advanced.php or replace some code in there with it. Right click on the patch and choose "save as" or "download file" to get the plain text file.

  3. Kitten
    Posted 10 years ago #

    $ patch -p0 < thepatchfile.diff
    and if you're in the same dir as the target file, it'll find it and patch it. Otherwise, you'll have to tell it where the target file is.
    If you're using Windows, then you'll have to learn how to read a patch file to do it manually, or find a program that can handle it.

  4. blueorder
    Posted 10 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.