Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Contributing code to WordPress core
Search
Peter Wilson
October 21, 2015
Programming
540
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Contributing code to WordPress core
Peter Wilson
October 21, 2015
More Decks by Peter Wilson
See All by Peter Wilson
WordCamp Sydney: The Enterprise Approach to WordPress Security.
peterwilsoncc
0
200
LoopConf - Burn it down: A case study in CMS replatforming
peterwilsoncc
0
1.2k
wp_post_insert(): how, what, why?
peterwilsoncc
1
620
Yow West - Performance: The path to HTTP/2 is Full of Potholes
peterwilsoncc
0
230
WordCamp Ubud: Performance - Moving to HTTP2
peterwilsoncc
0
550
WordCamp Auckland: I'm an imposter because...
peterwilsoncc
0
650
WordCamp Sydney: Contributing to WordPress Core
peterwilsoncc
1
270
WordCamp SG: Contributing to WordPress Core
peterwilsoncc
0
680
WCEU: Seven Times Faster : A Study in frontend Optimization
peterwilsoncc
4
970
Other Decks in Programming
See All in Programming
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
260
net-httpのHTTP/2対応について
naruse
0
480
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
500
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
250
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
140
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.1k
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
6.6k
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
170
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
330
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
6.1k
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
550
Featured
See All Featured
Bash Introduction
62gerente
615
220k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Designing for Performance
lara
611
70k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
The agentic SEO stack - context over prompts
schlessera
0
820
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
370
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
300
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
170
Exploring anti-patterns in Rails
aemeredith
3
410
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
170
Transcript
Contributing code to WP Core Peter Wilson peterwilson.cc @pwcc
None
Coding for core
Don’t hack WordPress core!
Don’t hack WordPress core! without contributing code back!
WPMelb Easter Egg <?php // inside get_post_class if ($title ==
"WordPress Melbourne") $classes[] = "wpmelb";
make.wordpress.org/core/handbook
What would happen without coding standards?
flic.kr/p/goGDXM (CC)
flic.kr/p/goGDXM (CC) We are WordPress’s passengers
WPMelb Easter Egg <?php // inside get_post_class $title = get_the_title($post_id);
if ($title == "WordPress Melbourne") $classes[] = "wpmelb";
WPMelb Easter Egg <?php // inside get_post_class $title = get_the_title($post_id);
if ("WordPress Melbourne" == $title) $classes[] = "wpmelb";
WPMelb Easter Egg <?php // inside get_post_class $title = get_the_title(
$post_id ); if ( "WordPress Melbourne" == $title ) $classes[] = "wpmelb";
WPMelb Easter Egg <?php // inside get_post_class $title = get_the_title(
$post_id ); if ( "WordPress Melbourne" == $title ) { $classes[] = "wpmelb"; }
WPMelb Easter Egg <?php // inside get_post_class $title = get_the_title(
$post_id ); if ( "WordPress Melbourne" == $title ) { $classes[] = "wpmelb"; $classes[] = "wordpress-melbourne"; }
WPMelb Easter Egg <?php // inside get_post_class $title = get_the_title(
$post_id ); if ( "WordPress Melbourne" == $title ) { $classes[] = "wpmelb"; }
Uploading a patch
None
#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
#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;
#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;
#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;
#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;
#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;
#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;
#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;
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
#32831 WP Melb Easter Egg wptrac peterwilson$ git diff >
~/Downloads/32831.1.diff wptrac peterwilson$
None
None
You retain the copyright. You license your code to WordPress
None
None
None
Let the code reviews begin
None
flic.kr/p/y35dEE (CC)
Hack WordPress core, contribute code back.
Hack WordPress docs, contribute docs back.
Translate WordPress, help spread the word.
Contribute however you can, however you feel comfortable.