“Version 3.6”的版本间的差异

来自WordPress中文文档
跳转至: 导航搜索
Scripts, External Libraries
(1个版本)
(未显示2个用户的2个中间版本)
第6行: 第6行:
 
}}
 
}}
  
2013年8月1日,WordPress [[Version 3.6]], (代号:Oscar Peterson), 发布了。更多关于此版本的改进功能和缺陷修复情况,请阅读:[http://wordpress.org/development WordPress博客][http://wordpress.org/news/2013/08/oscar/ 发布公告][[Changelog/3.6|3.6版的更新记录]]
+
On August 1, 2013, WordPress [[Version 3.6]], named for Oscar Peterson, was released to the public. For more information on this enhancement and bug-fix release, read the [http://wordpress.org/development WordPress Blog], the [http://wordpress.org/news/2013/08/oscar/ Release Post], and see the [[Changelog/3.6|Changelog for 3.6]].
  
[[3.6版]]当中,数据库版本('''db_version''' in '''wp_options''')修改为24448,[https://core.trac.wordpress.org Trac]版本为r24973。
+
For [[Version 3.6]], the database version ('''db_version''' in '''wp_options''') changed to 24448, and the [https://core.trac.wordpress.org Trac] revision was r24973.
  
 
* [http://trac.wordpress.org/query?status=closed&milestone=3.6 View Closed Tickets]
 
* [http://trac.wordpress.org/query?status=closed&milestone=3.6 View Closed Tickets]
  
==隆重介绍==
+
==Highlights==
  
* '''新默认主题 - [http://wordpress.org/extend/themes/twentythirteen Twenty Thirteen]'''
+
* '''New Default Theme - [http://wordpress.org/extend/themes/twentythirteen Twenty Thirteen]'''
** 聚焦于博客写作
+
** Focus on blogging
** 单栏布局,底部[[Sidebars|Sidebar]] / [[Widgets API|Widgets]]
+
** Single column layout with [[Sidebars|Sidebar]] / [[Widgets API|Widgets]] in the footer
** 支持最新的[[Theme Features]],特别是[[Post Formats]][[Semantic Markup]]
+
** Latest [[Theme Features]] support, particularly [[Post Formats]] and [[Semantic Markup]]
** 文字字体文件代替图标文件([http://genericons.com/ Genericons])
+
** Font-based icons ([http://genericons.com/ Genericons])
  
* '''管理功能改进'''
+
* '''Admin Enhancements'''
** [[导航菜单]][[Appearance Menus Screen|屏幕]]的用户界面增强
+
** UI improvements on [[Navigation Menus]] [[Appearance Menus Screen|Screen]]
** [[版本修订]]功能更为动态和可衡量
+
** [[Revisions]] revised to be more dynamic and scalable
** [[自动保存]][[文章锁定]]功能
+
** [[Autosave]] and [[Post Locking]]
** [[Edit Media|媒体编辑页面]]预览音频和视频
+
** Preview Audio and Video on [[Edit Media|Media Edit Screen]]
** 嵌入式登录可延续已过期的线程
+
** In-line login following expired sessions
  
* '''为开发者设计的功能改进'''
+
* '''For Developers'''
** 外部库已更新[[#Scripts.2C_External_Libraries|详情]]
+
** External Libraries have been updated. [[#Scripts.2C_External_Libraries|More Info]]
** 开发者可以利用新的音频/视频API构建更强大的媒体META数据,如ID3标签。
+
** New audio/video APIs give developers access to powerful media metadata, like ID3 tags.
** 版本修订功能过滤器,让开发者可以使用 ad hoc设置修订版本。[http://core.trac.wordpress.org/ticket/22289 详情]
+
** 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]
** [[语义标签]]可使用改善的HTML5标签,用在诸如搜索表单,评论表单,评论列表等地方。
+
** [[Semantic Markup]] allows themes to choose improved HTML5 markup for search forms, comment forms, and comment lists.
** 在搜索内容时利用短代码[[Function_Reference/has_shortcode|has_shortcode()]]函数并可使用新过滤器调整段代码属性。
+
** Search content for shortcodes with [[Function_Reference/has_shortcode|has_shortcode()]] and adjust shortcode attributes with a new filter.
  
==新增功能==
+
==What's New==
  
===常规功能===
+
===General===
 
* 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 …
第49行: 第49行:
 
* Display username (user_login) rather than user_nicename in Toolbar below username
 
* Display username (user_login) rather than user_nicename in Toolbar below username
  
===发文===
+
===Posts===
 
* The [[Revision Management]] UI saw significant improvement
 
* The [[Revision Management]] UI saw significant improvement
 
* [[Shortcode]] attributes can now be filtered via <tt>shortcode_atts_$shortcode</tt> hook
 
* [[Shortcode]] attributes can now be filtered via <tt>shortcode_atts_$shortcode</tt> hook
第57行: 第57行:
 
* Audio/Video support [http://make.wordpress.org/core/2013/04/08/audio-video-support-in-core/ More Info]
 
* Audio/Video support [http://make.wordpress.org/core/2013/04/08/audio-video-support-in-core/ More Info]
  
===媒体===
+
===Media===
 
* Add [[oEmbed]] support for Rdio and Spotify
 
* Add [[oEmbed]] support for Rdio and Spotify
 
* .webm (video/webm) was added to the MIME types list
 
* .webm (video/webm) was added to the MIME types list
第67行: 第67行:
 
* Added [[Function_Reference/wp_audio_shortcode|wp_audio_shortcode()]] and [[Function_Reference/wp_video_shortcode|wp_video_shortcode()]]
 
* Added [[Function_Reference/wp_audio_shortcode|wp_audio_shortcode()]] and [[Function_Reference/wp_video_shortcode|wp_video_shortcode()]]
  
===评论===
+
===Comments===
 
* 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
  
===外观===
+
===Appearance===
 
* The [[Navigation Menus]] UI got a significant refresh
 
* The [[Navigation Menus]] UI got a significant refresh
 
* The Customizer can now be accessed via the Appearance menu
 
* The Customizer can now be accessed via the Appearance menu
 
* Screen options can now be added to the [[Appearance Screen|Appearance]] > [[Appearance Widgets Screen|Widgets]] Screen
 
* Screen options can now be added to the [[Appearance Screen|Appearance]] > [[Appearance Widgets Screen|Widgets]] Screen
  
===插件===
+
===Plugins===
 
* Prevent plugins from overriding jQuery in the admin
 
* Prevent plugins from overriding jQuery in the admin
 
* Prevent plugins with certain filenames from breaking links in the admin menu
 
* Prevent plugins with certain filenames from breaking links in the admin menu
  
===用户===
+
===Users===
 
* 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/Action_Reference/set_user_role|set_user_role]] action
 
* 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
  
===设置===
+
===Settings===
 
* Allow any post format to be set as default in [[Settings General Screen|Settings]] > [[Settings Writing Screen|Writing]] Screen
 
* Allow any post format to be set as default in [[Settings General Screen|Settings]] > [[Settings Writing Screen|Writing]] Screen
  
=== 易用性===
+
=== Accessibility ===
 
* Better keyboard/screen reader accessibility in the Nav Menus UI
 
* Better keyboard/screen reader accessibility in the Nav Menus UI
 
* Background image's "select a file" link works with keyboard navigation
 
* Background image's "select a file" link works with keyboard navigation
  
==冰山之下==
+
==Under The Hood==
  
=== 常规 ===
+
=== General ===
 
* Use official MIME types for Windows Media file extensions
 
* Use official MIME types for Windows Media file extensions
 
* Redirect after save on options-permalink.php to ensure permalinks are fully flushed
 
* Redirect after save on options-permalink.php to ensure permalinks are fully flushed
 
* Only show database errors if both WP_DEBUG and WP_DEBUG_DISPLAY are enabled
 
* Only show database errors if both WP_DEBUG and WP_DEBUG_DISPLAY are enabled
  
=== 缺陷修复 ===
+
=== Bug Fixes ===
 
* Strip slashes from passwords sent to new users by email
 
* 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]]
 
* 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]]
第120行: 第120行:
 
* Avoid PHP notices when deleting or restoring an item that no longer exists
 
* Avoid PHP notices when deleting or restoring an item that no longer exists
  
===多站点===
+
=== Multisite===
 
* Pass blog_id to the wpmu_drop_tables filter
 
* Pass blog_id to the wpmu_drop_tables filter
  
=== ===
+
=== Classes ===
 
* XML-RPC: Return an error for getRecentPosts (mw and blogger) if the user does not have edit_posts
 
* 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
 
* XML-RPC: Standardize home/site url labels with core labels
第129行: 第129行:
 
* Make sure WP_Http funnels all redirect requests through [[HTTP_API|WP_Http::request()]] to ensure the proper transport is used
 
* Make sure WP_Http funnels all redirect requests through [[HTTP_API|WP_Http::request()]] to ensure the proper transport is used
  
=== 功能函数===
+
=== Functions===
 
* An arg parameter was added for [[Function Reference/wp nonce url|wp_nonce_url()]]
 
* 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
 
* Allow paths with two consecutive dots to be passed to [[Function_Reference/home_url|home_url()]] and all related *_url() functions
第175行: 第175行:
 
* Introduce [[Function_Reference/wp_add_object_terms|wp_add_object_terms()]]
 
* Introduce [[Function_Reference/wp_add_object_terms|wp_add_object_terms()]]
  
===过滤器===
+
===Filters===
 
* Add [[Plugin_API/Filter_Reference/self_link|self_link]] in [[Function_Reference/self_link|self_link()]]
 
* 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()]]
 
* Add [[Plugin_API/Filter_Reference/get_comments_link|get_comments_link]] in [[Function_Reference/get_comments_link|get_comments_link()]]
第188行: 第188行:
 
* Add [[Plugin_API/Filter_Reference/widget_meta_poweredby|widget_meta_poweredby]] in [[Class_Reference/WP_Widget_Meta|WP_Widget_Meta::widget()]]
 
* Add [[Plugin_API/Filter_Reference/widget_meta_poweredby|widget_meta_poweredby]] in [[Class_Reference/WP_Widget_Meta|WP_Widget_Meta::widget()]]
  
===脚本和外部库===
+
===Scripts, External Libraries===
 
* Update to jQuery Color 2.2.1
 
* Update to jQuery Color 2.2.1
 
* Update to Backbone 1.0.0
 
* Update to Backbone 1.0.0
第196行: 第196行:
 
* hoverIntent r7
 
* hoverIntent r7
 
* MediaElement.js 2.11.1 (New)
 
* MediaElement.js 2.11.1 (New)
 +
* getid3 1.9.7 (New)
  
===废弃===
+
===Deprecated===
  
 
* Deprecate [[Function_Reference/wp_convert_bytes_to_hr|wp_convert_bytes_to_hr()]] in favor of [[Function_Reference/size_format|size_format()]]
 
* Deprecate [[Function_Reference/wp_convert_bytes_to_hr|wp_convert_bytes_to_hr()]] in favor of [[Function_Reference/size_format|size_format()]]
 
* Deprecate [[Function_Reference/get_user_id_from_string|get_user_id_from_string()]] in favor of [[Function_Reference/get_user_by|get_user_by()]] where `$field` is 'email' or 'login'
 
* Deprecate [[Function_Reference/get_user_id_from_string|get_user_id_from_string()]] in favor of [[Function_Reference/get_user_by|get_user_by()]] where `$field` is 'email' or 'login'
 +
* Deprecate [[Class Reference/wpdb|wpdb]]::escape() in favor of [[Class_Reference/wpdb#Protect_Queries_Against_SQL_Injection_Attacks|wpdb::prepare()]] or [[Function_Reference/esc_sql|esc_sql()]]
  
 
{{Versions}}
 
{{Versions}}
  
 
[[Category:Versions]]
 
[[Category:Versions]]

2015年2月12日 (四) 08:30的版本

wordpress.org.cn

On August 1, 2013, WordPress Version 3.6, named for Oscar Peterson, was released to the public. For more information on this enhancement and bug-fix release, read the WordPress Blog, the Release Post, and see the Changelog for 3.6.

For Version 3.6, the database version (db_version in wp_options) changed to 24448, and the Trac revision was r24973.

Highlights

  • For Developers
    • 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 search forms, comment forms, and comment lists.
    • Search content for shortcodes with has_shortcode() and adjust shortcode attributes with a new filter.

What's New

General

  • 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

Posts

  • 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

Media

Comments

  • Improve wp_list_comments() markup
  • Add the ability to use HTML5 input types in the comment form

Appearance

  • 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

Plugins

  • Prevent plugins from overriding jQuery in the admin
  • Prevent plugins with certain filenames from breaking links in the admin menu

Users

  • 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

Settings

Accessibility

  • Better keyboard/screen reader accessibility in the Nav Menus UI
  • Background image's "select a file" link works with keyboard navigation

Under The Hood

General

  • Use official MIME types for Windows Media file extensions
  • Redirect after save on options-permalink.php to ensure permalinks are fully flushed
  • Only show database errors if both WP_DEBUG and WP_DEBUG_DISPLAY are enabled

Bug Fixes

  • 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

Multisite

  • Pass blog_id to the wpmu_drop_tables filter

Classes

  • 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

Functions

Filters

Scripts, External Libraries

  • 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)
  • getid3 1.9.7 (New)

Deprecated

模板:Versions