• サイトデザイン工事中です。ご意見をお寄せください
  • 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

Version 2.7

提供:WordPress Codex 日本語版
移動: 案内, 検索

このページ「Version 2.7」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

2008年12月10日(米国時間)、アメリカンジャズの偉大な John Coltrane にちなんで名付けられた、WordPress バージョン 2.7 "Coltrane"リリースされました原文)。このバージョンの豊富な機能強化とバグフィクスについては、開発ブログおよび更新履歴 2.7/en をご覧ください。

Version 2.7 のデータベースバージョン(wp_options の db_version)は 9872 へ変更となり、Trac/en のリビジョンは 10187 となりました。

開発者向け機能

以下の機能は現在試験中であり、最終リリースまでに変更・取り下げられることがあります。

HTTP API

This should be moved to its own section. I didn't mean to actually write everything about the HTTP API. -- Ticket 4779

The HTTP API is an attempt to standardize the HTTP requests and responses for WordPress. It will eventually obsolete Snoopy and deprecate the other functions in WordPress. That is, once the HTTP API is completely stable.

The HTTP API handles the response as well, so that it standardizes how you handle the final response. What is given back to you is in the form of an array, with the headers, body, and response as array keys. More will be explained about them later.

The main focus is the WP_Http class, which facilitates the HTTP requests and the transports. Transport is the term given to the classes, which handle the HTTP requests. The five supported transports are Fsockopen, Fopen, Streams, Curl, and HTTP.

The fsockopen uses the fsockopen() PHP function to handle the HTTP requests. The fopen and stream transports use the fopen() PHP function, with the latter one using the context parameter to activate the PHP streams. The Curl and HTTP transports use their respective PHP extensions to handle the PHP extensions and are the preferred transports.

The plugin developers will be handling HTTP requests using the wp_remote_request(), wp_remote_get(), wp_remote_post(), and wp_remote_head(). There are several helper functions for handling the responses, but it is advised for performance purposes to access the raw response array as much as possible. The response helper functions are wp_remote_retrieve_headers(), wp_remote_retrieve_header(), wp_remote_retrieve_response_code(), wp_remote_retrieve_response_message(), and wp_remote_retrieve_body().

There are test cases available for the HTTP API and eventually they will probably be added to the Automattic WordPress Tests repository. The current coverage isn't that great, but is currently being improved.

プラグイン・アンインストーラ

There is a new plugin uninstall in WordPress 2.7 that allows a plugin to uninstall itself, when the user deletes the plugin. There are two uninstall methods that the plugin can implement. One is by creating a file in the base plugin directory named uninstall.php and storing the uninstall code there. The second method is by creating a hook that will execute the uninstall routines and using register_uninstall_hook() function to register the hook with WordPress.

コメント API

The Comment API is for managing comments using the XMLRPC protocol. See Ticket #7446 for more information and progress.

インライン・ドキュメンテーション

The WordPress 2.7 has almost every file fully documented with phpdoc type inline documentation. This includes most of the files with file level phpdoc blocks. The functions have the parameters accepted type documented with descriptions. The functions also have short descriptions and many functions have long descriptions.

This should improve the support and limit the questions newcomers have about the WordPress library. It is also along the goal of better quality assurance.

Administration Manage Section API

WordPress 2.7 is going to have an API for adding additional sections to the manage or settings administration panels. This means directly in those pages and not as a new page. The functions add_settings_section(), add_settings_field(), register_setting(), unregister_setting() implement this feature.

The functions are found in wp-admin/includes/template.php.

The wp_page_menu() function can be found in wp-includes/post-template.php. The details on the function are minor, so more information should be on the way.

ユーザ向け機能

プラグイン・インストーラ

チケット #6015 参照。

プラグイン・インストーラは、WordPress の管理パネルからプラグインをインストールできるようにしたものです。プラグインを語句・タグ・プラグイン作者名によって検索できます。注目・人気・最近追加・更新されたプラグインの一覧も表示できます。プラグイン名をクリックすると、プラグインの詳細情報を見た上で、あなたの WordPress プラグインリストへのインストールを選ぶことができます。

WordPress アップグレーダ

チケット #5560 参照。

WordPress アップグレーダとは、管理パネルから WordPress の最新版をダウンロードして設置・アップグレードできる機能です。

アップグレーダは、管理パネルの下部にある "stay updated" リンクをクリックすることによって実行されます。最新版をダウンロードするか、自動的にアップグレードするかを尋ねるページを表示します。自動アップグレードは、WordPress の最新版をダウンロードし、現在のバージョンに上書きインストールします。

サーバによっては自動アップグレードで問題が起きるかもしれません。あなたのウェブホストがこの本体更新機能に対応しているかどうかは、対応サーバ一覧を確認してください。

旧バージョンのファイルやフォルダはアップグレードにより削除されます。WordPress ファイルに手を加えているなら、削除・置換されるファイルをコアアップグレードにより自動的に差し替えられるファイル一覧/en にてご確認ください。

php に ssh2 拡張がインストールされているなら、アップグレード時に SFTP が使えます。

