“Version 4.0”的版本间的差异

来自WordPress中文文档
跳转至: 导航搜索
(以内容“{{Languages| {{en|Version 4.0}} }} In xxxxx, WordPress Version 4.0, named for xxxxx, will be released to the public. For more information on this enhancement and b...”创建新页面)
 
What's New: Fix WP_Customize_Control function links
第1行: 第1行:
 
{{Languages|
 
{{Languages|
 
{{en|Version 4.0}}
 
{{en|Version 4.0}}
 +
{{ja|Version 4.0}}
 +
{{pt-br|Versão 4.0}}
 +
{{ru|Версия 4.0}}
 
}}
 
}}
  
In xxxxx, WordPress [[Version 4.0]], named for xxxxx, will be released to the public. For more information on this enhancement and bug-fix release, read the [http://wordpress.org/development WordPress Blog], and see the [[Changelog/4.0|Changelog for 4.0]].
+
On September 4, 2014, WordPress [[Version 4.0]] "Benny," named for jazz musician Benny Goodman, was released to the public. For more information on this enhancement and bug-fix release, read the [http://wordpress.org/news/ WordPress Blog], and see the [[Changelog/4.0|Changelog for 4.0]].
  
For [[Version 4.0]], the database version ('''db_version''' in '''wp_options''') changed to xxxxx, and the [https://core.trac.wordpress.org Trac] revision was xxxxx.
+
For [[Version 4.0]], the database version ('''db_version''' in '''wp_options''') changed to 29630, and the [https://core.trac.wordpress.org Trac] revision was 29710.
  
 
* [http://trac.wordpress.org/query?status=closed&milestone=4.0 View Closed Tickets]
 
* [http://trac.wordpress.org/query?status=closed&milestone=4.0 View Closed Tickets]
第11行: 第14行:
 
==Highlights==
 
==Highlights==
  
==User Features==
+
* '''Manage your media and embedded content with style'''
 +
** [[Media Library Screen|Explore your uploads]] in a beautiful, endless grid
 +
** A new details preview makes viewing and editing any amount of media in sequence a snap.
 +
 
 +
* '''The content-editing experience is better than ever'''
 +
** The visual editor now expands to fit your content
 +
** A fixed toolbar in the editor when you scroll
 +
** Embeddable content previews right in the visual editor
 +
 
 +
* '''Better workflow for finding and installing plugins'''
 +
** A new grid view adds some visual flair to [[Plugins Add New Screen|finding and installing plugins]], bringing relevant plugin info front and center
 +
 
 +
* '''For Developers'''
 +
** Customizer Panels API
 +
** Updated external libraries
 +
** Better flexibility for [[Class_Reference/WP_Query|WP_Query]] [[Class_Reference/WP_Query#Order_&_Orderby_Parameters|ORDER BY]]
 +
 
 +
==What's New==
 +
 
  
 
===General===
 
===General===
 
+
* Featured image previews now support .bmp files
===Dashboard===
+
* Featured Image meta box is now hidden for contributors lacking upload capabilities
 +
* New supported [[Embeds|oEmbed]] providers: CollegeHumor, Issuu, Mixcloud, YouTube playlists, TED talks
 +
* [[Installing WordPress|Install WordPress]] in your language
 +
* Streamlined Language management right [[Settings General Screen|from the dashboard]]
  
 
===Posts===
 
===Posts===
 +
* Display embed previews for audio/visual URLs in Visual editor content box.
 +
* Page scrolling now scrolls post content box.
 +
* Edit Post/Page menu bar sticks to top of content box when scrolling (Visual and Text editor).
 +
* Color picker was re-added to the Visual editor
  
 
===Media===
 
===Media===
 +
* Add Media Grid view option (default) for [[Media Library Screen|Media Library]]
 +
* Add "Bulk Select" button to Media Grid view to delete multiple items
 +
* Add [[Embeds|oEmbed support]] for TED talks, Mixcloud, CollegeHumor.com, Issuu
 +
* Expand oEmbed support to include YouTube playlist URLs and Polldaddy’s short URL format
 +
* Remove Viddler oEmbed support
 +
* Update SlideShare oEmbed regex
 +
* Improved media experience on small screen sizes (embedded videos now responsive)
 +
* Native video and audio shortcodes now support Flash playback looping
 +
 +
===Comments===
 +
* Comments in trash can now be marked as spam.
 +
 +
===Plugins===
 +
* Display plugins list as grid, with thumbnails, on [[Plugins Add New Screen|Add New screen]].
 +
* Add popup window with plugin details (displays info from plugin's directory page).
 +
* Add "Beta Testing" tab to Plugins screen for new features-as-plugins.
 +
 +
===Accessibility===
 +
* Improved keyboard accessibility in the Add Media panel
 +
* Improved screen-reader support for Customizer sections
 +
* Makes links in help tabs keyboard accessible
 +
* Improvements for screen-readers when managing widgets in the Customizer
 +
 +
===Install Process===
 +
* Add language select menu as first Installation screen (skipped for localized installs)
 +
 +
===Multisite===
 +
* mp4 file extension was added to allowed upload file types
 +
 +
==Under The Hood==
 +
 +
=== General ===
 +
* Performance and effectiveness improvements to <tt>wptexturize()</tt>
 +
* Ensure custom post types nested under top-level menu items get the proper classes
 +
* Added a <tt>src</tt> parameter to the embed shortcode
 +
* Fixes for handling nested shortcodes
 +
* Make default 'template' argument of [[Function_Reference/the_taxonomies|the_taxonomies()]] and [[Function_Reference/get_the_taxonomies|get_the_taxonomies()]] translatable
 +
* Remove a redundant condition for comment feeds from [[Class_Reference/WP_Query|WP_Query::get_posts()]]
 +
* The Customizer now properly honors theme support defaults for background images
 +
* Installed Themes search now shows a proper "no results" message
 +
* Improved, more consistent styling for HTML5 input elements
 +
* Post previews now redirect to the permalink if the post has been published
 +
* Email and URL input types have been implemented where appropriate in the admin
 +
* Most uses of <tt>extract()</tt> have been removed from the core code
 +
* 3gp mime type support was added
 +
* [[Function_Reference/wp_handle_upload|wp_handle_upload|sideload()]] logic was consolidated
 +
* Remove dead and unused code from dashboard.php following changes in [[Version 3.8|3.8]]
 +
* The <tt>operator</tt> argument now case-insensitive in tax queries
 +
* Now possible to disable drag and drop functionality in [[Function_Reference/wp_editor|wp_editor()]] instances
 +
* Trigger <tt>_doing_it_wrong()</tt> when a registered post type or taxonomy slug is too long (20 characters max)
 +
* Widgets management in the Customizer to leverage the new Panels API.
 +
 +
=== JavaScript ===
 +
* Heartbeat API "experimental" labels have now been removed
 +
* Improved inline documentation for Media Views
 +
* Forces an autosave on switch from Visual to Text editor
  
===Links===
+
=== Bug Fixes ===
 +
* Fix a notice with media attached to non-existent post type
 +
* Fix expanding and collapsing the admin menu on small screen sizes
 +
* Fix a bug where multiple Add Media buttons shared an ID attribute
 +
* Fix [[Function_Reference/get_the_ID|get_the_ID()]] not checking for a proper post object
 +
* Fix current track highlighting in audio playlists
 +
* Fixed bug with audio player not properly floating around images in the editor
 +
* Fix a bug where bulk actions would be performed upon clicking the Filter button in some circumstances
 +
* Fix [[Function_Reference/remove_all_filters|remove_all_filters()]] always returning true via [[Function_Reference/has_filter|has_filter()]] in some scenarios
 +
* Fix a notice in [[Function_Reference/wp_reschedule_event|wp_reschedule_event]]
 +
* Fix paragraph tags not being converted in PressThis for the Text editor
 +
* Fix [[Function_Reference/get_the_excerpt|get_the_excerpt()]] not always checking <tt>$post->post_excerpt</tt>
 +
* Introduce caching for oEmbed responses
 +
* Fix an issue where attachment display settings didn't work for galleries
 +
* Leverage iframe sandboxing for audio and video, allowing arbitrary scripts to be loaded
 +
* Ensure all plugins have an accurate oEmbed provider list by loading them "just in time"
 +
* Fixed several problems with formatting of curly quotes, square braces, non-breaking spaces, and related performance issues.
  
===Comments===
+
=== Multisite ===
 +
* Fix a bug where an incorrect schema was shown on the Edit Site screen
 +
 
 +
=== Classes ===
 +
 
 +
==== What's New ====
 +
* Introduce WP_Customize_Panel
 +
* Introduce WP_Session_Tokens
 +
* Introduce WP_User_Meta_Session_Tokens
 +
 
 +
* Introduce [[Class_Reference/WP_Query|WP_Query::parse_orderby()]]
 +
* Introduce [[Class_Reference/WP_Query|WP_Query::parse_order()]]
 +
 
 +
* Introduce [[Class_Reference/wpdb|wpdb::esc_like()]]
 +
 
 +
* Introduce WP_oEmbed::get_provider()
 +
* Introduce WP_oEmbed::_add_provider_early()
 +
* Introduce WP_oEmbed::_remove_provider_early()
 +
 
 +
* Introduce [[Class_Reference/WP_Customize_Control|WP_Customize_Control::active()]]
 +
* Introduce [[Class_Reference/WP_Customize_Control|WP_Customize_Control::active_callback()]]
 +
* Introduce [[Class_Reference/WP_Customize_Control|WP_Customize_Control::input_attrs()]]
 +
* Introduce [[Class_Reference/WP_Customize_Control|WP_Customize_Control::active_callback()]]
 +
 
 +
* Introduce WP_Widget_Area_Customize_Control::active_callback()
 +
 
 +
* Introduce [[Class_Reference/WP_Customize_Manager|WP_Customize_Manager::containers()]]
 +
* Introduce [[Class_Reference/WP_Customize_Manager|WP_Customize_Manager::panels()]]
 +
* Introduce [[Class_Reference/WP_Customize_Manager|WP_Customize_Manager::customize_preview_override_404_status()]]
 +
* Introduce [[Class_Reference/WP_Customize_Manager|WP_Customize_Manager::add_panel()]]
 +
* Introduce [[Class_Reference/WP_Customize_Manager|WP_Customize_Manager::get_panel()]]
 +
* Introduce [[Class_Reference/WP_Customize_Manager|WP_Customize_Manager::remove_panel()]]
 +
 
 +
* Introduce [[Class_Reference/WP_Customize_Widgets|WP_Customize_Widgets::is_widget_rendered()]]
 +
* Introduce [[Class_Reference/WP_Customize_Widgets|WP_Customize_Widgets::is_sidebar_rendered()]]
 +
 
 +
* Introduce [[Class_Reference/WP_Image_Editor|WP_Image_Editor::get_quality()]]
 +
* Introduce [[Class_Reference/WP_Dependencies|WP_Dependencies::recurse_deps()]]
 +
* Introduce WP_Plugin_Install_List_Table::get_installed_plugin_slugs()
 +
 
 +
* Introduce magic methods for:
 +
** Custom_Image_Header
 +
** Custom_Background** [[Class_Reference/Walker|Walker]]
 +
** WP_Ajax_Response
 +
** WP_Comment_Query
 +
** [[Class_Reference/WP_Error|WP_Error]]
 +
** WP_Filesystem_Base
 +
** [[Class_Reference/WP_List_Table|WP_List_Table]]
 +
** WP_MatchesMapRegex
 +
** [[Class_Reference/WP_Object_Cache|WP_Object_Cache]]
 +
** WP_oEmbed
 +
** [[Class_Reference/WP_Query|WP_Query]]
 +
** WP_Text_Diff_Renderer_Table
 +
** WP_Roles
 +
** [[Class_Reference/WP_User_Query|WP_User_Query]]
 +
 
 +
=== Functions ===
 +
==== What's New ====
 +
* [[Class_Reference/WP_Query|WP_Query]] - Better flexibility in multiple `orderby` fields
 +
* [[Function_Reference/wp_list_pluck|wp_list_pluck()]] - <tt>$index_key</tt> parameter added.
  
===Appearance===
+
* Introduce <tt>attachment_url_to_postid()</tt>
 +
* Introduce <tt>get_comments_number_text()</tt>
 +
* Introduce <tt>get_editor_stylesheets()</tt>
 +
* Introduce <tt>is_customize_preview()</tt>
 +
* Introduce <tt>translations_api()</tt>
 +
* Introduce <tt>upgrade_400()</tt>
 +
* Introduce <tt>wp_ajax_set_attachment_thumbnail()</tt>
 +
* Introduce <tt>wp_ajax_parse_embed()</tt>
 +
* Introduce <tt>wp_can_install_language_pack()</tt>
 +
* Introduce <tt>wp_destroy_all_sessions()</tt>
 +
* Introduce <tt>wp_destroy_current_session()</tt>
 +
* Introduce <tt>wp_destroy_other_sessions()</tt>
 +
* Introduce <tt>wp_download_language_pack()</tt>
 +
* Introduce <tt>wp_dropdown_languages()</tt>
 +
* Introduce <tt>wp_embed_handler_youtube()</tt>
 +
* Introduce <tt>wp_get_all_sessions()</tt>
 +
* Introduce <tt>wp_get_available_translations()</tt>
 +
* Introduce <tt>wp_get_session_token()</tt>
 +
* Introduce <tt>wp_install_language_form()</tt>
 +
* Introduce <tt>wpview_media_sandbox_styles()</tt>
 +
* Introduce <tt>wp_spaces_regexp()</tt>
 +
* Introduce <tt>wp_validate_boolean()</tt>
  
===Plugins===
+
==== Deprecated ====
 +
* <tt>get_all_category_ids()</tt> - use <tt>get_terms()</tt> instead.
 +
* <tt>like_escape()</tt> - use [[Class Reference/wpdb/esc_like|$wpdb->esc_like()]] instead.
 +
* <tt>url_is_accessable_via_ssl()</tt>
  
===Tools===
+
=== Actions & Filters ===
 +
* The ISO date standard YYYY-MM-DD format was added to the <tt>date_formats</tt> filter.
 +
* The <tt>$post</tt> parameter was added to <tt>preview_post_link</tt>.
 +
* <tt>wp_handle_upload_prefilter</tt> was renamed to <tt>{$action}_prefilter</tt>.
  
===Users===
+
==== New Actions ====
 +
* Introduce <tt>customize_render_panel</tt>
 +
* Introduce <tt>customize_render_panel_{$this->id}</tt>
 +
* Introduce <tt>delete_user_form</tt>
 +
* Introduce <tt>pre_get_users</tt>
 +
* Introduce <tt>rss_tag_pre</tt>
  
===Settings===
+
==== New Filters ====
 +
* Introduce <tt>async_update_translation</tt>
 +
* Introduce <tt>attach_session_information</tt>
 +
* Introduce <tt>customize_control_active</tt>
 +
* Introduce <tt>human_time_diff</tt>
 +
* Introduce <tt>oembed_remote_get_args</tt>
 +
* Introduce <tt>oembed_ttl</tt>
 +
* Introduce <tt>run_wptexturize</tt>
 +
* Introduce <tt>session_token_manager</tt>
 +
* Introduce <tt>term_search_min_chars</tt>
 +
* Introduce <tt>translations_api</tt>
 +
* Introduce <tt>translations_api_result</tt>
 +
* Introduce <tt>wp_editor_expand</tt>
 +
* Introduce <tt>wp_editor_settings</tt>
 +
* Introduce <tt>wp_embed_handler_youtube</tt>
 +
* Introduce <tt>wp_list_comments_args</tt>
 +
* Introduce <tt>wp_spaces_regexp</tt>
 +
* Introduce <tt>wp_title_parts</tt>
 +
* Introduce <tt>wxr_export_skip_commentmeta</tt>
  
===Install Process===
+
=== Constants ===
  
===Multisite===
+
==== Deprecated ====
 +
* <tt>FORCE_SSL_LOGIN</tt> - use <tt>FORCE_SSL_ADMIN</tt> instead.
 +
* <tt>WPLANG</tt> (see https://core.trac.wordpress.org/changeset/29630)
  
==Development, Themes, Plugins==
+
=== External Libraries ===
 +
* Update to TinyMCE 4.1.3
 +
* Update to jQuery 1.11.1
 +
* Update to MediaElement 2.15
  
 
{{Versions}}
 
{{Versions}}
  
 
[[Category:Versions]]
 
[[Category:Versions]]

2014年12月8日 (一) 19:44的版本

wordpress.org.cn

On September 4, 2014, WordPress Version 4.0 "Benny," named for jazz musician Benny Goodman, was released to the public. For more information on this enhancement and bug-fix release, read the WordPress Blog, and see the Changelog for 4.0.

For Version 4.0, the database version (db_version in wp_options) changed to 29630, and the Trac revision was 29710.

Highlights

  • Manage your media and embedded content with style
    • Explore your uploads in a beautiful, endless grid
    • A new details preview makes viewing and editing any amount of media in sequence a snap.
  • The content-editing experience is better than ever
    • The visual editor now expands to fit your content
    • A fixed toolbar in the editor when you scroll
    • Embeddable content previews right in the visual editor
  • Better workflow for finding and installing plugins
  • For Developers
    • Customizer Panels API
    • Updated external libraries
    • Better flexibility for WP_Query ORDER BY

What's New

General

  • Featured image previews now support .bmp files
  • Featured Image meta box is now hidden for contributors lacking upload capabilities
  • New supported oEmbed providers: CollegeHumor, Issuu, Mixcloud, YouTube playlists, TED talks
  • Install WordPress in your language
  • Streamlined Language management right from the dashboard

Posts

  • Display embed previews for audio/visual URLs in Visual editor content box.
  • Page scrolling now scrolls post content box.
  • Edit Post/Page menu bar sticks to top of content box when scrolling (Visual and Text editor).
  • Color picker was re-added to the Visual editor

Media

  • Add Media Grid view option (default) for Media Library
  • Add "Bulk Select" button to Media Grid view to delete multiple items
  • Add oEmbed support for TED talks, Mixcloud, CollegeHumor.com, Issuu
  • Expand oEmbed support to include YouTube playlist URLs and Polldaddy’s short URL format
  • Remove Viddler oEmbed support
  • Update SlideShare oEmbed regex
  • Improved media experience on small screen sizes (embedded videos now responsive)
  • Native video and audio shortcodes now support Flash playback looping

Comments

  • Comments in trash can now be marked as spam.

Plugins

  • Display plugins list as grid, with thumbnails, on Add New screen.
  • Add popup window with plugin details (displays info from plugin's directory page).
  • Add "Beta Testing" tab to Plugins screen for new features-as-plugins.

Accessibility

  • Improved keyboard accessibility in the Add Media panel
  • Improved screen-reader support for Customizer sections
  • Makes links in help tabs keyboard accessible
  • Improvements for screen-readers when managing widgets in the Customizer

Install Process

  • Add language select menu as first Installation screen (skipped for localized installs)

Multisite

  • mp4 file extension was added to allowed upload file types

Under The Hood

General

  • Performance and effectiveness improvements to wptexturize()
  • Ensure custom post types nested under top-level menu items get the proper classes
  • Added a src parameter to the embed shortcode
  • Fixes for handling nested shortcodes
  • Make default 'template' argument of the_taxonomies() and get_the_taxonomies() translatable
  • Remove a redundant condition for comment feeds from WP_Query::get_posts()
  • The Customizer now properly honors theme support defaults for background images
  • Installed Themes search now shows a proper "no results" message
  • Improved, more consistent styling for HTML5 input elements
  • Post previews now redirect to the permalink if the post has been published
  • Email and URL input types have been implemented where appropriate in the admin
  • Most uses of extract() have been removed from the core code
  • 3gp mime type support was added
  • wp_handle_upload|sideload() logic was consolidated
  • Remove dead and unused code from dashboard.php following changes in 3.8
  • The operator argument now case-insensitive in tax queries
  • Now possible to disable drag and drop functionality in wp_editor() instances
  • Trigger _doing_it_wrong() when a registered post type or taxonomy slug is too long (20 characters max)
  • Widgets management in the Customizer to leverage the new Panels API.

JavaScript

  • Heartbeat API "experimental" labels have now been removed
  • Improved inline documentation for Media Views
  • Forces an autosave on switch from Visual to Text editor

Bug Fixes

  • Fix a notice with media attached to non-existent post type
  • Fix expanding and collapsing the admin menu on small screen sizes
  • Fix a bug where multiple Add Media buttons shared an ID attribute
  • Fix get_the_ID() not checking for a proper post object
  • Fix current track highlighting in audio playlists
  • Fixed bug with audio player not properly floating around images in the editor
  • Fix a bug where bulk actions would be performed upon clicking the Filter button in some circumstances
  • Fix remove_all_filters() always returning true via has_filter() in some scenarios
  • Fix a notice in wp_reschedule_event
  • Fix paragraph tags not being converted in PressThis for the Text editor
  • Fix get_the_excerpt() not always checking $post->post_excerpt
  • Introduce caching for oEmbed responses
  • Fix an issue where attachment display settings didn't work for galleries
  • Leverage iframe sandboxing for audio and video, allowing arbitrary scripts to be loaded
  • Ensure all plugins have an accurate oEmbed provider list by loading them "just in time"
  • Fixed several problems with formatting of curly quotes, square braces, non-breaking spaces, and related performance issues.

Multisite

  • Fix a bug where an incorrect schema was shown on the Edit Site screen

Classes

What's New

  • Introduce WP_Customize_Panel
  • Introduce WP_Session_Tokens
  • Introduce WP_User_Meta_Session_Tokens
  • Introduce WP_oEmbed::get_provider()
  • Introduce WP_oEmbed::_add_provider_early()
  • Introduce WP_oEmbed::_remove_provider_early()
  • Introduce WP_Widget_Area_Customize_Control::active_callback()

Functions

What's New

  • Introduce attachment_url_to_postid()
  • Introduce get_comments_number_text()
  • Introduce get_editor_stylesheets()
  • Introduce is_customize_preview()
  • Introduce translations_api()
  • Introduce upgrade_400()
  • Introduce wp_ajax_set_attachment_thumbnail()
  • Introduce wp_ajax_parse_embed()
  • Introduce wp_can_install_language_pack()
  • Introduce wp_destroy_all_sessions()
  • Introduce wp_destroy_current_session()
  • Introduce wp_destroy_other_sessions()
  • Introduce wp_download_language_pack()
  • Introduce wp_dropdown_languages()
  • Introduce wp_embed_handler_youtube()
  • Introduce wp_get_all_sessions()
  • Introduce wp_get_available_translations()
  • Introduce wp_get_session_token()
  • Introduce wp_install_language_form()
  • Introduce wpview_media_sandbox_styles()
  • Introduce wp_spaces_regexp()
  • Introduce wp_validate_boolean()

Deprecated

  • get_all_category_ids() - use get_terms() instead.
  • like_escape() - use $wpdb->esc_like() instead.
  • url_is_accessable_via_ssl()

Actions & Filters

  • The ISO date standard YYYY-MM-DD format was added to the date_formats filter.
  • The $post parameter was added to preview_post_link.
  • wp_handle_upload_prefilter was renamed to {$action}_prefilter.

New Actions

  • Introduce customize_render_panel
  • Introduce customize_render_panel_{$this->id}
  • Introduce delete_user_form
  • Introduce pre_get_users
  • Introduce rss_tag_pre

New Filters

  • Introduce async_update_translation
  • Introduce attach_session_information
  • Introduce customize_control_active
  • Introduce human_time_diff
  • Introduce oembed_remote_get_args
  • Introduce oembed_ttl
  • Introduce run_wptexturize
  • Introduce session_token_manager
  • Introduce term_search_min_chars
  • Introduce translations_api
  • Introduce translations_api_result
  • Introduce wp_editor_expand
  • Introduce wp_editor_settings
  • Introduce wp_embed_handler_youtube
  • Introduce wp_list_comments_args
  • Introduce wp_spaces_regexp
  • Introduce wp_title_parts
  • Introduce wxr_export_skip_commentmeta

Constants

Deprecated

External Libraries

  • Update to TinyMCE 4.1.3
  • Update to jQuery 1.11.1
  • Update to MediaElement 2.15

模板:Versions