- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「Version 3.6」の版間の差分
提供: WordPress Codex 日本語版
細 (コードネーム "Oscar" を追記) |
(01:01, 3 August 2013 Archon810 版に合わせました。要翻訳) |
||
1行目: | 1行目: | ||
{{NeedTrans}} | {{NeedTrans}} | ||
− | + | 2013年8月1日、WordPress [[Version 3.6|バージョン 3.6]] (コードネーム:''Oscar'' - ジャズピアニスト、[http://ja.wikipedia.org/wiki/オスカー・ピーターソン オスカー・ピーターソン]) が公開されました。詳しくは [http://wordpress.org/news/2013/08/oscar/ WordPress Blog] ([http://ja.wordpress.org/2013/08/03/wordpress-3-6-ja/ WordPress › 日本語 « WordPress 3.6 日本語版リリースのお知らせ]) および [[Changelog/3.6|Version 3.6 の変更履歴]] を参照してください。 | |
− | [[Version 3.6|バージョン 3.6]] ではデータベースバージョン (<tt>[[データベース概要#Table:_wp_options|wp_options]]</tt> テーブルの <tt>db_version</tt>) が''' | + | [[Version 3.6|バージョン 3.6]] ではデータベースバージョン (<tt>[[データベース概要#Table:_wp_options|wp_options]]</tt> テーブルの <tt>db_version</tt>) が'''24448'''へ変更となり、[https://core.trac.wordpress.org Trac]のリビジョンは [https://core.trac.wordpress.org/changeset/24973 r24973] となりました。 |
* [http://trac.wordpress.org/query?status=closed&milestone=3.6 View Closed Tickets クローズ済みのバージョン 3.6 チケット] | * [http://trac.wordpress.org/query?status=closed&milestone=3.6 View Closed Tickets クローズ済みのバージョン 3.6 チケット] | ||
16行目: | 16行目: | ||
* '''管理者向け変更''' | * '''管理者向け変更''' | ||
− | |||
** メニューのインターフェイスを改善 | ** メニューのインターフェイスを改善 | ||
− | ** | + | ** リビジョンをよりダイナミックかつ拡張可能に更新 |
** 自動保存と投稿のロック | ** 自動保存と投稿のロック | ||
** メディア編集画面での音声やビデオのプレビューをサポート | ** メディア編集画面での音声やビデオのプレビューをサポート | ||
* ''開発者向け変更''' | * ''開発者向け変更''' | ||
− | ** | + | ** External Libraries have been updated. [[#Scripts.2C_External_Libraries|More Info]] |
− | ** | + | ** New audio/video APIs give developers access to powerful media metadata, like ID3 tags. |
− | ** | + | ** Filters for revisions, allowing you to set the number of revisions ad hoc instead of only via a define. [http://core.trac.wordpress.org/ticket/22289 More Info] |
+ | ** Semantic Markup allows themes to choose improved HTML5 markup for comment forms, search forms, and comment lists. | ||
+ | ** Search content for shortcodes with [[Function_Reference/has_shortcode|has_shortcode()]] and adjust shortcode attributes with a new filter. | ||
<div id="What's New"> | <div id="What's New"> | ||
33行目: | 34行目: | ||
=== 全般 === | === 全般 === | ||
</div> | </div> | ||
− | + | * Use digraphs for German umlauts in [[Function Reference/remove accents|remove_accents()]] | |
− | * Use digraphs for German umlauts in [[Function Reference/remove accents|remove_accents()]] | + | * Use Ellipses instead of … |
− | * Use Ellipses instead of … | + | * Consistently apply 'register' filter |
− | * Consistently apply 'register' filter | + | * Automatically [[Function Reference/esc url|esc_url()]] the URL echoed by [[Function Reference/the permalink|the_permalink()]] |
− | * Automatically [[Function Reference/esc url|esc_url()]] the URL echoed by [[Function Reference/the permalink|the_permalink()]] | + | * Allow developers to specify an Accept-Encoding header in WP_Http::accept_encoding() |
− | * Allow developers to specify an Accept-Encoding header in WP_Http::accept_encoding() | + | * Pass tag object and args array to topic_count_text_callback from [[Function Reference/wp_generate_tag_cloud|wp_generate_tag_cloud()]] |
− | * Pass tag object and args array to topic_count_text_callback from [[Function Reference/wp_generate_tag_cloud|wp_generate_tag_cloud()]] | + | * Use [[Function Reference/wp unslash|wp_unslash()]] instead of stripslashes_deep |
− | * Use [[Function Reference/wp unslash|wp_unslash()]] instead of stripslashes_deep | + | * Improve the performance of [[Function Reference/backslashit|backslashit()]] by avoiding regular expressions |
− | * Improve the performance of [[Function Reference/backslashit|backslashit()]] by avoiding regular expressions | + | * Disallow accidental or negligent deregistering of critical scripts in the admin. Covers jQuery, jQuery UI, Underscore, and Backbone |
− | + | * Remove [[Function Reference/the title attribute|the_title_attribute()]] from anchors with [[Function Reference/the title|the_title()]] as text | |
− | * Disallow accidental or negligent deregistering of critical scripts in the admin. Covers jQuery, jQuery UI, Underscore, and Backbone | + | * Display username (user_login) rather than user_nicename in Toolbar below username |
− | * Remove [[Function Reference/the title attribute|the_title_attribute()]] from anchors with [[Function Reference/the title|the_title()]] as text | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * | + | |
<div id="Posts"> | <div id="Posts"> | ||
59行目: | 53行目: | ||
* The ability to change post formats was removed from Quick Edit | * The ability to change post formats was removed from Quick Edit | ||
* A 'not_found' label was added for non-hierarchical taxonomys | * A 'not_found' label was added for non-hierarchical taxonomys | ||
− | * Better UX for dealing with multiple users editing the same content | + | * Better UX for dealing with multiple users editing the same content (aka Post Locking) |
− | + | * Audio/Video support [http://make.wordpress.org/core/2013/04/08/audio-video-support-in-core/ More Info] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * | + | |
<div id="Media"> | <div id="Media"> | ||
74行目: | 63行目: | ||
* The [[Media Library Screen|Media Library]] can now be sorted by Author name | * The [[Media Library Screen|Media Library]] can now be sorted by Author name | ||
* Bug fixed where initial gallery link-to setting wasn't applied | * Bug fixed where initial gallery link-to setting wasn't applied | ||
− | * Return from [[Function Reference/image downsize|image_downsize()]] earlier if a custom resize function is used | + | * Return from [[Function Reference/image downsize|image_downsize()]] earlier if a custom resize function is used |
* Orientation information was added to items in [[Function Reference/gallery shortcode|gallery_shortcode()]] | * Orientation information was added to items in [[Function Reference/gallery shortcode|gallery_shortcode()]] | ||
* New Audio and Video previews are available on the [[Media Library Screen|Media]] > [[Edit Media|Edit]] Screen | * New Audio and Video previews are available on the [[Media Library Screen|Media]] > [[Edit Media|Edit]] Screen | ||
81行目: | 70行目: | ||
=== コメント === | === コメント === | ||
</div> | </div> | ||
− | * Improve [[Function Reference/wp list comments|wp_list_comments()]] markup | + | * Improve [[Function Reference/wp list comments|wp_list_comments()]] markup |
− | * Add the ability to use HTML5 input types in the comment form | + | * Add the ability to use HTML5 input types in the comment form |
<div id="Appearance"> | <div id="Appearance"> | ||
94行目: | 83行目: | ||
=== プラグイン === | === プラグイン === | ||
</div> | </div> | ||
− | * Prevent plugins from overriding jQuery in the admin | + | * Prevent plugins from overriding jQuery in the admin |
<div id="Users"> | <div id="Users"> | ||
100行目: | 89行目: | ||
</div> | </div> | ||
* Remove the three default contact methods (AIM, YIM, Jabber) for new installs. | * Remove the three default contact methods (AIM, YIM, Jabber) for new installs. | ||
− | * Pass old roles to [[Plugin_API/ | + | * Pass old roles to [[Plugin_API/Action_Reference/set_user_role|set_user_role]] action |
* The workflow for deleting users has been improved | * The workflow for deleting users has been improved | ||
136行目: | 125行目: | ||
=== バグ修正 === | === バグ修正 === | ||
</div> | </div> | ||
− | + | * Strip slashes from passwords sent to new users by email | |
− | + | * Make sure the url returned by [[Function_Reference/post_preview|post_preview()]] is filterable with [[Plugin_API/Filter_Reference/preview_post_link|preview_post_link]] | |
− | + | * Fix handling of '0' as meta_value argument in [[Function_Reference/get_pages|get_pages()]] | |
− | + | * Correctly print 'after' data when scripts are concatenated in [[Class_Reference/WP_Styles|WP_Styles]] class | |
− | * Strip slashes from passwords sent to new users by email | + | * Properly truncate UTF-8 post slugs in [[Function_Reference/wp_unique_post_slug|wp_unique_post_slug()]] |
− | + | * Avoid PHP notices in Media Library if an attachment parent does not exist | |
− | * Make sure the url returned by [[Function_Reference/post_preview|post_preview()]] is filterable with [[Plugin_API/Filter_Reference/preview_post_link|preview_post_link]] | + | * Fix some tabbing issues on the post editing screen |
− | * Fix handling of '0' as meta_value argument in [[Function_Reference/get_pages|get_pages()]] | + | * Avoid notice by checking for user agent in [[Function_Reference/wp_new_comment|wp_new_comment()]] |
− | * Correctly print 'after' data when scripts are concatenated in [[Class_Reference/WP_Styles|WP_Styles]] class | + | * Avoid notice in [[Function_Reference/parent_dropdown|parent_dropdown()]] by checking if post exists before testing post id |
− | * Properly truncate UTF-8 post slugs in [[Function_Reference/wp_unique_post_slug|wp_unique_post_slug()]] | + | * Prevent an unintended visibility change from "Password protected" to "Public" when updating the post |
− | + | * Avoid a warning in mb_internal_encoding by making sure we have a charset first | |
− | + | * Fix unnecessarily persistent "pending email change" admin message | |
− | + | * Ensure we strictly compare 'all options' and 'not options' when protecting these special options | |
− | * Avoid PHP notices in Media Library if an attachment parent does not exist | + | * Make sure to reset the modal after gallery insertion |
− | + | * Add sanity checks on image metadata to avoid warnings | |
− | * Fix some tabbing issues on the post editing screen | + | * Avoid an undefined index notice in [[Function_Reference/get_post_type_archive_feed_link|get_post_type_archive_feed_link()]] |
− | * Avoid notice by checking for user agent in [[Function_Reference/wp_new_comment|wp_new_comment()]] | + | * Avoid notices when array args are missing in [[Class_Reference/WP_Image_Editor|WP_Image_Editor::multi_resize()]] |
− | * Avoid notice in [[Function_Reference/parent_dropdown|parent_dropdown()]] by checking if post exists before testing post id | + | * Fix notice in [[Function_Reference/wp_generate_attachment_metadata|wp_generate_attachment_metadata()]] |
− | + | * Avoid PHP notices when deleting or restoring an item that no longer exists | |
− | * Prevent an unintended visibility change from "Password protected" to "Public" when updating the post | + | |
− | + | ||
− | * Avoid a warning in mb_internal_encoding by making sure we have a charset first | + | |
− | * Fix unnecessarily persistent "pending email change" admin message | + | |
− | * Ensure we strictly compare 'all options' and 'not options' when protecting these special options | + | |
− | + | ||
− | + | ||
− | * Make sure to reset the modal after gallery insertion | + | |
− | + | ||
− | * Add sanity checks on image metadata to avoid warnings | + | |
− | * Avoid an undefined index notice in [[Function_Reference/get_post_type_archive_feed_link|get_post_type_archive_feed_link()]] | + | |
− | * Avoid notices when array args are missing in [[Class_Reference/WP_Image_Editor|WP_Image_Editor::multi_resize()]] | + | |
− | * Fix notice in [[Function_Reference/wp_generate_attachment_metadata|wp_generate_attachment_metadata()]] | + | |
− | * Avoid PHP notices when deleting or restoring an item that no longer exists | + | |
<div id="Multisite"> | <div id="Multisite"> | ||
=== マルチサイト === | === マルチサイト === | ||
</div> | </div> | ||
+ | * Pass blog_id to the wpmu_drop_tables filter | ||
<div id="Classes"> | <div id="Classes"> | ||
=== クラス === | === クラス === | ||
</div> | </div> | ||
+ | * XML-RPC: Return an error for getRecentPosts (mw and blogger) if the user does not have edit_posts | ||
+ | * XML-RPC: Standardize home/site url labels with core labels | ||
+ | * Preserve alpha in [[Class_Reference/WP_Image_Editor_GD|WP_Image_Editor_GD]] when images are not resized | ||
+ | * Make sure WP_Http funnels all redirect requests through [[HTTP_API|WP_Http::request()]] to ensure the proper transport is used | ||
<div id="Functions"> | <div id="Functions"> | ||
=== 新規関数 === | === 新規関数 === | ||
</div> | </div> | ||
− | + | * An arg parameter was added for [[Function Reference/wp nonce url|wp_nonce_url()]] | |
− | * [[ | + | * Allow paths with two consecutive dots to be passed to [[Function_Reference/home_url|home_url()]] and all related *_url() functions |
− | * [[Function_Reference/ | + | * Document 7th parameter, $callback_args in [[Function_Reference/add_meta_box|add_meta_box()]] |
− | * | + | * Confirm a user exists before deleting them in [[Function_Reference/wp_delete_user|wp_delete_user()]] and [[Function_Reference/wpmu_delete_user|wpmu_delete_user()]] |
− | * [[Function_Reference/ | + | * Return WP_Error from [[Function_Reference/wp_crop_image|wp_crop_image()]] if saving has failed |
− | * [[Function_Reference/ | + | * Bail early with correct WP_Error if invalid post ID passed to [[Function_Reference/wp_insert_post|wp_insert_post()]] |
− | + | * Remove duplicate calls to [[Function_Reference/add_new_user_to_blog|add_new_user_to_blog()]] | |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_add_id3_tag_data|wp_add_id3_tag_data()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_read_video_metadata|wp_read_video_metadata()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_read_audio_metadata|wp_read_audio_metadata()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_nav_menu_disabled_check|wp_nav_menu_disabled_check()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_nav_menu_update_menu_items|wp_nav_menu_update_menu_items()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/do_accordion_sections|do_accordion_sections()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_slash|wp_slash()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_unslash|wp_unslash()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_is_writable|wp_is_writable()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_auth_check_load|wp_auth_check_load()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_auth_check|wp_auth_check()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/get_tag_regex|get_tag_regex()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_registration_url|wp_registration_url()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_heartbeat_settings|wp_heartbeat_settings()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_mediaelement_fallback|wp_mediaelement_fallback()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_get_audio_extensions|wp_get_audio_extensions()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_audio_shortcode|wp_audio_shortcode()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_get_video_extensions|wp_get_video_extensions()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_video_shortcode|wp_video_shortcode()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_embed_handler_audio|wp_embed_handler_audio()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/wp_embed_handler_video|wp_embed_handler_video()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/get_attached_media|get_attached_media()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/get_post_galleries|get_post_galleries()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/get_post_galleries_images|get_post_galleries_images()]] |
− | * [[Function_Reference/ | + | * Introduce [[Function_Reference/get_post_gallery|get_post_gallery()]] |
− | + | * Introduce [[Function_Reference/get_post_gallery_images|get_post_gallery_images()]] | |
− | + | * Introduce [[Function_Reference/wp_post_revision_title_expanded|wp_post_revision_title_expanded()]] | |
− | + | * Introduce [[Function_Reference/paginate_content|paginate_content()]] | |
− | + | * Introduce [[Function_Reference/get_paged_content|get_paged_content()]] | |
− | + | * Introduce [[Function_Reference/wp_revisions_enabled|wp_revisions_enabled()]] | |
− | + | * Introduce [[Function_Reference/wp_revisions_to_keep|wp_revisions_to_keep()]] | |
− | + | * Introduce [[Function_Reference/wp_text_diff_with_count|wp_text_diff_with_count()]] | |
− | * [[Function_Reference/get_post_galleries|get_post_galleries()]] | + | * Introduce [[Function_Reference/shortcode_exists|shortcode_exists()]] |
− | * [[Function_Reference/get_post_galleries_images|get_post_galleries_images()]] | + | * Introduce [[Function_Reference/has_shortcode|has_shortcode()]] |
− | * [[Function_Reference/get_post_gallery|get_post_gallery()]] | + | * Introduce [[Function_Reference/wp_parse_post_content|wp_parse_post_content()]] |
− | * | + | * Introduce [[Function_Reference/wp_remove_object_terms|wp_remove_object_terms()]] |
− | + | * Introduce [[Function_Reference/wp_add_object_terms|wp_add_object_terms()]] | |
− | * | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * [[Function_Reference/paginate_content|paginate_content()]] | + | |
− | * [[Function_Reference/get_paged_content|get_paged_content()]] | + | |
− | * [[Function_Reference/wp_revisions_enabled|wp_revisions_enabled()]] | + | |
− | * [[Function_Reference/wp_revisions_to_keep|wp_revisions_to_keep()]] | + | |
− | * [[Function_Reference/wp_text_diff_with_count|wp_text_diff_with_count()]] | + | |
− | * [[Function_Reference/shortcode_exists|shortcode_exists()]] | + | |
− | * [[Function_Reference/has_shortcode|has_shortcode()]] | + | |
− | * [[Function_Reference/wp_parse_post_content|wp_parse_post_content()]] | + | |
− | * [[Function_Reference/wp_remove_object_terms|wp_remove_object_terms()]] | + | |
− | * [[Function_Reference/wp_add_object_terms|wp_add_object_terms | + | |
− | + | ||
<div id="Filters"> | <div id="Filters"> | ||
=== 新規フィルター === | === 新規フィルター === | ||
</div> | </div> | ||
− | * [[Plugin_API/Filter_Reference/ | + | * Add [[Plugin_API/Filter_Reference/self_link|self_link]] in [[Function_Reference/self_link|self_link()]] |
− | + | * Add [[Plugin_API/Filter_Reference/get_comments_link|get_comments_link]] in [[Function_Reference/get_comments_link|get_comments_link()]] | |
− | * [[Plugin_API/Filter_Reference/get_comments_link|get_comments_link]] | + | * Add [[Plugin_API/Filter_Reference/comments_link_feed|comments_link_feed]] in [[Function_Reference/comments_link_feed|comments_link_feed()]] |
− | * [[Plugin_API/Filter_Reference/comments_link_feed|comments_link_feed]] | + | * Add [[Plugin_API/Filter_Reference/comment_link|comment_link]] in [[Function_Reference/get_comment_link|get_comment_link()]] |
− | * [[Plugin_API/Filter_Reference/comment_link|comment_link]] | + | * Add [[Plugin_API/Filter_Reference/nav_menu_link_attributes|nav_menu_link_attributes]] in [[Class_Reference/Walker_Nav_Menu|Walker_Nav_Menu::start_el()]] |
− | * [[Plugin_API/Filter_Reference/nav_menu_link_attributes|nav_menu_link_attributes]] | + | * Add [[Plugin_API/Filter_Reference/wp_revisions_to_keep|wp_revisions_to_keep]] in [[Function_Reference/wp_revisions_to_keep|wp_revisions_to_keep()]] |
− | * [[Plugin_API/Filter_Reference/wp_revisions_to_keep|wp_revisions_to_keep]] | + | * Add [[Plugin_API/Filter_Reference/wp_link_pages|wp_link_pages]] in [[Functions_Reference/wp_link_pages|wp_link_pages()]] |
− | * [[Plugin_API/Filter_Reference/wp_link_pages|wp_link_pages]] | + | * Add [[Plugin_API/Filter_Reference/search_form_format|search_form_format]] in [[Function_Reference/get_search_form|get_search_form()]] |
− | * [[Plugin_API/Filter_Reference/search_form_format|search_form_format]] | + | * Add [[Plugin_API/Filter_Reference/user_search_columns|user_search_columns]] in [[Class_Reference/WP_User_Query|WP_User_Query::prepare_query()]] |
− | * [[Plugin_API/Filter_Reference/user_search_columns|user_search_columns]] | + | * Add [[Plugin_API/Filter_Reference/wp_http_accept_encoding|wp_http_accept_encoding]] in [[Class_Reference/WP_Http_Encoding|WP_Http_Encoding::accept_encoding()]] |
− | * [[Plugin_API/Filter_Reference/wp_http_accept_encoding|wp_http_accept_encoding]] | + | * Add [[Plugin_API/Filter_Reference/widget_meta_poweredby|widget_meta_poweredby]] in [[Class_Reference/WP_Widget_Meta|WP_Widget_Meta::widget()]] |
− | * [[Plugin_API/Filter_Reference/widget_meta_poweredby|widget_meta_poweredby]] | + | |
<div id="Scripts, External Libraries"> | <div id="Scripts, External Libraries"> | ||
=== スクリプト、外部ライブラリ === | === スクリプト、外部ライブラリ === | ||
</div> | </div> | ||
+ | * Update to jQuery Color 2.2.1 | ||
+ | * Update to Backbone 1.0.0 | ||
+ | * Update to jQuery UI 1.10.3 | ||
* Services_JSON 1.0.3 | * Services_JSON 1.0.3 | ||
− | |||
− | |||
− | |||
* Iris 1.0.3 | * Iris 1.0.3 | ||
* hoverIntent r7 | * hoverIntent r7 | ||
287行目: | 235行目: | ||
=== 非推奨となった関数 === | === 非推奨となった関数 === | ||
</div> | </div> | ||
− | * [[Function_Reference/wp_convert_bytes_to_hr|wp_convert_bytes_to_hr()]] の代わりに [[Function_Reference/size_format|size_format()]] | + | * [[Function_Reference/wp_convert_bytes_to_hr|wp_convert_bytes_to_hr()]] の代わりに [[Function_Reference/size_format|size_format()]] を用いることが推奨となりました。 |
− | * [[Function_Reference/get_user_id_from_string|get_user_id_from_string()]] の代わりに [[Function_Reference/get_user_by|get_user_by()]] の <tt>`$field`</tt> から <tt>'email'</tt> or <tt>'login'</tt> | + | * [[Function_Reference/get_user_id_from_string|get_user_id_from_string()]] の代わりに [[Function_Reference/get_user_by|get_user_by()]] の <tt>`$field`</tt> から <tt>'email'</tt> or <tt>'login'</tt> 用いることが推奨となりました。 |
2013年8月3日 (土) 21:46時点における版
このページ「Version 3.6」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
2013年8月1日、WordPress バージョン 3.6 (コードネーム:Oscar - ジャズピアニスト、オスカー・ピーターソン) が公開されました。詳しくは WordPress Blog (WordPress › 日本語 « WordPress 3.6 日本語版リリースのお知らせ) および Version 3.6 の変更履歴 を参照してください。
バージョン 3.6 ではデータベースバージョン (wp_options テーブルの db_version) が24448へ変更となり、Tracのリビジョンは r24973 となりました。
目次
ハイライト
- 新しいデフォルトテーマ - Twenty Thirteen
- ブログ作成にフォーカス
- サイドバーをシングルレイアウトに / ウィジェットをフッターに
- 投稿フォーマットなど、最新のテーマ機能をサポート。
- フォントベースのアイコン (Genericons)
- 管理者向け変更
- メニューのインターフェイスを改善
- リビジョンをよりダイナミックかつ拡張可能に更新
- 自動保存と投稿のロック
- メディア編集画面での音声やビデオのプレビューをサポート
- 開発者向け変更'
- External Libraries have been updated. More Info
- New audio/video APIs give developers access to powerful media metadata, like ID3 tags.
- Filters for revisions, allowing you to set the number of revisions ad hoc instead of only via a define. More Info
- Semantic Markup allows themes to choose improved HTML5 markup for comment forms, search forms, and comment lists.
- Search content for shortcodes with has_shortcode() and adjust shortcode attributes with a new filter.
What's New
全般
- Use digraphs for German umlauts in remove_accents()
- Use Ellipses instead of …
- Consistently apply 'register' filter
- Automatically esc_url() the URL echoed by the_permalink()
- Allow developers to specify an Accept-Encoding header in WP_Http::accept_encoding()
- Pass tag object and args array to topic_count_text_callback from wp_generate_tag_cloud()
- Use wp_unslash() instead of stripslashes_deep
- Improve the performance of backslashit() by avoiding regular expressions
- Disallow accidental or negligent deregistering of critical scripts in the admin. Covers jQuery, jQuery UI, Underscore, and Backbone
- Remove the_title_attribute() from anchors with the_title() as text
- Display username (user_login) rather than user_nicename in Toolbar below username
投稿
- The Revision Management UI saw significant improvement
- Shortcode attributes can now be filtered via shortcode_atts_$shortcode hook
- The ability to change post formats was removed from Quick Edit
- A 'not_found' label was added for non-hierarchical taxonomys
- Better UX for dealing with multiple users editing the same content (aka Post Locking)
- Audio/Video support More Info
メディア
- Add oEmbed support for Rdio and Spotify
- .webm (video/webm) was added to the MIME types list
- The Media Library can now be sorted by Author name
- Bug fixed where initial gallery link-to setting wasn't applied
- Return from image_downsize() earlier if a custom resize function is used
- Orientation information was added to items in gallery_shortcode()
- New Audio and Video previews are available on the Media > Edit Screen
コメント
- Improve wp_list_comments() markup
- Add the ability to use HTML5 input types in the comment form
外観
- The Navigation Menus UI got a significant refresh
- The Customizer can now be accessed via the Appearance menu
- Screen options can now be added to the Appearance > Widgets Screen
プラグイン
- Prevent plugins from overriding jQuery in the admin
ユーザー
- Remove the three default contact methods (AIM, YIM, Jabber) for new installs.
- Pass old roles to set_user_role action
- The workflow for deleting users has been improved
設定
アクセシビリティ
- Better keyboard/screen reader accessibility in the Nav Menus UI
- Background image's "select a file" link works with keyboard navigation
インストール手順
マルチサイト
- Pass blog_id to the wpmu_drop_tables filter - #24230
Under The Hood
全般
バグ修正
- Strip slashes from passwords sent to new users by email
- Make sure the url returned by post_preview() is filterable with preview_post_link
- Fix handling of '0' as meta_value argument in get_pages()
- Correctly print 'after' data when scripts are concatenated in WP_Styles class
- Properly truncate UTF-8 post slugs in wp_unique_post_slug()
- Avoid PHP notices in Media Library if an attachment parent does not exist
- Fix some tabbing issues on the post editing screen
- Avoid notice by checking for user agent in wp_new_comment()
- Avoid notice in parent_dropdown() by checking if post exists before testing post id
- Prevent an unintended visibility change from "Password protected" to "Public" when updating the post
- Avoid a warning in mb_internal_encoding by making sure we have a charset first
- Fix unnecessarily persistent "pending email change" admin message
- Ensure we strictly compare 'all options' and 'not options' when protecting these special options
- Make sure to reset the modal after gallery insertion
- Add sanity checks on image metadata to avoid warnings
- Avoid an undefined index notice in get_post_type_archive_feed_link()
- Avoid notices when array args are missing in WP_Image_Editor::multi_resize()
- Fix notice in wp_generate_attachment_metadata()
- Avoid PHP notices when deleting or restoring an item that no longer exists
マルチサイト
- Pass blog_id to the wpmu_drop_tables filter
クラス
- XML-RPC: Return an error for getRecentPosts (mw and blogger) if the user does not have edit_posts
- XML-RPC: Standardize home/site url labels with core labels
- Preserve alpha in WP_Image_Editor_GD when images are not resized
- Make sure WP_Http funnels all redirect requests through WP_Http::request() to ensure the proper transport is used
新規関数
- An arg parameter was added for wp_nonce_url()
- Allow paths with two consecutive dots to be passed to home_url() and all related *_url() functions
- Document 7th parameter, $callback_args in add_meta_box()
- Confirm a user exists before deleting them in wp_delete_user() and wpmu_delete_user()
- Return WP_Error from wp_crop_image() if saving has failed
- Bail early with correct WP_Error if invalid post ID passed to wp_insert_post()
- Remove duplicate calls to add_new_user_to_blog()
- Introduce wp_add_id3_tag_data()
- Introduce wp_read_video_metadata()
- Introduce wp_read_audio_metadata()
- Introduce wp_nav_menu_disabled_check()
- Introduce wp_nav_menu_update_menu_items()
- Introduce do_accordion_sections()
- Introduce wp_slash()
- Introduce wp_unslash()
- Introduce wp_is_writable()
- Introduce wp_auth_check_load()
- Introduce wp_auth_check()
- Introduce get_tag_regex()
- Introduce wp_registration_url()
- Introduce wp_heartbeat_settings()
- Introduce wp_mediaelement_fallback()
- Introduce wp_get_audio_extensions()
- Introduce wp_audio_shortcode()
- Introduce wp_get_video_extensions()
- Introduce wp_video_shortcode()
- Introduce wp_embed_handler_audio()
- Introduce wp_embed_handler_video()
- Introduce get_attached_media()
- Introduce get_post_galleries()
- Introduce get_post_galleries_images()
- Introduce get_post_gallery()
- Introduce get_post_gallery_images()
- Introduce wp_post_revision_title_expanded()
- Introduce paginate_content()
- Introduce get_paged_content()
- Introduce wp_revisions_enabled()
- Introduce wp_revisions_to_keep()
- Introduce wp_text_diff_with_count()
- Introduce shortcode_exists()
- Introduce has_shortcode()
- Introduce wp_parse_post_content()
- Introduce wp_remove_object_terms()
- Introduce wp_add_object_terms()
新規フィルター
- Add self_link in self_link()
- Add get_comments_link in get_comments_link()
- Add comments_link_feed in comments_link_feed()
- Add comment_link in get_comment_link()
- Add nav_menu_link_attributes in Walker_Nav_Menu::start_el()
- Add wp_revisions_to_keep in wp_revisions_to_keep()
- Add wp_link_pages in wp_link_pages()
- Add search_form_format in get_search_form()
- Add user_search_columns in WP_User_Query::prepare_query()
- Add wp_http_accept_encoding in WP_Http_Encoding::accept_encoding()
- Add widget_meta_poweredby in WP_Widget_Meta::widget()
スクリプト、外部ライブラリ
- Update to jQuery Color 2.2.1
- Update to Backbone 1.0.0
- Update to jQuery UI 1.10.3
- Services_JSON 1.0.3
- Iris 1.0.3
- hoverIntent r7
- MediaElement.js 2.11.1 (New)
非推奨となった関数
- wp_convert_bytes_to_hr() の代わりに size_format() を用いることが推奨となりました。
- get_user_id_from_string() の代わりに get_user_by() の `$field` から 'email' or 'login' 用いることが推奨となりました。
最新英語版: WordPress Codex » Version 3.6 (最新版との差分)
WordPress バージョンの一覧もあわせてご覧ください。