“Version 4.4”的版本间的差异

来自WordPress中文文档
跳转至: 导航搜索
(1个版本)
(1个版本)
 
(未显示另一用户的1个中间版本)
第1行: 第1行:
 
{{Languages|
 
{{Languages|
 
{{en|Version 4.4}}
 
{{en|Version 4.4}}
 +
{{ja|Version 4.4}}
 
}}
 
}}
  
On December 2015, WordPress [[Version 4.4]], named for jazz musician xxxxx, will be 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.4|Changelog for 4.4]].
+
On December 8, 2015, WordPress [[Version 4.4]], named for jazz musician Clifford Brown, was released to the public. For more information on this enhancement and bug-fix release, read the [https://wordpress.org/news/2015/12/clifford/ WordPress Blog], and see the [[Changelog/4.4|Changelog for 4.4]].
  
For [[Version 4.4]], 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.4]], the database version ('''db_version''' in '''wp_options''') changed to 35700, and the [https://core.trac.wordpress.org Trac] revision was 35842.
  
* [http://trac.wordpress.org/query?status=closed&milestone=4.4 View Closed Tickets]
+
* [https://trac.wordpress.org/query?status=closed&milestone=4.4 View Closed Tickets]
  
 
==Highlights==
 
==Highlights==
 +
[[File:twenty-sixteen-white-desktop-1x.png|550px]]
  
 +
* '''New Default Theme - [https://wordpress.org/themes/twentysixteen/ Twenty Sixteen]'''
 +
** Modern take on the classic blog design
 +
** Flexible header and fun color schemes will make your content shine
 +
** Mobile-first and responsive
 +
 +
===The Finer Points===
 +
[[File:responsive-devices-desktop-1x.png|center|550px]]
 +
* '''Responsive images:'''
 +
WordPress now takes a smarter approach to displaying appropriate image sizes on any device, ensuring a perfect fit every time. You don’t need to do anything to your theme, it just works.
 +
[[File:wp_embed_preview.png|center]]
 +
* '''Embed your WordPress content:'''
 +
Now you can embed your posts on other sites, even other WordPress sites. Simply drop a post URL into the editor and see an instant embed preview, complete with the title, excerpt, and featured image if you’ve set one. We’ll even include your site icon and links for comments and sharing.
 +
[[File:reverbnation_embed.png|center]]
 +
* '''Even more [[Embeds|embed]] providers:'''
 +
In addition to post embeds, WordPress 4.4 also adds support for five new oEmbed providers: Cloudup, Reddit Comments, ReverbNation, Speaker Deck, and VideoPress.
 +
 +
===For Developers===
 +
* '''REST API infrastructure:''' Infrastructure for the REST API has been integrated into core, the first part of a multi-stage rollout. Inclusion of core endpoints is targeted for an upcoming release. To get a sneak peek of the core endpoints, and for more information on extending the REST API, check out the official [https://wordpress.org/plugins/rest-api/ WordPress REST API] plugin.
 +
* '''Term meta:''' Terms now support metadata, just like posts. See <tt>[https://developer.wordpress.org/reference/functions/add_term_meta/ add_term_meta()]</tt>, <tt>[https://developer.wordpress.org/reference/functions/get_term_meta/ get_term_meta()]</tt>, and <tt>[https://developer.wordpress.org/reference/functions/update_term_meta/ update_term_meta()]</tt> for more information.
 +
* '''Comment query improvements:''' Comment queries now have cache handling to improve performance. New arguments in <tt>[https://developer.wordpress.org/reference/classes/wp_comment_query WP_Comment_Query]</tt> make crafting robust comment queries simpler.
 +
* '''Term, comment, and network objects:''' New <tt>[https://developer.wordpress.org/reference/classes/wp_term/ WP_Term]</tt>, <tt>[https://developer.wordpress.org/reference/classes/wp_comment/ WP_Comment]</tt>, and <tt>[https://developer.wordpress.org/reference/classes/wp_network/ WP_Network]</tt> objects make interacting with terms, comments, and networks more predictable and intuitive in code.
  
 
==What's New==
 
==What's New==
 
  
 
===General===
 
===General===
 
+
* [https://developer.wordpress.org/reference Developer reference] - Improvements to inline code documentation.
 +
* [https://core.trac.wordpress.org/query?component=I18N&resolution=fixed&milestone=4.4&col=id&col=summary&col=owner&col=reporter&order=summary i18n support] - Improvements to translation strings all over the core.
 +
* Admin page headings were adjusted from <tt>H3</tt> to <tt>H2</tt> tags to reinforce page hierarchy
 +
* Improvements to how list tables are displayed on all size screens
  
 
===Posts===
 
===Posts===
 
+
* The post/page permalink UI was simplified, linking the permalink and removing the "View" button
  
 
===Media===
 
===Media===
第25行: 第50行:
  
 
===Comments===
 
===Comments===
 
+
* The "View Comment" link was relocated from the Status meta box in the comment-editing screen
 +
* Many comment functions can now accept a full object instead of 'comment_ID' to reduce cache/db lookups
 +
* Orphaned comments now fall back to the 'edit_posts' capability
  
 
===Appearance===
 
===Appearance===
 
+
* Site icons will now fall back to the 'full' size URL when the 'thumbnail' size doesn't exist
  
 
===Users===
 
===Users===
第37行: 第64行:
  
 
===Multisite===
 
===Multisite===
 
+
* The language chooser was added to the new site form on wp-signup.php
 +
* Sites may no longer be created with the following reserved slugs: wp-admin, wp-content, wp-includes, or wp-json
  
 
===Accessibility===
 
===Accessibility===
第45行: 第73行:
  
 
=== General ===
 
=== General ===
 +
* Unclosed HTML elements in shortcode attributes were disallowed
 +
* HTML was removed from all translatable text strings
 +
* Rewrite rules are now flushed on theme switch
 +
* Most core classes were moved to their own files
  
 +
=== Embeds ===
 +
* Add oEmbed support for Cloudup.
 +
* Add oEmbed support for Reddit Comments.
 +
* Add oEmbed support for ReverbNation.
 +
* Add oEmbed support for Speaker Deck.
 +
* Add oEmbed support for VideoPress.
 +
* Remove oEmbed support for Blip.
  
 
=== JavaScript ===
 
=== JavaScript ===
 
+
* Customizer: Ensure persistence of unchanged <tt>active</tt> state for controls, sections, and panels
 +
* Customizer: Fixed logic for determining the container element when focusing on a panel, section, or control
 +
* Customizer: Fixed clearing of a color control's setting by using proper empty value
  
 
=== Bug Fixes ===
 
=== Bug Fixes ===
 
+
* Fail gracefully when checking mapped capabilities against unregistered post types
 +
* Visibility was restored for the Tags auto-suggest tooltip in Quick Edit
 +
* The <tt>$public_only</tt> parameter was added to [https://developer.wordpress.org/reference/functions/count_user_posts count_user_posts()]
 +
* Cron: Events are now rejected when the provided <tt>$timestamp</tt> value is not a valid timestamp
 +
* Users with no role are now redirected to the home page on login instead of their profile-editing screen
  
 
=== Multisite ===
 
=== Multisite ===
 
+
* A network can now be retrieved by its ID through <tt>[https://developer.wordpress.org/reference/classes/wp_network/ WP_Network::get_instance()]</tt>
 +
* A network can now be created or completed by passing arguments to <tt>[https://developer.wordpress.org/reference/classes/wp_network/ WP_Network]</tt>
 +
* Network-level capabilities were clarified and some long-time bugs were fixed
  
 
=== Classes ===
 
=== Classes ===
  
 
==== What's New ====
 
==== What's New ====
 +
* [https://developer.wordpress.org/reference/classes/wp_comment WP_Comment]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_comment_query/ WP_Comment_Query->$found_comments]
 +
* [https://developer.wordpress.org/reference/classes/wp_comment_query/ WP_Comment_Query->$max_num_pages]
 +
* [https://developer.wordpress.org/reference/classes/wp_comment_query/ WP_Comment_Query->$meta_query_clauses]
 +
* [https://developer.wordpress.org/reference/classes/wp_comment_query/ WP_Comment_Query->$sql_clauses]
 +
* [https://developer.wordpress.org/reference/classes/wp_comment_query/fill_descendants/ WP_Comment_Query::fill_descendants()]
 +
* [https://developer.wordpress.org/reference/classes/wp_comment_query/get_comment_ids/ WP_Comment_Query::get_comment_ids()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/ WP_Customize_Manager->$autofocus]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/ WP_Customize_Manager->$preview_url]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/ WP_Customize_Manager->$return_url]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_pane_settings/ WP_Customize_Manager::customize_pane_settings()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/get_autofocus WP_Customize_Manager::get_autofocus()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/get_document_title_template WP_Customize_Manager::get_document_title_template()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/get_preview_url/ WP_Customize_Manager::get_preview_url()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/get_return_url WP_Customize_Manager::get_return_url()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manageris_ios/ WP_Customize_Manager::is_ios()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_managerset_autofocus/ WP_Customize_Manager::set_autofocus()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/set_preview_url/ WP_Customize_Manager::set_preview_url()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_manager/set_return_url/ WP_Customize_Manager::set_return_url()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting/ WP_Customize_Setting->$is_multidimensional_aggregated]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting/ WP_Customize_Setting->$is_previewed]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting/ WP_Customize_Setting::$aggregated_multidimensionals]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting/_multidimensional_preview_filter WP_Customize_Setting::_multidimensional_preview_filter()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting/aggregate_multidimensional/ WP_Customize_Setting::aggregate_multidimensional()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting get_root_value/ WP_Customize_Setting::get_root_value()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting id_data/ WP_Customize_Setting::id_data()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_setting set_root_value/ WP_Customize_Setting::set_root_value()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_widget_control_parts/ WP_Customize_Widgets::get_widget_control_parts()]
 +
* [https://developer.wordpress.org/reference/classes/wp_customize_widgets/is_panel_active/ WP_Customize_Widgets::is_panel_active()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_filesystem_ssh2/sftp_path/ WP_Filesystem_SSH2::sftp_path()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_http_response WP_HTTP_Response]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_list_table/get_primary_column/ WP_List_Table::get_primary_column()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_locale WP_Locale->$start_of_week]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_ms_sites_list_table/column_id/ WP_MS_Sites_List_Table::column_id()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_ms_users_list_table/column_id/ WP_MS_Users_List_Table::column_id()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_media_list_table WP_Media_List_Table->$comment_pending_count]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_network WP_Network]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_posts_list_table/get_edit_link/ WP_Posts_List_Table::get_edit_link()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_query WP_Query->$is_embed]
 +
* [https://developer.wordpress.org/reference/classes/wp_query WP_Query->$updated_comment_meta_cache]
 +
* [https://developer.wordpress.org/reference/classes/wp_query WP_Query->$updated_term_meta_cache]
 +
* [https://developer.wordpress.org/reference/classes/wp_queryis_embed/ WP_Query::is_embed()]
 +
* [https://developer.wordpress.org/reference/classes/wp_query/lazyload_comment_meta/ WP_Query::lazyload_comment_meta()]
 +
* [https://developer.wordpress.org/reference/classes/wp_query/lazyload_term_meta/ WP_Query::lazyload_term_meta()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_rest_request WP_REST_Request]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_rest_response WP_REST_Response]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_rest_server WP_REST_Server]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_screen WP_Screen->$_screen_reader_content]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/get_screen_reader_content/ WP_Screen::get_screen_reader_content()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/get_screen_reader_text/ WP_Screen::get_screen_reader_text()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/remove_screen_reader_content/ WP_Screen::remove_screen_reader_content()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/render_list_table_columns_preferences/ WP_Screen::render_list_table_columns_preferences()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/render_meta_boxes_preferences/ WP_Screen::render_meta_boxes_preferences()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/render_screen_reader_content/ WP_Screen::render_screen_reader_content()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/render_view_mode/ WP_Screeb::render_view_mode()]
 +
* [https://developer.wordpress.org/reference/classes/wp_screen/set_screen_reader_content/ WP_Screen::set_screen_reader_content()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_term WP_Term]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_theme->$update WP_Theme]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_user::__unset() WP_User::__unset()]
 +
* [https://developer.wordpress.org/reference/classes/wp_user_query->$request WP_User_Query]
 +
* [https://developer.wordpress.org/reference/classes/wp_user_query/fill_query_vars/ WP_User_Query::fill_query_vars()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_users_list_table/get_role_list/ WP_Users_List_Table::get_role_list()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_widget_calendar WP_Widget_Calendar::$instance]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_widget_tag_cloud/_get_current_taxonomy/ WP_Widget_Tag_Cloud::_get_current_taxonomy()]
 +
 +
* [https://developer.wordpress.org/reference/classes/wp_oembed_controller WP_oEmbed_Controller]
  
 +
* [https://developer.wordpress.org/reference/classes/wpdb wpdb->$termmeta]
  
 
==== Deprecated ====
 
==== Deprecated ====
第68行: 第206行:
  
 
==== What's New ====
 
==== What's New ====
 
+
* [https://developer.wordpress.org/reference/functions/_prime_comment_caches _prime_comment_caches()]
 +
* [https://developer.wordpress.org/reference/functions/add_network_option add_network_option()]
 +
* [https://developer.wordpress.org/reference/functions/add_term_meta add_term_meta()]
 +
* [https://developer.wordpress.org/reference/functions/delete_network_option delete_network_option()]
 +
* [https://developer.wordpress.org/reference/functions/delete_term_meta delete_term_meta()]
 +
* [https://developer.wordpress.org/reference/functions/enqueue_embed_scripts enqueue_embed_scripts()]
 +
* [https://developer.wordpress.org/reference/functions/get_header_image_tag get_header_image_tag()]
 +
* [https://developer.wordpress.org/reference/functions/get_html_split_regex get_html_split_regex()]
 +
* [https://developer.wordpress.org/reference/functions/get_network_option get_network_option()]
 +
* [https://developer.wordpress.org/reference/functions/get_oembed_endpoint_url get_oembed_endpoint_url()]
 +
* [https://developer.wordpress.org/reference/functions/get_oembed_response_data get_oembed_response_data()]
 +
* [https://developer.wordpress.org/reference/functions/get_oembed_response_data_rich get_oembed_response_data_rich()]
 +
* [https://developer.wordpress.org/reference/functions/get_password_reset_key get_password_reset_key()]
 +
* [https://developer.wordpress.org/reference/functions/get_post_embed_html get_post_embed_html()]
 +
* [https://developer.wordpress.org/reference/functions/get_post_embed_url get_post_embed_url()]
 +
* [https://developer.wordpress.org/reference/functions/get_preview_post_link get_preview_post_link()]
 +
* [https://developer.wordpress.org/reference/functions/get_rest_url get_rest_url()]
 +
* [https://developer.wordpress.org/reference/functions/get_shortcode_atts_regex get_shortcode_atts_regex()]
 +
* [https://developer.wordpress.org/reference/functions/get_subdirectory_reserved_names get_subdirectory_reserved_names()]
 +
* [https://developer.wordpress.org/reference/functions/get_term_meta get_term_meta()]
 +
* [https://developer.wordpress.org/reference/functions/get_the_author_posts_link get_the_author_posts_link()]
 +
* [https://developer.wordpress.org/reference/functions/get_the_comments_navigation get_the_comments_navigation()]
 +
* [https://developer.wordpress.org/reference/functions/get_the_comments_pagination get_the_comments_pagination()]
 +
* [https://developer.wordpress.org/reference/functions/get_the_post_thumbnail_url get_the_post_thumbnail_url()]
 +
* [https://developer.wordpress.org/reference/functions/is_embed is_embed()]
 +
* [https://developer.wordpress.org/reference/functions/is_post_type_viewable is_post_type_viewable()]
 +
* [https://developer.wordpress.org/reference/functions/is_registered_sidebar is_registered_sidebar()]
 +
* [https://developer.wordpress.org/reference/functions/map_deep map_deep()]
 +
* [https://developer.wordpress.org/reference/functions/print_embed_comments_button print_embed_comments_button()]
 +
* [https://developer.wordpress.org/reference/functions/print_embed_scripts print_embed_scripts()]
 +
* [https://developer.wordpress.org/reference/functions/print_embed_sharing_button print_embed_sharing_button()]
 +
* [https://developer.wordpress.org/reference/functions/print_embed_sharing_dialog print_embed_sharing_dialog()]
 +
* [https://developer.wordpress.org/reference/functions/print_embed_styles print_embed_styles()]
 +
* [https://developer.wordpress.org/reference/functions/register_rest_route register_rest_route()]
 +
* [https://developer.wordpress.org/reference/functions/rest_api_default_filters rest_api_default_filters()]
 +
* [https://developer.wordpress.org/reference/functions/rest_api_init rest_api_init()]
 +
* [https://developer.wordpress.org/reference/functions/rest_api_loaded rest_api_loaded()]
 +
* [https://developer.wordpress.org/reference/functions/rest_api_register_rewrites rest_api_register_rewrites()]
 +
* [https://developer.wordpress.org/reference/functions/rest_cookie_check_errors rest_cookie_check_errors()]
 +
* [https://developer.wordpress.org/reference/functions/rest_cookie_collect_status rest_cookie_collect_status()]
 +
* [https://developer.wordpress.org/reference/functions/rest_do_request rest_do_request()]
 +
* [https://developer.wordpress.org/reference/functions/rest_ensure_request rest_ensure_request()]
 +
* [https://developer.wordpress.org/reference/functions/rest_ensure_response rest_ensure_response()]
 +
* [https://developer.wordpress.org/reference/functions/rest_get_date_with_gmt rest_get_date_with_gmt()]
 +
* [https://developer.wordpress.org/reference/functions/rest_get_url_prefix rest_get_url_prefix()]
 +
* [https://developer.wordpress.org/reference/functions/rest_handle_deprecated_argument rest_handle_deprecated_argument()]
 +
* [https://developer.wordpress.org/reference/functions/rest_handle_deprecated_function rest_handle_deprecated_function()]
 +
* [https://developer.wordpress.org/reference/functions/rest_handle_options_request rest_handle_options_request()]
 +
* [https://developer.wordpress.org/reference/functions/rest_output_link_header rest_output_link_header()]
 +
* [https://developer.wordpress.org/reference/functions/rest_output_link_wp_head rest_output_link_wp_head()]
 +
* [https://developer.wordpress.org/reference/functions/rest_output_rsd rest_output_rsd()]
 +
* [https://developer.wordpress.org/reference/functions/rest_parse_date rest_parse_date()]
 +
* [https://developer.wordpress.org/reference/functions/rest_send_allow_header rest_send_allow_header()]
 +
* [https://developer.wordpress.org/reference/functions/rest_send_cors_headers rest_send_cors_headers()]
 +
* [https://developer.wordpress.org/reference/functions/rest_url rest_url()]
 +
* [https://developer.wordpress.org/reference/functions/signup_get_available_languages signup_get_available_languages()]
 +
* [https://developer.wordpress.org/reference/functions/strip_fragment_from_url strip_fragment_from_url()]
 +
* [https://developer.wordpress.org/reference/functions/stripslashes_from_strings_only stripslashes_from_strings_only()]
 +
* [https://developer.wordpress.org/reference/functions/the_comments_navigation the_comments_navigation()]
 +
* [https://developer.wordpress.org/reference/functions/the_comments_pagination the_comments_pagination()]
 +
* [https://developer.wordpress.org/reference/functions/the_excerpt_embed the_excerpt_embed()]
 +
* [https://developer.wordpress.org/reference/functions/the_header_image_tag the_header_image_tag()]
 +
* [https://developer.wordpress.org/reference/functions/the_post_thumbnail_url the_post_thumbnail_url()]
 +
* [https://developer.wordpress.org/reference/functions/update_network_option update_network_option()]
 +
* [https://developer.wordpress.org/reference/functions/update_term_meta update_term_meta()]
 +
* [https://developer.wordpress.org/reference/functions/update_termmeta_cache update_termmeta_cache()]
 +
* [https://developer.wordpress.org/reference/functions/urldecode_deep urldecode_deep()]
 +
* [https://developer.wordpress.org/reference/functions/wp_ajax_delete_inactive_widgets wp_ajax_delete_inactive_widgets()]
 +
* [https://developer.wordpress.org/reference/functions/wp_ajax_generate_password wp_ajax_generate_password()]
 +
* [https://developer.wordpress.org/reference/functions/wp_ajax_save_wporg_username wp_ajax_save_wporg_username()]
 +
* [https://developer.wordpress.org/reference/functions/wp_calculate_image_sizes wp_calculate_image_sizes()]
 +
* [https://developer.wordpress.org/reference/functions/wp_calculate_image_srcset wp_calculate_image_srcset()]
 +
* [https://developer.wordpress.org/reference/functions/wp_embed_excerpt_attachment wp_embed_excerpt_attachment()]
 +
* [https://developer.wordpress.org/reference/functions/wp_embed_excerpt_more wp_embed_excerpt_attachment()]
 +
* [https://developer.wordpress.org/reference/functions/wp_filter_oembed_result wp_filter_oembed_result()]
 +
* [https://developer.wordpress.org/reference/functions/wp_get_attachment_image_sizes wp_get_attachment_image_sizes()]
 +
* [https://developer.wordpress.org/reference/functions/wp_get_attachment_image_srcset wp_get_attachment_image_srcset()]
 +
* [https://developer.wordpress.org/reference/functions/wp_get_attachment_image_url wp_get_attachment_image_url()]
 +
* [https://developer.wordpress.org/reference/functions/wp_get_document_title wp_get_document_title()]
 +
* [https://developer.wordpress.org/reference/functions/wp_get_server_protocol wp_get_server_protocol()]
 +
* [https://developer.wordpress.org/reference/functions/wp_get_users_with_no_role wp_get_users_with_no_role()]
 +
* [https://developer.wordpress.org/reference/functions/wp_handle_comment_submission wp_handle_comment_submission()]
 +
* [https://developer.wordpress.org/reference/functions/wp_image_add_srcset_and_sizes wp_image_add_srcset_and_sizes()]
 +
* [https://developer.wordpress.org/reference/functions/wp_installing wp_installing()]
 +
* [https://developer.wordpress.org/reference/functions/wp_is_numeric_array wp_is_numeric_array()]
 +
* [https://developer.wordpress.org/reference/functions/wp_make_content_images_responsive wp_make_content_images_responsive()]
 +
* [https://developer.wordpress.org/reference/functions/wp_maybe_decline_date wp_maybe_decline_date()]
 +
* [https://developer.wordpress.org/reference/functions/wp_new_comment_notify_moderator wp_new_comment_notify_moderator()]
 +
* [https://developer.wordpress.org/reference/functions/wp_new_comment_notify_postauthor wp_new_comment_notify_postauthor()]
 +
* [https://developer.wordpress.org/reference/functions/wp_oembed_add_discovery_links wp_oembed_add_discovery_links()]
 +
* [https://developer.wordpress.org/reference/functions/wp_oembed_add_host_js wp_oembed_add_host_js()]
 +
* [https://developer.wordpress.org/reference/functions/wp_oembed_ensure_format wp_oembed_ensure_format()]
 +
* [https://developer.wordpress.org/reference/functions/wp_oembed_register_route wp_oembed_register_route()]
 +
* [https://developer.wordpress.org/reference/functions/wp_parse_url wp_parse_url()]
 +
* [https://developer.wordpress.org/reference/functions/wp_remote_retrieve_cookie wp_remote_retrieve_cookie()]
 +
* [https://developer.wordpress.org/reference/functions/wp_remote_retrieve_cookie_value wp_remote_retrieve_cookie_value()]
 +
* [https://developer.wordpress.org/reference/functions/wp_remote_retrieve_cookies wp_remote_retrieve_cookies()]
 +
* [https://developer.wordpress.org/reference/functions/wp_removable_query_args wp_removable_query_args()]
 +
* [https://developer.wordpress.org/reference/functions/wp_rest_server_class wp_rest_server_class()]
 +
* [https://developer.wordpress.org/reference/functions/wp_send_new_user_notifications wp_send_new_user_notifications()]
 +
* [https://developer.wordpress.org/reference/functions/wp_term_is_shared wp_term_is_shared()]
  
 
==== Deprecated ====
 
==== Deprecated ====
 
+
* [https://developer.wordpress.org/reference/functions/wp_get_http wp_get_http()]
  
 
=== Actions & Filters ===
 
=== Actions & Filters ===
第77行: 第315行:
  
 
==== New Actions ====
 
==== New Actions ====
 
+
* [https://developer.wordpress.org/reference/hooks/after_password_reset after_password_reset]
 +
* [https://developer.wordpress.org/reference/hooks/after_signup_site after_signup_site]
 +
* [https://developer.wordpress.org/reference/hooks/after_signup_user after_signup_user]
 +
* [https://developer.wordpress.org/reference/hooks/attachment_updated attachment_updated]
 +
* [https://developer.wordpress.org/reference/hooks/before_signup_header before_signup_header]
 +
* [https://developer.wordpress.org/reference/hooks/clean_user_cache clean_user_cache]
 +
* [https://developer.wordpress.org/reference/hooks/customize_post_value_set customize_post_value_set]
 +
* [https://developer.wordpress.org/reference/hooks/customize_post_value_set_setting_id customize_post_value_set_{$setting_id}]
 +
* [https://developer.wordpress.org/reference/hooks/delete_plugin delete_plugin]
 +
* [https://developer.wordpress.org/reference/hooks/delete_widget delete_widget]
 +
* [https://developer.wordpress.org/reference/hooks/deleted_plugin deleted_plugin]
 +
* [https://developer.wordpress.org/reference/hooks/edit_user_created_user edit_user_created_user]
 +
* [https://developer.wordpress.org/reference/hooks/embed_content embed_content]
 +
* [https://developer.wordpress.org/reference/hooks/embed_content_meta embed_content_meta]
 +
* [https://developer.wordpress.org/reference/hooks/embed_footer embed_footer]
 +
* [https://developer.wordpress.org/reference/hooks/embed_head embed_head]
 +
* [https://developer.wordpress.org/reference/hooks/enqueue_embed_scripts enqueue_embed_scripts]
 +
* [https://developer.wordpress.org/reference/hooks/invite_user invite_user]
 +
* [https://developer.wordpress.org/reference/hooks/manage_posts_extra_tablenav manage_posts_extra_tablenav]
 +
* [https://developer.wordpress.org/reference/hooks/ms_network_not_found ms_network_not_found]
 +
* [https://developer.wordpress.org/reference/hooks/network_site_new_created_user network_site_new_created_user]
 +
* [https://developer.wordpress.org/reference/hooks/network_site_users_created_user network_site_users_created_user]
 +
* [https://developer.wordpress.org/reference/hooks/network_user_new_created_user network_user_new_created_user]
 +
* [https://developer.wordpress.org/reference/hooks/page_attributes_meta_box_template page_attributes_meta_box_template]
 +
* [https://developer.wordpress.org/reference/hooks/post_submitbox_minor_actions post_submitbox_minor_actions]
 +
* [https://developer.wordpress.org/reference/hooks/pre_auto_update pre_auto_update]
 +
* [https://developer.wordpress.org/reference/hooks/register_new_user register_new_user]
 +
* [https://developer.wordpress.org/reference/hooks/rest_api_init rest_api_init]
 +
* [https://developer.wordpress.org/reference/hooks/wp_add_nav_menu_item wp_add_nav_menu_item]
 +
* [https://developer.wordpress.org/reference/hooks/wp_mail_failed wp_mail_failed]
 +
* [https://developer.wordpress.org/reference/hooks/wp_verify_nonce_failed wp_verify_nonce_failed]
  
 
==== New Filters ====
 
==== New Filters ====
 
+
* [https://developer.wordpress.org/reference/hooks/admin_post_thumbnail_size admin_post_thumbnail_size]
 +
* [https://developer.wordpress.org/reference/hooks/comment_excerpt_length comment_excerpt_length]
 +
* [https://developer.wordpress.org/reference/hooks/comment_form_fields comment_form_fields]
 +
* [https://developer.wordpress.org/reference/hooks/content_pagination content_pagination]
 +
* [https://developer.wordpress.org/reference/hooks/customize_loaded_components customize_loaded_components]
 +
* [https://developer.wordpress.org/reference/hooks/dashboard_recent_drafts_query_args dashboard_recent_drafts_query_args]
 +
* [https://developer.wordpress.org/reference/hooks/dashboard_secondary_items dashboard_secondary_items]
 +
* [https://developer.wordpress.org/reference/hooks/default_hidden_columns default_hidden_columns]
 +
* [https://developer.wordpress.org/reference/hooks/document_title_parts document_title_parts]
 +
* [https://developer.wordpress.org/reference/hooks/document_title_separator document_title_separator]
 +
* [https://developer.wordpress.org/reference/hooks/duplicate_comment_id duplicate_comment_id]
 +
* [https://developer.wordpress.org/reference/hooks/embed_html embed_html]
 +
* [https://developer.wordpress.org/reference/hooks/embed_oembed_discover embed_oembed_discover]
 +
* [https://developer.wordpress.org/reference/hooks/embed_site_title_html embed_site_title_html]
 +
* [https://developer.wordpress.org/reference/hooks/embed_template embed_template]
 +
* [https://developer.wordpress.org/reference/hooks/embed_thumbnail_image_shape embed_thumbnail_image_shape]
 +
* [https://developer.wordpress.org/reference/hooks/embed_thumbnail_image_size embed_thumbnail_image_size]
 +
* [https://developer.wordpress.org/reference/hooks/enclosure_links enclosure_links]
 +
* [https://developer.wordpress.org/reference/hooks/expiration_of_site_transient_transient expiration_of_site_transient_{$transient}]
 +
* [https://developer.wordpress.org/reference/hooks/expiration_of_transient_transient expiration_of_transient_{$transient}]
 +
* [https://developer.wordpress.org/reference/hooks/export_wp_filename export_wp_filename]
 +
* [https://developer.wordpress.org/reference/hooks/feed_links_show_comments_feed feed_links_show_comments_feed]
 +
* [https://developer.wordpress.org/reference/hooks/feed_links_show_posts_feed feed_links_show_posts_feed]
 +
* [https://developer.wordpress.org/reference/hooks/found_comments_query found_comments_query]
 +
* [https://developer.wordpress.org/reference/hooks/get_header_image_tag get_header_image_tag]
 +
* [https://developer.wordpress.org/reference/hooks/get_page_of_comment get_page_of_comment]
 +
* [https://developer.wordpress.org/reference/hooks/get_page_uri get_page_uri]
 +
* [https://developer.wordpress.org/reference/hooks/get_post_status get_post_status]
 +
* [https://developer.wordpress.org/reference/hooks/get_role_list get_role_list]
 +
* [https://developer.wordpress.org/reference/hooks/get_sample_permalink get_sample_permalink]
 +
* [https://developer.wordpress.org/reference/hooks/get_terms_defaults get_terms_defaults]
 +
* [https://developer.wordpress.org/reference/hooks/get_adjacent_post_excluded_terms get_{$adjacent}_post_excluded_terms]
 +
* [https://developer.wordpress.org/reference/hooks/hidden_columns hidden_columns]
 +
* [https://developer.wordpress.org/reference/hooks/illegal_user_logins illegal_user_logins]
 +
* [https://developer.wordpress.org/reference/hooks/image_get_intermediate_size image_get_intermediate_size]
 +
* [https://developer.wordpress.org/reference/hooks/insert_user_meta insert_user_meta]
 +
* [https://developer.wordpress.org/reference/hooks/max_srcset_image_width max_srcset_image_width]
 +
* [https://developer.wordpress.org/reference/hooks/mejs_settings mejs_settings]
 +
* [https://developer.wordpress.org/reference/hooks/nav_menu_item_args nav_menu_item_args]
 +
* [https://developer.wordpress.org/reference/hooks/nav_menu_item_title nav_menu_item_title]
 +
* [https://developer.wordpress.org/reference/hooks/navigation_markup_template navigation_markup_template]
 +
* [https://developer.wordpress.org/reference/hooks/network_admin_plugin_action_links network_admin_plugin_action_links]
 +
* [https://developer.wordpress.org/reference/hooks/network_admin_plugin_action_links_plugin_file network_admin_plugin_action_links_{$plugin_file}]
 +
* [https://developer.wordpress.org/reference/hooks/notify_moderator notify_moderator]
 +
* [https://developer.wordpress.org/reference/hooks/notify_post_author notify_post_author]
 +
* [https://developer.wordpress.org/reference/hooks/oembed_discovery_links oembed_discovery_links]
 +
* [https://developer.wordpress.org/reference/hooks/oembed_endpoint_url oembed_endpoint_url]
 +
* [https://developer.wordpress.org/reference/hooks/oembed_min_max_width oembed_min_max_width]
 +
* [https://developer.wordpress.org/reference/hooks/oembed_response_data oembed_response_data]
 +
* [https://developer.wordpress.org/reference/hooks/old_slug_redirect_url old_slug_redirect_url]
 +
* [https://developer.wordpress.org/reference/hooks/plugin_action_links plugin_action_links]
 +
* [https://developer.wordpress.org/reference/hooks/plugin_action_links_plugin_file plugin_action_links_{$plugin_file}]
 +
* [https://developer.wordpress.org/reference/hooks/post_edit_category_parent_dropdown_args post_edit_category_parent_dropdown_args]
 +
* [https://developer.wordpress.org/reference/hooks/post_embed_url post_embed_url]
 +
* [https://developer.wordpress.org/reference/hooks/postmeta_form_keys postmeta_form_keys]
 +
* [https://developer.wordpress.org/reference/hooks/pre_delete_post pre_delete_post]
 +
* [https://developer.wordpress.org/reference/hooks/pre_get_document_title pre_get_document_title]
 +
* [https://developer.wordpress.org/reference/hooks/pre_get_lastpostmodified pre_get_lastpostmodified]
 +
* [https://developer.wordpress.org/reference/hooks/register_post_type_args register_post_type_args]
 +
* [https://developer.wordpress.org/reference/hooks/register_taxonomy_args register_taxonomy_args]
 +
* [https://developer.wordpress.org/reference/hooks/respond_link respond_link]
 +
* [https://developer.wordpress.org/reference/hooks/rest_url rest_url]
 +
* [https://developer.wordpress.org/reference/hooks/rest_url_prefix rest_url_prefix]
 +
* [https://developer.wordpress.org/reference/hooks/screen_options_show_submit screen_options_show_submit]
 +
* [https://developer.wordpress.org/reference/hooks/show_network_active_plugins show_network_active_plugins]
 +
* [https://developer.wordpress.org/reference/hooks/signup_get_available_languages signup_get_available_languages]
 +
* [https://developer.wordpress.org/reference/hooks/subdirectory_reserved_names subdirectory_reserved_names]
 +
* [https://developer.wordpress.org/reference/hooks/submenu_file submenu_file]
 +
* [https://developer.wordpress.org/reference/hooks/taxonomy_labels_taxonomy taxonomy_labels_{$taxonomy}]
 +
* [https://developer.wordpress.org/reference/hooks/the_category_list the_category_list]
 +
* [https://developer.wordpress.org/reference/hooks/the_excerpt_embed the_excerpt_embed]
 +
* [https://developer.wordpress.org/reference/hooks/update_right_now_text update_right_now_text]
 +
* [https://developer.wordpress.org/reference/hooks/user_profile_picture_description user_profile_picture_description]
 +
* [https://developer.wordpress.org/reference/hooks/users_list_table_query_args users_list_table_query_args]
 +
* [https://developer.wordpress.org/reference/hooks/view_mode_post_types view_mode_post_types]
 +
* [https://developer.wordpress.org/reference/hooks/wp_calculate_image_sizes wp_calculate_image_sizes]
 +
* [https://developer.wordpress.org/reference/hooks/wp_calculate_image_srcset wp_calculate_image_srcset]
 +
* [https://developer.wordpress.org/reference/hooks/wp_dropdown_users_args wp_dropdown_users_args]
 +
* [https://developer.wordpress.org/reference/hooks/wp_http_ixr_client_headers wp_http_ixr_client_headers]
 +
* [https://developer.wordpress.org/reference/hooks/wp_post_revision_title_expanded wp_post_revision_title_expanded]
 +
* [https://developer.wordpress.org/reference/hooks/wp_prepare_revision_for_js wp_prepare_revision_for_js]
 +
* [https://developer.wordpress.org/reference/hooks/wp_theme_editor_filetypes wp_theme_editor_filetypes]
 +
* [https://developer.wordpress.org/reference/hooks/xmlrpc_chunk_parsing_size xmlrpc_chunk_parsing_size]
  
 
==== Deprecated ====
 
==== Deprecated ====

2016年5月6日 (五) 06:12的最新版本

wordpress.org.cn

On December 8, 2015, WordPress Version 4.4, named for jazz musician Clifford Brown, 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.4.

For Version 4.4, the database version (db_version in wp_options) changed to 35700, and the Trac revision was 35842.

Highlights

550px

  • New Default Theme - Twenty Sixteen
    • Modern take on the classic blog design
    • Flexible header and fun color schemes will make your content shine
    • Mobile-first and responsive

The Finer Points

  • Responsive images:

WordPress now takes a smarter approach to displaying appropriate image sizes on any device, ensuring a perfect fit every time. You don’t need to do anything to your theme, it just works.

  • Embed your WordPress content:

Now you can embed your posts on other sites, even other WordPress sites. Simply drop a post URL into the editor and see an instant embed preview, complete with the title, excerpt, and featured image if you’ve set one. We’ll even include your site icon and links for comments and sharing.

  • Even more embed providers:

In addition to post embeds, WordPress 4.4 also adds support for five new oEmbed providers: Cloudup, Reddit Comments, ReverbNation, Speaker Deck, and VideoPress.

For Developers

  • REST API infrastructure: Infrastructure for the REST API has been integrated into core, the first part of a multi-stage rollout. Inclusion of core endpoints is targeted for an upcoming release. To get a sneak peek of the core endpoints, and for more information on extending the REST API, check out the official WordPress REST API plugin.
  • Term meta: Terms now support metadata, just like posts. See add_term_meta(), get_term_meta(), and update_term_meta() for more information.
  • Comment query improvements: Comment queries now have cache handling to improve performance. New arguments in WP_Comment_Query make crafting robust comment queries simpler.
  • Term, comment, and network objects: New WP_Term, WP_Comment, and WP_Network objects make interacting with terms, comments, and networks more predictable and intuitive in code.

What's New

General

  • Developer reference - Improvements to inline code documentation.
  • i18n support - Improvements to translation strings all over the core.
  • Admin page headings were adjusted from H3 to H2 tags to reinforce page hierarchy
  • Improvements to how list tables are displayed on all size screens

Posts

  • The post/page permalink UI was simplified, linking the permalink and removing the "View" button

Media

Comments

  • The "View Comment" link was relocated from the Status meta box in the comment-editing screen
  • Many comment functions can now accept a full object instead of 'comment_ID' to reduce cache/db lookups
  • Orphaned comments now fall back to the 'edit_posts' capability

Appearance

  • Site icons will now fall back to the 'full' size URL when the 'thumbnail' size doesn't exist

Users

Install Process

Multisite

  • The language chooser was added to the new site form on wp-signup.php
  • Sites may no longer be created with the following reserved slugs: wp-admin, wp-content, wp-includes, or wp-json

Accessibility

Under The Hood

General

  • Unclosed HTML elements in shortcode attributes were disallowed
  • HTML was removed from all translatable text strings
  • Rewrite rules are now flushed on theme switch
  • Most core classes were moved to their own files

Embeds

  • Add oEmbed support for Cloudup.
  • Add oEmbed support for Reddit Comments.
  • Add oEmbed support for ReverbNation.
  • Add oEmbed support for Speaker Deck.
  • Add oEmbed support for VideoPress.
  • Remove oEmbed support for Blip.

JavaScript

  • Customizer: Ensure persistence of unchanged active state for controls, sections, and panels
  • Customizer: Fixed logic for determining the container element when focusing on a panel, section, or control
  • Customizer: Fixed clearing of a color control's setting by using proper empty value

Bug Fixes

  • Fail gracefully when checking mapped capabilities against unregistered post types
  • Visibility was restored for the Tags auto-suggest tooltip in Quick Edit
  • The $public_only parameter was added to count_user_posts()
  • Cron: Events are now rejected when the provided $timestamp value is not a valid timestamp
  • Users with no role are now redirected to the home page on login instead of their profile-editing screen

Multisite

  • A network can now be retrieved by its ID through WP_Network::get_instance()
  • A network can now be created or completed by passing arguments to WP_Network
  • Network-level capabilities were clarified and some long-time bugs were fixed

Classes

What's New

Deprecated

Functions

What's New

Deprecated

Actions & Filters

New Actions

New Filters

Deprecated

External Libraries

Miscellaneous

模板:Versions