WordPress Release: 6.0.1

Tag Name: 6.0.1

Release Date: 7/12/2022

WordPress LogoWordPress

World's most popular open-source content management system powering over 40% of all websites. Offers extensive plugin ecosystem, themes, and robust community support for blogs, e-commerce, and corporate websites. Highly customizable and scalable platform suitable for beginners and advanced developers.

TL;DR

WordPress 6.0.1 is a maintenance release that addresses several bugs and issues found in WordPress 6.0. This update fixes critical issues with the block editor, improves caching in term queries, restores utility classnames for blocks with layout attributes, adds missing options to the REST API settings endpoint, and removes Meetup as an oEmbed source due to API deprecation. The release includes important fixes for theme developers working with block templates and ensures proper translation support for the Comments Query Loop block.

Highlight of the Release

    • Fixed caching issues in the WP_Term_Query class, improving performance and ensuring terms are correctly cached
    • Restored utility classnames for blocks with layout attributes, allowing theme authors to assign custom CSS related to specific layout selections
    • Added missing options to the REST API settings endpoint (show_on_front, page_on_front, and page_for_posts)
    • Fixed a 404 response issue when resolving templates for new posts or pages
    • Removed Meetup as an oEmbed source due to API deprecation
    • Registered the Comments Query Loop block from metadata to ensure proper translation support
    • Fixed the block-templates theme feature registration for proper REST API inclusion

Migration Guide

No migration guide is necessary for WordPress 6.0.1 as it contains no breaking changes. This is a maintenance release that focuses on bug fixes and performance improvements.

For site administrators:

  • Update to WordPress 6.0.1 through your dashboard or by downloading the update from wordpress.org
  • If you were using Meetup embeds, note that these will no longer work as Meetup has deprecated their oEmbed endpoint

For theme developers:

  • Utility classnames for blocks with layout attributes have been restored, which may affect your CSS targeting
  • The block-templates theme feature is now properly registered

Upgrade Recommendations

It is highly recommended to update to WordPress 6.0.1 as soon as possible. This maintenance release fixes several important bugs that affect the block editor, REST API, and term query caching.

The update process should be smooth and straightforward:

  1. Back up your website before updating
  2. Update through your WordPress dashboard or manually download and install the update
  3. Test your website functionality after updating

This release contains no breaking changes and is focused on bug fixes and performance improvements, making it a safe update for all WordPress 6.0 users.

Bug Fixes

  • Block Editor

    • Fixed an issue where utility classnames were missing from blocks with layout attributes specified
    • Ensured only the main query is modified when resolving template for new posts, fixing a 404 response issue
    • Fixed a warning in the Post Comments Form block related to i18n
    • Included user's name in the wp_refresh_post_lock() response for consistent post lock data
  • REST API

    • Added missing options to the settings endpoint: show_on_front, page_on_front, and page_for_posts
    • Updated the value used for pattern directory keywords to use the correct property meta.wpop_keywords
  • Taxonomy

    • Fixed caching issues in the WP_Term_Query class when passing child_of or pad_counts parameters
    • Improved performance by only caching an array of term IDs where possible
  • Themes

    • Registered the block-templates theme feature to ensure it's included in the REST API data
    • Reverted the change of theme preview width on Add Themes screen that caused unintended side effects
    • Reverted the Twenty Ten theme version to 3.6 as no functional changes were made during the 6.0 release cycle
  • Embeds

    • Removed Meetup as an oEmbed source since their endpoint has been deprecated

New Features

No significant new features were added in this maintenance release. WordPress 6.0.1 focuses on bug fixes, performance improvements, and addressing compatibility issues found in WordPress 6.0.

Security Updates

No specific security fixes were mentioned in the release notes for WordPress 6.0.1. This appears to be primarily a maintenance and bug fix release.

Performance Improvements

  • Taxonomy Query Caching

    • Simplified the logic in WP_Term_Query and ensured terms are correctly cached
    • Improved performance by only caching an array of term IDs where possible, reducing memory usage
    • Fixed issues with term caching when using child_of or pad_counts parameters
  • Block Editor

    • Updated various block editor packages to improve overall performance and stability
    • Fixed issues that could cause unnecessary re-renders in the editor interface

Impact Summary

WordPress 6.0.1 is a maintenance release that addresses several important bugs and performance issues found in WordPress 6.0. The most significant improvements include fixing caching issues in the WP_Term_Query class, restoring utility classnames for blocks with layout attributes, and ensuring proper template resolution for new posts.

For theme developers, the restoration of utility classnames is particularly important as it allows for custom CSS targeting based on layout selections. The proper registration of the block-templates theme feature also ensures better compatibility with the REST API.

Plugin developers will benefit from the addition of missing options to the REST API settings endpoint and the improved term query caching. Content creators will experience fewer issues with the block editor, particularly when multiple users are editing content simultaneously.

Site administrators should note that Meetup embeds are no longer supported due to API deprecation. However, this change should have minimal impact on most sites.

Overall, this release enhances stability, performance, and compatibility without introducing breaking changes, making it a recommended update for all WordPress 6.0 users.

Statistics:

File Changed40
Line Additions1,927
Line Deletions1,636
Line Changes3,563
Total Commits21

User Affected:

  • Utility classnames for blocks with layout attributes have been restored, allowing theme authors to assign custom CSS related to specific layout selections
  • The `block-templates` theme feature is now properly registered and included in the REST API data
  • Fixed issues with the theme preview width on the Add Themes screen

Contributors:

SergeyBiryukovdesrosjpeterwilsoncc