SSamTure.net

워드프레스

How to Patch WordPress

워드프레스 버그픽스 파일을 등록하는 방법에 대해 알아보던 중 정리가 잘 되어 있는 블로그를 발견하였습니다.
최신버전도 동일하니 참고하시면 좋을것 같네요


With the looming release of WordPress 2.0, there are a bunch of folks that are submitting bug fixes that say things like, “I would submit this to Trac, but I don’t know how.”

I think even more people are suggesting that writing to the mailing list with their bugs to “confirm” them is better than submitting them directly to Trac. I suppose if you’re not sure something is a bug, it might be worthwhile to ask someone else (I would ask on IRC at #wordpress on irc.freenode.net) but it really is better to have a formal record of an issue, even if it turns out that what you’re experiencing is expected behavior. If you really fear that it’s something to do specifically with your installation, check on IRC or maybe try a fresh install.

Nevertheless, it might be useful to folks to learn how I do it. I’m not saying my method is correct, just that it seems to get the job done with few complaints from the devs who commit my patches. It’s also a good method to use on Windows. (Sorry, someone else can document command-line Subversion use – not that I don’t know it, I’m just lazy.) Here we go…

Continues here →

 

Here’s what you need to do to get an environment that is ripe for making source modifications:

  1. Get a WordPress.org Support Forum Login – You need a support forum login to gain access to Trac. Tracis the software WordPress uses for bug tracking, and it shares its login database with the support forum.
  2. Download and Install Tortoise SVNTortoiseis the best Subversion client for Windows. It will let you get the latest source from the code repository without messing with funky nightly versions.
  3. Install XAMPP – If you’re not already running Apache locally, you’re going to need it. You can test under Microsoft’s IIS (and this is probably not a bad idea considering there are fewer people testing that environment) but if you’re not running Windows XP Pro (not Home), you may find this difficult. XAMPPis Apache, MySQL, PHP and some other thing you don’t need for WordPress all rolled into one bundle.
  4. Checkout a Copy of WordPress – Find the directory that XAMPP is using for its DocumentRoot and right-click on it (or create a “wordpress” directory there and right-click on that). Select SVN Checkout…. In the dialog, use http://svn.automattic.com/wordpress/trunk as the repository URL. Click OK to download the latest WordPress source.
  5. Make a Database– Use phpMyAdmin to create a new database for WordPress. Navigate to http://localhost/phpmyadmin to see the interface.
  6. Run the WordPress Install – I trust you already know how to do this. If not, then perhaps patching is a bit advanced, no?

Ok, now WordPress is running. You should be able to do anything that you normally do with WordPress.

At this point, you can modify code freely. If you make a change you don’t like, you can always switch back to the original code. Right-click on the file, choose Tortoise SVN > Revert and the file will be restored to the last checkout version.

You should be able to see where you’ve made changes to the source by looking at the icon for the folder/file. The ones that are changed will likely be red.

Here’s what you need to do to make a patch:

  1. Update your source – This step is pretty important, otherwise you might end up patching bugs back into source that’s already fixed. Subversion has integrated merge features. All you need to do is right-click on the wordpress root folder and select SVN Update. If any of the files you edited come up as conflicted (in red in the list), you will need to merge them by hand in the tool provided when you double-click on the list item.
  2. Create a patch – This is easy. Right-click on the wordpress root folder and select Tortoise SVN – Create Patch. A dialog appears to allow you to select the files you want to include in the patch. Check the files you want to include, then save the patch file. If I’m patching one file, I’ll usually use the full name of the file followed by “.diff”, for example, “admin-functions.php.diff”.
  3. Find a Trac Ticket – To submit a patch, you need a ticket. Be sure to search for an existing ticket for your issue before creating a new ticket. If one doesn’t exist, create one and explain the problem as clearly as possible. When you have a ticket, click Attach File and attach your patch file.

That’s pretty much it, even though I’m sure I’ve left some trivial things out.

The essential bit to recognize is that there really isn’t a good excuse for a developer to know enough to make code changes but not enough to use source control. If you don’t know source control, consider that learning this simple task is a great way to pad your resume. One way to scientifically demonstate that you can work well with teams is to show a proficiency with source code conrol tools. Hopefully this short description will help you on your way.

61 Comments

  1. check here
    2013/07/18 at 15:46 · Reply

    Hey thanks for the great article on patching WordPress sites. Such valuable information must be known to more people. I will recommend this blog to my friends having trouble getting their WordPress sites working. I use Linux for development and use git as my SVN.

  2. Hey there, I think your website might be having browser compatibility issues.
    When I look at your blog in Firefox, it looks fine but when opening in Internet Explorer, it has
    some overlapping. I just wanted to give you a quick heads up!
    Other then that, very good blog!

  3. 移民弁護士… […]時間が読みまたはに行くチェックアウト コンテンツ素材またはウェブサイト我々は以下にリンクしている[…] …

  4. 迎えるためにあなたを招待し、あなたがあなたの記事の内部に提供しています事実を。私はあなたのブログをブックマークしても、私の子供たちは、多くの場合、ここに確認しなければなりません。私は今非常に 自信を持っ彼らは学びます多大 ポイント 右適切な!お気に入りに保存され、この上の品質の記事ウェブサイトいくつかのを

  5. アイブ氏が言うようになった、単独でのレイアウトは、私は再びこのページに戻ってきました。しかし、今アイブはyouveは言うようになったものを読むことは、アイブ氏は、世界とそれを共有するようになりました!

  6. あなたがいるここのブログ優れたを持って!私のブログの記事を招待する開発したいですか?

    • Kayleigh
      2017/01/05 at 08:54 · Reply

      Well, I’ve always liked leaves for autumn im&28sa#8g30;I&#e217;m not picky as to companies, but the last few weeks I’ve really been drawn to pumpkins. Especially the really sketchy looking pumpkins….I don’t know why?!? I think it’ll pass, but I might need to buy a pumpkin before it goes away! lolYour tutorials are always wonderful! Thanks so much for sharing all that you do!Cheers,Katie

  7. 私は、この情報を好きで、それはとても感謝し、私にいくつかの理由のための成功を持っている欲望のいくつかの並べ替えを与えています。さらに、イムは間違いなく私自身のブログでこれらの事実を考慮してブログ!

  8. 少数の典型的な人が文句を言わない夜通しスタジアムの駐車場で凍結すること。

  9. ブログで良い仕事を続けます。大好きです。いくつかのより多くの頻繁な更新を使用していますが、私はあなたが私たちのすべてが行うように行うには良いか、他のものを持っていることをかなり確信している可能性があります。 :)

  10. 。そして、あなたが使用して設計、すごいです。その本当に良い組み合わせ。そして、私はあなたが使用するテンプレートの名前が何であるか疑問に思って?確かにいい仕事を

  11. こんにちは皆は、このウェブページが顕著であるので、被写体が拡大されている正確にどのようにあります。私も、私たちはすべてのトピックに意義を追加できるようにトピックにそれを維持することを好むだろうが応答のいくつかのように。

  12. WOH私はあなたをお楽しみください! 。これについて| コンテンツ素材コンテンツ インターネットサイト私は常に新しいの更新になりたいと思い

  13. なった

  14. ギゼラkristbjorg斜視バクリcomanchero zitroneニルダハインズryland

  15. これを投稿するため、情報のためtyvmありがとう..フライドポテトのアイデアの周りの多くをチェックアウトお勧めしたいsolutions.Idワンダフル

  16. これは本当にこのような素晴らしいライトアップです。 | データこのために求めて今して、最終的に最後にあなたのインターネットウェブサイト。おかげでそのようにかなりこれを投稿するために、これは途方もなく私を支援してきました。ルックス、方法Iでスタイル楽しむ で ウェブログ 優れた、あなたは自分でそれをすべて作成したのですか?

    • Sunny
      2017/01/05 at 06:22 · Reply

      no se le llama magia se le llama &#l012;i8usión„ por lo tanto, es el arte de crear un efecto visual hacia el público. Por obvias razones, tiene un truco, sin encambio se necesita de práctica y horas de ensayo para lograr esa ilusión.

  17. ドこの上のスパム あなたが持っている ブログを;私もブロガーだ、と私はあなたの状況を知りたいました。我々は設計しているいくつかの良い 他の人と戦略を交換する必ず、私たちは検索探しては方法と電子メール|私にEメールを撮影する自信を持って。

  18. これは信じられないほどのポストでした。 本当にはポストあなたの 勉強愛しました。有益で貴重な参考にあなたのデータは、実際にはかなり非常にでした。私は信じ あなたがします進み投稿と更新頻繁。前方にあなたの後続に探している 1。両方の心と体のための、すべての人のため最高の

    • Cassie
      2017/01/05 at 08:54 · Reply

      For the out doors I would use a large trellis decorated with greenery and a few trtiiadonal flowers, also use gardening torches for light either around the edge or to mark walk wayshope this will give you a start All my best

    • kfzversicherung berechnen übungen
      2017/02/03 at 01:42 · Reply

      It's probably just me getting all crotchety over excessive SWAT proliferation and their seemingly increasing Keystonian mallninjitude, et cetera, et cetera. I idly prefer the idea of just calling them specially equipped officers, but like you say, I don't have to shout that over a radio.

    • You’ve inspired me to try these. I gave up recently on finding something that lasts (and help diffuse my fried chicken smell). Glade should pay Astrid for being associated with her cuteness.Arnebya recently posted..

  19. 浴室タオル、彼らが長持ちするように織物コンディショナー::

  20. への多数 。 あなたのことができるようになります 機能ワーク 彼らのサービスを使用します。 あなたがすることができます それらのすべての詳細についての研究論文をお読みください。 もっと作家あなたのような情熱を持って書くように注意する必要があります本当にべき

  21. 。 適切な右彼は完全でした。これは公開本当に 作成製。 私はこのについては、過ごした時間!ありがとう!

  22. 私は、これを投稿するためのTYを同意..

  23. 私は不幸であることの印象を作成することに譲歩をしなければなりません。

    • Allie
      2017/01/05 at 06:31 · Reply

      Oh my goodness I adore this post! It totally made me smile, Chelsea! Yo9r3#u;&e just fantastic, you know that? Love those purple sneaks with this sassy, fun look, and how you are simply rocking that mini.

  24. |事項に発見} 適切なあなたの信じられないほどの、Webベースの関数。 MLMこんにちは

  25. 私はあなたたちがあまりにもアップしているものが好きです。このようなスマート関数とレポート!私のブログロールに君たちが組み込まれましI?素晴らしい作品の連中に運びます。私は信じそれは私の価値が向上します離れつかむあなたのRSSフィードのままに、私は適切な適切な右ます

  26. は素晴らしい情報を共有していただきありがとうございます。 非常に非常にクールなあなたのウェブサイトがあります。 ウェブログ | あなたはこれを使用することをこの上に持っている私が詳細感銘を受けた。 トピック対象それはあなたがこれを感知する方法うまく明らかにする。このウェブ、ブックマークのページを、余分な記事のために戻ってくるだろう。あなた、私の友人、ROCK!私は発見ちょうど情報私はすでに、すべての検索以上 ロケーションだけ出くわすことができませんでした。何優秀 ウェブ サイト。批判

  27. kirby
    2015/12/09 at 21:47 · Reply

    kirby

  28. 記事の上ごblog.Theを理解するために、その喜びはかなり尋常ではない、と私は非常にあなたは、単に表現し、あなたのブログや物事を読んで楽しんでそれを維持します。私は実際に、通常のベースでバックsharingkeep書き込み用topic.Thanks中に追加のポストを見えるのが好き!

  29. 。私のブログの伴侶にコメント乾杯。私は再びメッセージをしなければなりません!私はそれを実現しませんでした。この上の任意のアップデートを

  30. 対象のトピックを ブログをで私のいとこ。 私はないわから この記事は、私についてのような詳細を知っている他の誰のように彼によって書かれているかどうか。信じられない| あなたはあなたがしています!ありがとう!電子タバコは、インクルードは、電子液体を気化バッテリーと小さな発熱部品を使用しています

  31. 。絶対に 書か 記事、勉強|を通して見る|調べます。

  32. は、あなたのウェブサイトにその幻想対象物質の共有に係るありがとうございます。私は、検索エンジンでそれを発見しました。あなたがはるかにariclesを投稿する場合、私は戻ってくることを確認することができます。

  33. 今、このサイトを数回訪問し始めIVEと私は実際にはかなりexeptional見つけると言わざるを得ない。 youreのがやって何をして続けます!あなたはメディアがどのように変化したか気づいている場合= P

  34. promo hypermart
    2016/10/27 at 06:12 · Reply

    I was wondering if you ever considered changing the structure of your blog?

    Its very well written; I love what youve got to say. But maybe you could a little

    more in the way of content so people could connect with it

    better. Youve got an awful lot of text for only having one or 2 images.

    Maybe you could space it out better?

  35. 美容護理
    2017/02/14 at 14:28 · Reply

    Is ranked 860th in the world (among the 30 million domains).

  36. 債務重組
    2017/02/24 at 10:04 · Reply

    Cool!

  37. nerds friends dating
    2017/05/17 at 04:26 · Reply

    Please let me know if you’re looking for a article writer for your site.
    You have some really great articles and I feel I would be a good asset.
    If you ever want to take some of the load off, I’d love to write some content
    for your blog in exchange for a link back to mine.
    Please blast me an email if interested. Regards!

  38. Vì tin người nên mất hết vốn, ông phải làm phu kéo
    thuyền, đẩy xe, thậm chí đi ăn xin.

  39. pinkbabyshowerinvitations
    2017/07/20 at 17:25 · Reply

    We swallow greedily any lie that flatters us, but we sip little by little at a truth we find bitter.

  40. earn money at home
    2017/09/11 at 11:15 · Reply

    you are truly a good webmaster. The site loading speed is incredible.
    It kind of feels that you’re doing any unique trick. Also, The contents are masterwork.
    you’ve done a great activity in this matter!

  41. bovada mobile poker app
    2017/10/13 at 03:23 · Reply

    It’s in reality a nice and useful piece of info. I’m happy that
    you just shared this useful info with us. Please stay us
    informed like this. Thanks for sharing.

  42. is bovada legal
    2018/12/26 at 17:49 · Reply

    Great post.

  43. độn cằm
    2019/01/15 at 00:25 · Reply

    Da bạn phải luôn được sạch sẽ, đặc
    biệt là da mặt.

  44. botox là gì
    2019/01/26 at 04:57 · Reply

    Làm chậm được tình trạng da bị lão hoá.
    Thực hành.

  45. kopyacı götveren
    2019/03/22 at 03:36 · Reply

    We absolutely love your blog and find many of your post’s to be exactly
    what I’m looking for. Would you offer guest writers to
    write content for you? I wouldn’t mind producing a post or elaborating on a number of the subjects you write about
    here. Again, awesome web log!

  46. Hey there! Do you know if they make any plugins

    to protect against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

  47. Toán học bao gồm hình học, đại số cơ bản và giải
    toán.

  48. Sunny Leone Anal
    2019/08/02 at 21:54 · Reply

    Please let me know if you’re looking for a article writer for your blog.

    You have some really great posts and I think I would be a good asset.

    If you ever want to take some of the load off, I’d really like to write some material for your blog in exchange for a link back to mine.

    Please blast me an email if interested. Regards!

  49. parkolas
    2019/08/26 at 04:12 · Reply

    Thanks for the good writeup. It in fact was once
    a amusement account it. Glance advanced to far introduced agreeable from you!

    However, how could we be in contact?

  50. подходящее, чтобы составить несколько планов на ближайшее
    будущее. Я изучил этот обзор и, если необходимо,
    могу просто предложить вам немного
    интересных материалов или советов.
    Может быть, вы могли бы написать
    последующие статьи как продолжение этой.

    Я намереваюсь читать еще больше информации
    об этом!

  51. Доброго времени суток! Кто-то из подписчиков моей страницы в
    ВКонтакте подписан на автора этого веб-сайта и может перейти туда, чтобы посмотреть увлекательные материалы?
    Я оставил закладку и обязательно поделюсь с
    моими подписчиками! Идеальный блог, прекрасный
    стиль и дизайн.

  52. Мне нравится вещи, которые вы,
    ребята, так грамотно делаете.
    Такая великолепная работа и актуальные отчетности!
    Ваш блог превосходный Я занес адрес страницы в закладки!
    Ребята, вы молодцы, огромный респект!

  53. Я не могу воздержаться и не прокомментировать.

    Очень хорошо написано!

  54. click here
    2021/05/02 at 08:34 · Reply

    Hurrah, that’s what I was searching for, what a stuff!
    present here at this blog, thanks admin of this site.

  55. 看板に偽りなし、本当に新品同様でした。配送も早かったです。また、手書きの一筆箋を同封いただき、心がこもった対応だと感じました。
    ☆新品同様!! 【送料無料】★ルイヴィトン★タイガ★ポルトバルール・カルトクレディ★ニつ折り長札入れ★M30392★
    かなりじろじろ見まわしましたが、全く使用感が無く文字通り新品同様でした。何故こんな安く買えてしまったのでしょうか。ラッキーとしか言いようがありません。
    2019年人気貴族ブランドコピー(N級品)優良店!ルイヴィトン、シャネル、グッチ、ロレックス、バレンシアガ、エルメス)、コーチ、ブラダ、クロエ大激売中 ★高級品☆┃時計┃バッグ┃財 布┃その他┃◆★ 誠実★信用★顧客は至上●在庫情報随時更新!品質がよい 価格が低い 実物写真 品質を重視 100%品質保証 100%満足保障 信用第一 ★人気最新品┃特恵中┃☆腕時計、バッグ、財布、ベルト、アクセサリー、小物☆★当店商品送料無料日本全国!休業日: 365天受付年中無休 https://www.gooshop001.com/product/detail/1990.htm

Leave a Reply to 【14時までのご注文は即日発&# Cancel reply

Your email address will not be published. Required fields are marked *