Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pの歴史 我々はなぜWordPress専門メディアを作るに至ったか

Pの歴史 我々はなぜWordPress専門メディアを作るに至ったか

WordCamp Kyoto 2017で発表したスライドです。 Capital P https://capitalp.jp がどのようにして始まったかについて、発表させていただきました。

Takahashi Fumiki

June 29, 2017
Tweet

More Decks by Takahashi Fumiki

Other Decks in Technology

Transcript

  1. /** * Forever eliminate "Wordpress" from the planet (or at

    least the little bit we can influence). * * Violating our coding standards for a good function name. * * @since 3.0.0 * * @staticvar string|false $dblq * * @param string $text The text to be modified. * @return string The modified text. */ function capital_P_dangit( $text ) { // Simple replacement for titles $current_filter = current_filter(); if ( 'the_title' === $current_filter || 'wp_title' === $current_filter ) return str_replace( 'Wordpress', 'WordPress', $text ); // Still here? Use the more judicious replacement static $dblq = false; if ( false === $dblq ) { $dblq = _x( '“', 'opening curly double quote' ); } return str_replace( array( ' Wordpress', '‘Wordpress', $dblq . 'Wordpress', '>Wordpress', '(Wordpress' ), array( ' WordPress', '‘WordPress', $dblq . 'WordPress', '>WordPress', '(WordPress' ), $text ); } 5
  2. w 8PSE1SFTT͸ίʔυͰͰ͖͍ͯΔ͕ɺͦΕΛ࢖͏ ͷ͸ਓؒɻϚαΧϦΛৼΔ͍ଓ͚ΔϞώΧϯ଒͚ͩ ͕ਓྨͰ͸ͳ͍ɻ w ͱ ͸ ͍ ͑ ɺ

    ί ʔ υ Λ ॻ ͘ ਓ ͕ ͍ ͳ ͚ Ε ͹ ɺ 8PSE1SFTT͸ଘࡏͰ͖ͳ͍ɻ w ͦ΋ͦ΋Ϣʔβʔͬͯ୭ʁɹίϛϡχςΟͬͯ୭ͷ ͜ͱʁ 13