The code is currently being finalized, with only a rough draft being committed. It will be finalized before WordPress 2.7 is released.

アップグレード中に実行される処理

Ryan の Trac コメント より。

  1. アップグレードできるかを調べるため、バージョンとロケール(言語情報)を http://api.wordpress.org/core/version-check/1.2/ へ送信。可能であれば WP パッケージへのリンクを取得。要求されたロケールのパッケージがあればそれを使い、なければ英語版を使う。利用できるパッケージは wp.org に国際版サイトがあるロケールのみ。http://api.wordpress.org/core/version-check/1.2/ 参照。
  2. wordpress.org からシステムの temp ディレクトリへパッケージをダウンロード。
  3. 作業ディレクトリを作成。通常は wp-content/upgrade/core
  4. 作業ディレクトリ内にパッケージを解凍(展開)。
  5. 作業ディレクトリに解凍した新バージョンから現在の WP インストールへ wp-admin/includes/update-core.php をコピー。
  6. 新 update-core.php をインクルード。
  7. update-core.php に定義されている update_core() を call。
  8. update_core() が引き継ぎ以下を実行。
    1. 作業ディレクトリにある新バージョンの WP の整合性チェック。
    2. WP ルートディレクトリに .maintenance ファイルを作成。wp-settings.php checks this and prevents WP from fully loading if it exists. We don't want WP loading while files are being upgraded
    3. 旧 WP ファイルを新ファイルで上書き。
    4. WP の構成に含まれなくなったファイルを除去。
    5. DB アップグレードを実行する ugrade.php へリクエストを送信。We do this as a separate request instead of calling the upgrade function directly because we need a fresh request that has all of the new stuff loaded.
    6. 作業ディレクトリを削除。
    7. .maintenance ファイルを削除。
    8. 完了。

ファイルパーミッション

All file operations are performed as the user that owns the files, not as the web server's user. All files are set to 0644 and all directories are set to 0755, and writable by only the user and readable by everyone else, including the web server.

管理パネル

The WordPress Administration panels are undergoing another set of changes. The general look and navigation are intended to make the administration interface highly customizable as well as faster and easier to use.

Other parts of the Administration panels are being improved to ease the administration tasks. Improvements so far have been made to the comments view, the posts and pages management panels.

These changes are merged from the crazyhorse branch and development is ongoing and subject to change.

抜本的な変更の最たるものは、上部ナビゲーションからサイドナビゲーションへの移動です。これにより、事実上無制限に、管理パネルの「最上位階層」リンクをプラグインによって追加できるようになりました。サイドナビゲーションでは、画面を再読み込みすることなくセクションを展開したり折り畳んだりして、サブメニューを表示/非表示できるようになりました。さらに、作業エリアをできるだけ広く取りたい「上級」モードとして、アイコンだけを残して全てのナビゲーション項目を折り畳むこともできます。

ショートカット

ヘッダ部のブログ名の近くあるショートカットメニューでは、新規投稿やコメントといった頻繁に使う画面に 1クリックでアクセスできます。

ダッシュボードのモジュール制御

ダッシュボードと新規投稿画面では、自分好みで最も便利になるように、モジュール(構成要素)をドラッグ&ドロップで段組間移動させたり、表示したり折り畳んだり、画面から消したり(戻したり)できます。

一覧表示項目の制御

表形式の一覧表示画面(投稿・メディアライブラリ等)では、表示させる項目を自分で決められます。非表示とした項目は「Screen Options」タブからいつでも一覧表に戻せます。

投稿エディタ

The update notifications have moved to the bottom of the writing area, as well as the word count. Additional icons for embedding media will enable fast posting of media from external sources.


Sticky Posts

WordPress 2.7 will include Sticky Posts check box on the write screens. This will place the post at the top of the front page for posts and keep it there after new posts are made.

Admin Comment Inline Reply

The ticket can be found at #7435.

The Administration Comment Panel inline reply to comments opens a JavaScript HTML window that allows for replying to the comment. This enhancement is over having to visit the article and using the comment box. The dialog window can be resized and will save the resize state only while on that page. Going to a separate page will not save the resize state. The dialog also has buttons for adding HTML tags, but does not use TinyMCE.

QuickPress

The new QuickPress module on the Dashboard provides a fast way to create drafts or posts that don't require the full metadata options of the Add New Post screen. Drafts created with QuickPress will be listed immediately in the Recent Drafts module on the Dashboard.

最近の草稿

作成中の投稿に素早くアクセスできるよう、直近の草稿へのリンクを表示するモジュールをダッシュボードに設けました。

ダッシュボードでのコメントモデレーション

新規コメントのモデレートやコメントへの返信をダッシュボードから直に行えるようになりました。

Features That Didn't Make It

These features didn't make it into 2.7, but there's hope that they might make it into 2.8.

関連リンク

最新英語版: WordPress Codex » Version 2.7最新版との差分

個人用ツール
名前空間
変種
操作
このサイトについて
特集
サーバ別情報
リファレンス
ドキュメント整備
ツールボックス
他の言語