\n\n\n\n
<\/p>\n\n\n\n
Update on 5 May 2022<\/em>: Updates to the @wordpress\/create-block templating system<\/a> and Block Locking Settings in WordPress 6.0<\/a> dev notes were added to the Block Editor section.<\/p>\n\n\n\n With the Release Candidate 1 officially shipped, it's time to explore the next major release, WordPress 6.0. This release introduces Style variations, the Block Locking UI, various writing improvements, more design tools, new hooks, updated external libraries, and more! At a high level, there are 97 enhancements and feature requests<\/a>, 131 bug fixes<\/a> and 13 Gutenberg bug fixes<\/a>, 23 other blessed tasks<\/a>, which brings us to 251 Trac tickets in total<\/a>.<\/p>\n\n\n\n The new performance team has been working hard to improve various parts of WordPress. A lot of queries have been optimized and some removed, cache improved, multiple translations of the same strings removed, just to mention a few.<\/p>\n\n\n\n Let's take a deeper look at what to expect in 6.0.<\/p>\n\n\n\n[info]Note: some of the changes will require plugin and theme authors to adapt or change their code. Please, read these Dev notes carefully to make sure your code is ready for WordPress 6.0 on May 24, 2022.[\/info]\n\n\n\n Along with performance, lots of work has focused on improving accessibility in various parts of the WordPress software.<\/p>\n\n\n\n The Block Editor updates bring new functionality, fixes, and more: <\/p>\n\n\n\n Of note, if you currently have the Gutenberg plugin active on your website and are upgrading to WordPress 6.0, please make sure Gutenberg is updated to its latest version. This helps ensure the best experience possible. <\/p>\n\n\n\n Let's dig in.<\/p>\n\n\n\n Amongst other performance improvements, in this release you'll be able to skip not needed queries with In WordPress 6.0 Media has new filters and a few UI additions:<\/p>\n\n\n\n We'll find performance improvements in Media component as well.<\/p>\n\n\n\n WordPress 6.0 introduces more dynamic hooks for custom post types and taxonomies.<\/p>\n\n\n\n Taxonomies received a lot of performance improvements, from term query caching and adding limits to taxonomy queries, through navigation menu items to changing This new release offers a streamlined way for theme authors to work with patterns, support for multiple theme.json files AKA style variations, better export themes with Site Editor, and a few more goodies.<\/p>\n\n\n\n This change removes the requirement for block themes to have an unused For more info see #51657<\/a>.<\/p>\n\n\n\n With 6.0 WordPress installs with more than 10,000 users, so called \"large sites\", will receive performance improvements for querying and counting users. <\/p>\n\n\n\n WordPress 6.0 also brings: <\/p>\n\n\n\n More than 131<\/a> bugs, 97<\/a> enhancements and feature requests, and 23<\/a> blessed tasks have been marked as fixed in WordPress 6.0<\/a>.<\/p>\n\n\n\n Here are a few that haven\u2019t been highlighted:<\/p>\n\n\n\n Please, test your code. You can use the Beta Tester plugin<\/a> on a test site to validate how your plugin or theme functions with WordPress 6.0 RC1. Fixing issues that your code has with WordPress core helps you and millions of WordPress sites.<\/p>\n\n\n\n Props to <\/strong><\/em>@desrosj, @imath, @spacedmonkey, <\/strong><\/em>@swissspidy, <\/strong>@annezazu, @webcommsat, <\/em>@jeffpaul, @costdev, @bph for contributing to this guide.<\/strong><\/em><\/p>\n\n\n#6-0, #dev-notes-6-0, #field-guide","contentFiltered":"Note: some of the changes will require pluginPlugin<\/span> A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https:\/\/wordpress.org\/plugins\/<\/a> or can be cost-based plugin from a third-party<\/span><\/span><\/span> and theme authors to adapt or change their code. Please, read these Dev notesdev note<\/span> Each important change in WordPress Core is documented in a developers note, (usually called dev note). Good dev notes generally include a description of the change, the decision that led to this change, and a description of how developers are supposed to work with that change. Dev notes are published on Make\/Core blog during the beta phase of WordPress release cycle. Publishing dev notes is particularly important when plugin\/theme authors and WordPress developers need to be aware of those changes.In general, all dev notes are compiled into a Field Guide at the beginning of the release candidate phase.<\/span><\/span><\/span> carefully to make sure your code is ready for WordPress 6.0 on May 24, 2022.","permalink":"https:\/\/make.wordpress.org\/core\/2022\/05\/03\/wordpress-6-0-field-guide\/","unixtime":1651596626,"unixtimeModified":1655314642,"entryHeaderMeta":"","linkPages":"","footerEntryMeta":"","tagsRaw":"6.0, dev-notes-6.0, field guide","tagsArray":[{"label":"6.0","count":76,"link":"https:\/\/make.wordpress.org\/core\/tag\/6-0\/"},{"label":"dev-notes-6.0","count":20,"link":"https:\/\/make.wordpress.org\/core\/tag\/dev-notes-6-0\/"},{"label":"field guide","count":32,"link":"https:\/\/make.wordpress.org\/core\/tag\/field-guide\/"}],"loginRedirectURL":"https:\/\/login.wordpress.org\/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcore%2F2022%2F05%2F03%2Fwordpress-6-0-field-guide%2F&locale=en_US","hasPrevPost":true,"prevPostTitle":"Performance team meeting summary 3 May 2022","prevPostURL":"https:\/\/make.wordpress.org\/core\/2022\/05\/03\/performance-team-meeting-summary-3-may-2022\/","hasNextPost":true,"nextPostTitle":"Dev Chat Agenda, May 4, 2022","nextPostURL":"https:\/\/make.wordpress.org\/core\/2022\/05\/03\/dev-chat-agenda-may-4-2022\/","commentsOpen":false,"is_xpost":false,"editURL":null,"postActions":"
\n\n\n\nAccessibility<\/h2>\n\n\n\n
Block Editor<\/h2>\n\n\n\n
ancestor<\/code> property in block.json letting one restrict where users can place their blocks. <\/li>
lock<\/code> attribute for every block<\/span>. <\/li>
Bootstrap\/Load<\/h2>\n\n\n\n
do_parse_request<\/code> filter.<\/p>\n\n\n\n
Cache API<\/h2>\n\n\n\n
wp_cache_*_multiple<\/code> API becomes a full CRUD. Also, option to flush the runtime cache without flushing the entire persistent cache is being enabled.<\/p>\n\n\n\n
Media<\/h2>\n\n\n\n
edit_custom_thumbnail_sizes<\/code> to allow users to enable editing individual custom image sizes. (#28277<\/a>)<\/li>
Posts, Post types\/Taxonomies<\/h2>\n\n\n\n
Taxonomy<\/h2>\n\n\n\n
term_exists<\/code> to use
get_terms()<\/code>.<\/p>\n\n\n\n
Themes<\/h2>\n\n\n\n
Allow block themes to be activated without
index.php<\/code><\/h3>\n\n\n\n
index.php<\/code> template just for activation, as they use a
templates\/index.html<\/code> file instead. (#54272<\/a>)<\/p>\n\n\n\n
Correct the logic for displaying a _doing_it_wrong() notice for add_theme_support( 'html5' )<\/h3>\n\n\n\n
add_theme_support( 'html5' )<\/code> without passing an array of supported types should throw a
_doing_it_wrong()<\/code> notice: \"You need to pass an array of types\".<\/li>
comment-list<\/code>,
comment-form<\/code>, and
search-form<\/code> for backward compatibility.<\/li>
false<\/code>.<\/li><\/ul>\n\n\n\n
Users<\/h2>\n\n\n\n
Other Developer Updates<\/h2>\n\n\n\n
But Wait, There is More!<\/h2>\n\n\n\n
media_date_column_time<\/code> filter to the media list table date column. Similar to the existing
post_date_column_time<\/code> filter in the posts list table, this change adds a new hook to filter the \"Date\" column output in the media list view. (#42942<\/a>)<\/li>
@wordpress\/scripts<\/code>. Bring
caniuse-lite<\/code> to the latest version which ensures that build tools target the most recent version of browsers supported by WordPress. (#51750<\/a>, see #55505<\/a>)<\/li>
random_compat<\/code> to version 2.0.21. The latest release includes improved compatibility with PHP 8.1, as well as some bug fixes for Windows platforms. Release notes: https:\/\/.com\/paragonie\/random_compat\/releases\/tag\/v2.0.21<\/a> (#55181<\/a>)<\/li>
escapeshellarg()<\/code> and
escapeshellcmd()<\/code>; it's not safe!<\/strong> Release notes: https:\/\/.com\/PHPMailer\/PHPMailer\/releases\/tag\/v6.5.4<\/a> (#55187<\/a>)<\/li>
backbone<\/code> from
1.4.0<\/code> to
1.4.1<\/code>.,
underscore<\/code> from
1.13.1<\/code> to
1.13.2<\/code>, and
clipboard<\/code> from
2.0.8<\/code> to
2.0.10<\/code>. (#55547<\/a>)<\/li><\/ul><\/li>
<ruby><\/code> and related elements. This is especially commonly used in Japanese content, but it can also been seen in content of other languages like Chinese. The set of elements to enable such functionality consists of
<ruby><\/code>,
<rt><\/code>, and
<rp><\/code> in the HTML Standard<\/a>, while some browsers (like Firefox) additionally support
<rb><\/code> and
<rtc><\/code> for more advanced formatting. (#54698<\/a>)<\/li>
lang<\/code>,
xml:lang<\/code>,
dir<\/code> attributes globally. Globally permit the
lang<\/code>,
xml:lang<\/code>, and
dir<\/code> attributes on all elements rather than a subset in accordance with the HTML specification. (#54699<\/a>)<\/li>
attachment_fields_to_save<\/code> filter and deprecate
image_attachment_fields_to_save()<\/code>. This filter prevented removing attachment titles. This changeset removes the filter and deprecates the related function since it is no longer used. (#39108<\/a>)<\/li>
plugin_install_description<\/code> filter. This allows for modification of the plugin card description on the Add Plugins screen. (#55480<\/a>)<\/li>
apply_filters()<\/code> into a proper variadic function. (#53218<\/a>)<\/li><\/ul><\/li>
$update<\/code> parameter to
wp_insert_post_data<\/code> and
wp_insert_attachment_data<\/code> filters. This makes it easier to determine in a callback function whether this is an existing post being updated or not. (#46228<\/a>)<\/li>