ChangeLog を書く際によく使われる英語をまとめました。
ほとんど引用です。
| // http://tinymce.moxiecode.com/wiki.php/API3:class.tinymce.Plugin | |
| (function() { | |
| tinymce.create('tinymce.plugins.WRAP', { | |
| /** | |
| * Initializes the plugin, this will be executed after the plugin has been created. | |
| * This call is done before the editor instance has finished its initialization so use the onInit event | |
| * of the editor instance to intercept that event. | |
| * |
| <?php | |
| if (!class_exists('WP_AddPage')): | |
| class WP_AddPage { | |
| private $rule = null; | |
| private $title = null; | |
| private $callback = null; | |
| private $template = null; | |
| private $filter = false; |
| <?php | |
| /* | |
| Plugin Name: I am Free! | |
| Author: My Name | |
| Description: WordPressで好き勝手なコンテンツを好き勝手なURLで表示する。 | |
| */ | |
| require_once(dirname(__FILE__).'/includes/class-addrewriterules.php'); | |
| require_once(dirname(__FILE__).'/includes/class-addpage.php'); |
| <?php | |
| function post_thumbnail_shortcode($p) { | |
| $id = 0; | |
| if (isset($p[0]) && $p[0]) { | |
| $id = url_to_postid($p[0]); | |
| } | |
| if (!intval($id)) { | |
| $id = get_the_ID(); | |
| } |
| cut -d ' ' -f1 ~/.bash_history | sort | uniq -c | sort -r | head -n 10 |
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta name="robots" content="noodp, noydir" /> | |
| <link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
| <link rel="canonical" href="http://mysite.com/" /> | |
| <link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
| ======== | |
| パッチの作り方 | |
| ======== | |
| $ mkdir wordpress | |
| $ cd wordpress # ここがドキュメントルート | |
| $ svn co http://develop.svn.wordpress.org/trunk/ . | |
| $ svn update # 作業を行う直前に毎回実行! | |
| ファイルを追加した場合は `svn add` でそのファイルを追加する。 |