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
210
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
280
WordCamp SG: Contributing to WordPress Core
peterwilsoncc
0
690
WCEU: Seven Times Faster : A Study in frontend Optimization
peterwilsoncc
4
970
Other Decks in Programming
See All in Programming
Datadog LLM Observabilityで実現する 安全なLLM Usage 管理
3150
0
110
Oxcを導入して開発体験が向上した話
yug1224
4
340
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
220
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
260
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
560
技術的負債解消で開発者の未来を開く- AIの力でコード刷新
kmd2kmd
0
120
どこまでゆるくて許されるのか
tk3fftk
0
230
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
300
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
150
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1k
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
300
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
100
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
310
GraphQLとの向き合い方2022年版
quramy
50
15k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
450
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Docker and Python
trallard
47
3.9k
A Soul's Torment
seathinner
6
3k
The SEO Collaboration Effect
kristinabergwall1
1
490
[SF Ruby Conf 2025] Rails X
palkan
2
1.1k
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.