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
560
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
220
LoopConf - Burn it down: A case study in CMS replatforming
peterwilsoncc
0
1.2k
wp_post_insert(): how, what, why?
peterwilsoncc
1
630
Yow West - Performance: The path to HTTP/2 is Full of Potholes
peterwilsoncc
0
240
WordCamp Ubud: Performance - Moving to HTTP2
peterwilsoncc
0
560
WordCamp Auckland: I'm an imposter because...
peterwilsoncc
0
660
WordCamp Sydney: Contributing to WordPress Core
peterwilsoncc
1
280
WordCamp SG: Contributing to WordPress Core
peterwilsoncc
0
690
WCEU: Seven Times Faster : A Study in frontend Optimization
peterwilsoncc
4
980
Other Decks in Programming
See All in Programming
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
510
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
500
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
360k
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
140
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
110
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.2k
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
150
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
600
AIエージェントで 変わるAndroid開発環境
takahirom
2
680
AI がコードを書く時代における新卒エンジニアの仕事風景 (2026) / New Graduate Engineers in the Era of AI Coding (2026)
sushichan044
0
220
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
150
フィードバックで育てるAI開発
kotaminato
1
120
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
730
Statistics for Hackers
jakevdp
799
230k
Paper Plane (Part 1)
katiecoart
PRO
1
9.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Leo the Paperboy
mayatellez
8
1.9k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
260
GitHub's CSS Performance
jonrohan
1033
470k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.7k
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.