a noob's journey to the core
TRANSCRIPT
Ryan Welcher • @ryanwelcher • #WCTO
A N O O B ’ S J O U R N E Y T O T H E C O R E
R YA N W E L C H E R
Ryan Welcher • @ryanwelcher • #WCTO
A B O U T M E
• Web Developer for over 10 years.
• Started using WordPress in 2009.
• Senior Web Engineer at 10up. We’re hiring!
• Noob Core Contributor.
Ryan Welcher • @ryanwelcher • #WCTO
W O R D P R E S S R E P O S I T O R Y
• WordPress core is stored in an SVN repo.
• By default you have read-only access.
• The structure is much different than what you download from WordPress.org.
Ryan Welcher • @ryanwelcher • #WCTO
G E T T I N G T H E C O D E
• SVN
• svn co https://develop.svn.wordpress.org/trunk/
• GIT mirror
• git clone git://develop.git.wordpress.org/
• git-svn
• GUI
Ryan Welcher • @ryanwelcher • #WCTO
VA R Y I N G VA G R A N T VA G R A N T S
• Vagrant configuration for WordPress development.
• Ideal for WordPress core development.
• “Turn Key” development environment.
• https://github.com/Varying-Vagrant-Vagrants/VVV
Ryan Welcher • @ryanwelcher • #WCTO
PAT C H F I L E S
• Text file containing the difference ( diff ) between your local copy and the remote repository.
• Are attached to tickets in trac.
• Can be created via command line or GUI.
• Create them from the root of your local repository.
• Naming convention - ticket-number.diff
Ryan Welcher • @ryanwelcher • #WCTO
PAT C H F I L E S
svn diff > ~/Desktop/1337.diff
git diff --no-prefix > ~/Desktop/1337.diff
Ryan Welcher • @ryanwelcher • #WCTO
C O D E
• PHP 5.2 compatible.
• WordPress Coding Standards.
• Documentation Standards.
– @ W O N D E R B O Y M U S I C
“It’s easier to dive into someone else’s ticket and review it for commit if Unit Tests are there
to show current behaviour and changed behaviour”
U N I T T E S T S
Ryan Welcher • @ryanwelcher • #WCTO
T R A C
• Open source software used to manage bugs and tasks for WordPress core.
• Need an account at WordPress.org to play along.
• Has LOTS of different reports ( ticket groupings )
• Confusing as *%&!
Ryan Welcher • @ryanwelcher • #WCTO
F I N D I N G A T I C K E T
https://make.wordpress.org/core/reports/
Ryan Welcher • @ryanwelcher • #WCTO
G O O D F I R S T B U G S
https://core.trac.wordpress.org/tickets/good-first-bugs
Ryan Welcher • @ryanwelcher • #WCTO • www.url.com/slides
• Defect (bug) • Enchancement
• Feature Request • Task (blessed)
Ryan Welcher • @ryanwelcher • #WCTO • www.url.com/slides
C R E AT E A T I C K E T
Ryan Welcher • @ryanwelcher • #WCTO • www.url.com/slides
A D D I N G A PAT C H
Ryan Welcher • @ryanwelcher • #WCTO
L I N K S
• Trac - https://make.wordpress.org/core/reports/
• Slack - make.wordpress.org/chat/
• Core site - make.wordpress.org/core
• Handbook - make.wordpress.org/core/handbook/