Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

zh-cn:Version 3.6

2013年8月1日,WordPress Version 3.6, (代号:Oscar Peterson), 发布了。更多关于此版本的改进功能和缺陷修复情况,请阅读:WordPress博客发布公告3.6版的更新记录

3.6版当中,数据库版本(db_version in wp_options)修改为24448,Trac版本为r24973。

隆重介绍

  • 为开发者设计的功能改进
    • 外部库已更新详情
    • 开发者可以利用新的音频/视频API构建更强大的媒体META数据,如ID3标签。
    • 版本修订功能过滤器,让开发者可以使用 ad hoc设置修订版本。详情
    • 语义标签可使用改善的HTML5标签,用在诸如搜索表单,评论表单,评论列表等地方。
    • 在搜索内容时利用短代码has_shortcode()函数并可使用新过滤器调整段代码属性。

新增功能

常规功能

  • 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

媒体

评论

  • 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
  • Prevent plugins with certain filenames from breaking links in the admin menu

用户

  • 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

冰山之下

常规

  • 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

缺陷修复

  • 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

功能函数

过滤器

脚本和外部库

  • 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)

废弃

See also: other WordPress Versions.