Transcript
Page 1: Decoding Core Contribution - WordCamp San Diego 2013

Decoding Core Contribution

WordCamp San Diego 2013

Mike Schroder (DH-Shredder)@GetSource - http://www.getsource.net

Page 2: Decoding Core Contribution - WordCamp San Diego 2013

Who Am I?

• Mike Schroder, a.k.a DH-Shredder, a.k.a. @GetSource

• Third culture kid, enjoy the art of Coffee & Sailing

• WordPress 3.5 Recent Rockstar and wp-cli Contributor

• WordPress Core Team Rep for 2012

• Happy DreamHost Employee

Page 3: Decoding Core Contribution - WordCamp San Diego 2013

Core Team?

Page 4: Decoding Core Contribution - WordCamp San Diego 2013

Contributors.

Page 5: Decoding Core Contribution - WordCamp San Diego 2013

Contributors.

Page 6: Decoding Core Contribution - WordCamp San Diego 2013
Page 7: Decoding Core Contribution - WordCamp San Diego 2013

OKAY.

How can I get on this list of AWESOME?

Page 8: Decoding Core Contribution - WordCamp San Diego 2013

Everyone has something to contribute.

Page 9: Decoding Core Contribution - WordCamp San Diego 2013

Which Contributor Group do you belong to?

Page 10: Decoding Core Contribution - WordCamp San Diego 2013

Contributor Groups?• Docs

• Support

• Theme Review Team

• Plugin Review Team

• Events

• Core Code

• UI/UX Group

• Accessibility

• Polyglots

• .org Systems

• Mobile Applications

• Community

Page 11: Decoding Core Contribution - WordCamp San Diego 2013
Page 12: Decoding Core Contribution - WordCamp San Diego 2013
Page 13: Decoding Core Contribution - WordCamp San Diego 2013

Not sure where to go?Try #wordpress-contribute

Page 14: Decoding Core Contribution - WordCamp San Diego 2013

Let’s focus onCore Code

contribution.

Page 15: Decoding Core Contribution - WordCamp San Diego 2013

Your First Contribution

Page 16: Decoding Core Contribution - WordCamp San Diego 2013

If you haven’t read ...

• http://codex.wordpress.org/Contributing_to_WordPress

• The official (always in progress) handbook!

• http://make.wordpress.org/core/handbook/

Page 17: Decoding Core Contribution - WordCamp San Diego 2013

Release Cycle

• http://make.wordpress.org/core

• foreach( $releases as $release )

• Planning

• Feature Development

• Beta

• RC

Page 18: Decoding Core Contribution - WordCamp San Diego 2013

Planning:Choose the Scope.

Page 19: Decoding Core Contribution - WordCamp San Diego 2013

Feature Development:Teamwork.

Page 20: Decoding Core Contribution - WordCamp San Diego 2013

Beta:Features are Finished.

Page 21: Decoding Core Contribution - WordCamp San Diego 2013

Release Candidate:Just the Regressions.

Page 22: Decoding Core Contribution - WordCamp San Diego 2013

Okay. I understand the release cycle.

What’s next?

Page 23: Decoding Core Contribution - WordCamp San Diego 2013

Start Small.

Page 24: Decoding Core Contribution - WordCamp San Diego 2013

Look for a Need.

Page 25: Decoding Core Contribution - WordCamp San Diego 2013

“If it’s not on Trac,it doesn’t exist.”

-Pretty much the entire Core Team.

http://core.trac.wordpress.org

Page 26: Decoding Core Contribution - WordCamp San Diego 2013

Reports are your friend.

• http://core.trac.wordpress.org/report

• Next Major Release:http://core.trac.wordpress.org/report/6

• Needs Patch:http://core.trac.wordpress.org/report/16

• Has Patch, Needs Testing:http://core.trac.wordpress.org/report/13

• View Tickets -> Custom Query (i.e. needs-refresh)

Page 27: Decoding Core Contribution - WordCamp San Diego 2013
Page 28: Decoding Core Contribution - WordCamp San Diego 2013

Okay. I found a need.Now What?

• Get the WordPress.org source from trunk.

• http://codex.wordpress.org/SVN

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

• https://github.com/WordPress/WordPress

• git clone https://github.com/WordPress/WordPress.git

Page 29: Decoding Core Contribution - WordCamp San Diego 2013

Apply the Patch, if any.

• Right-click on patch download link, copy URL

• From root of trunk:

• wget http://core.trac.wordpress.org/raw-attachment/ticket/20000/20000.diff(or curl -OL http://core ...)

• patch -p0 < 20000.diff

Page 30: Decoding Core Contribution - WordCamp San Diego 2013

Now, create a patch.

• Create all patches from the WordPress root within your trunk checkout.

• svn diff > bugNumber[.patchNumber].diff

• e.g. svn diff > 20000.2.diff

• git diff --no-prefix master > 20000.2.diff

Page 31: Decoding Core Contribution - WordCamp San Diego 2013

Attach a patch.

• Attach it to the ticket.

• Add a note to the ticket, so that everyone cc’d is notified.

Page 32: Decoding Core Contribution - WordCamp San Diego 2013

No one has responded.What now?

Page 33: Decoding Core Contribution - WordCamp San Diego 2013
Page 34: Decoding Core Contribution - WordCamp San Diego 2013
Page 35: Decoding Core Contribution - WordCamp San Diego 2013

Be Persistent!

Page 36: Decoding Core Contribution - WordCamp San Diego 2013

Learn to love IRC.#wordpress-dev on FreeNode

Page 37: Decoding Core Contribution - WordCamp San Diego 2013

Ask for help.

Page 38: Decoding Core Contribution - WordCamp San Diego 2013

Ping those who are handling your ticket!

Page 39: Decoding Core Contribution - WordCamp San Diego 2013

Don’t rely onwp-hackers.

Page 40: Decoding Core Contribution - WordCamp San Diego 2013

Twitter is your friend.

Page 41: Decoding Core Contribution - WordCamp San Diego 2013

Be prepared for rejection.

Page 42: Decoding Core Contribution - WordCamp San Diego 2013

Iteration is key.It’s okay if someone else has a

better idea.

Page 43: Decoding Core Contribution - WordCamp San Diego 2013

Let’s work together to make a better WordPress.

Page 44: Decoding Core Contribution - WordCamp San Diego 2013

Any Questions?• http://make.wordpress.org/

• https://irclogs.wordpress.org/

• http://make.wordpress.org/core/handbook

• http://core.trac.wordpress.org/

• http://lists.automattic.com/

• http://codex.wordpress.org/Contributing_to_WordPress

• http://aaron.jorb.in/blog/2010/03/commit-the-story-of-writing-a-wordpress-patch/

• http://patcheswelcome.wordpress.com/

Mike Schroder (DH-Shredder)@GetSource - http://www.getsource.net