Slide 1

Slide 1 text

Contributing code to WP Core Peter Wilson peterwilson.cc @pwcc

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Coding for core

Slide 4

Slide 4 text

Don’t hack WordPress core!

Slide 5

Slide 5 text

Don’t hack WordPress core! without contributing code back!

Slide 6

Slide 6 text

WPMelb Easter Egg

Slide 7

Slide 7 text

make.wordpress.org/core/handbook

Slide 8

Slide 8 text

What would happen without coding standards?

Slide 9

Slide 9 text

flic.kr/p/goGDXM (CC)

Slide 10

Slide 10 text

flic.kr/p/goGDXM (CC) We are WordPress’s passengers

Slide 11

Slide 11 text

WPMelb Easter Egg

Slide 12

Slide 12 text

WPMelb Easter Egg

Slide 13

Slide 13 text

WPMelb Easter Egg

Slide 14

Slide 14 text

WPMelb Easter Egg

Slide 15

Slide 15 text

WPMelb Easter Egg

Slide 16

Slide 16 text

WPMelb Easter Egg

Slide 17

Slide 17 text

Uploading a patch

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

#32831 WP Melb Easter Egg $classes[] = 'post-' . $post->ID; $title = get_the_title( $post_id ); if ( "WordPress Melbourne" == $title ) { $classes[] = "wpmelb"; } if ( ! is_admin() ) src/wp-includes/post-template.php

Slide 20

Slide 20 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 21

Slide 21 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 22

Slide 22 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 23

Slide 23 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 24

Slide 24 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 25

Slide 25 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 26

Slide 26 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 92ccf45..6d46d22 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -436,6 +436,11 @@ function get_post_class( $class = '', $post_id = null ) { } $classes[] = 'post-' . $post->ID; + $title = get_the_title( $post_id ); + if ( "WordPress Melbourne" == $title ) { + $classes[] = "wpmelb"; + } + if ( ! is_admin() ) $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type;

Slide 27

Slide 27 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 28

Slide 28 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 29

Slide 29 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 30

Slide 30 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 31

Slide 31 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 32

Slide 32 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 33

Slide 33 text

#32831 WP Melb Easter Egg wptrac peterwilson$ git diff > ~/Downloads/32831.1.diff wptrac peterwilson$

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

You retain the copyright. You license your code to WordPress

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

Let the code reviews begin

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

flic.kr/p/y35dEE (CC)

Slide 43

Slide 43 text

Hack WordPress core, contribute code back.

Slide 44

Slide 44 text

Hack WordPress docs, contribute docs back.

Slide 45

Slide 45 text

Translate WordPress, help spread the word.

Slide 46

Slide 46 text

Contribute however you can, however you feel comfortable.