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
600
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
570
WordCamp Auckland: I'm an imposter because...
peterwilsoncc
0
670
WordCamp Sydney: Contributing to WordPress Core
peterwilsoncc
1
290
WordCamp SG: Contributing to WordPress Core
peterwilsoncc
0
700
WCEU: Seven Times Faster : A Study in frontend Optimization
peterwilsoncc
4
980
Other Decks in Programming
See All in Programming
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
360
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
3.9k
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
290
GDG Korea Android: 2026 I/O Extended ~ What's new in Android development tools
pluu
0
210
今さら聞けない .NET CLI
htkym
0
180
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1.1k
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
580
Built Our Own Background Agent at LayerX
layerx
PRO
9
4.9k
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
0
120
ルールを書いて終わらせないハーネスエンジニアリング
yug1224
4
1.8k
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
1
1.4k
Featured
See All Featured
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
400
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
420
Prompt Engineering for Job Search
mfonobong
0
400
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
RailsConf 2023
tenderlove
30
1.5k
Music & Morning Musume
bryan
47
7.3k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
WENDY [Excerpt]
tessaabrams
11
39k
GitHub's CSS Performance
jonrohan
1033
470k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Accessibility Awareness
sabderemane
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.