WordPress Release: 6.4.2

Tag Name: 6.4.2

Release Date: 12/6/2023

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.4.2 is a maintenance release that addresses several important bugs and documentation issues. Key fixes include restoring site logo and icon functionality in the REST API, fixing theme directory path handling, correcting HTML API documentation, and improving block hooks functionality. This release ensures better stability and compatibility for WordPress sites without introducing any new features.

Highlight of the Release

    • Fixed REST API issue that restored proper site logo and icon functionality
    • Corrected theme directory path handling to prevent initialization issues
    • Improved Block Hooks API by exposing serialized template content to filters
    • Enhanced browser compatibility for the Help/About page
    • Fixed documentation issues in HTML Tag Processor and theme block patterns

Migration Guide

No migration steps are required for this maintenance release. WordPress 6.4.2 is a bug fix release that should be compatible with existing WordPress 6.4.x installations without requiring any special migration procedures.

Upgrade Recommendations

It is recommended that all WordPress users upgrade to version 6.4.2 as soon as possible. This maintenance release fixes several important bugs that could affect site functionality, particularly for sites using the Site Logo block, custom themes, or the Block Hooks API. The update process should be straightforward with no breaking changes expected.

Bug Fixes

REST API

  • Fixed issue with site logo and icon in the REST API index, restoring functionality for the Site Logo block and related features
  • Restored proper handling of site logo, icon, and wp-admin's back button image

Themes

  • Fixed incorrect memoization of template or stylesheet paths that could occur if get_template_directory() or get_stylesheet_directory() were called before theme initialization
  • Corrected docblock for _register_theme_block_patterns function to reference the correct function name

Block Hooks

  • Fixed Block Hooks API to properly expose serialized template content to the hooked_block_types filter, achieving parity with pattern context structure

HTML API

  • Prevented unintended behavior when WP_HTML_Token is unserialized
  • Fixed typo in HTML Tag Processor documentation example (changed incorrect class key to class_name)

New Features

No new features were introduced in this maintenance release. WordPress 6.4.2 focuses exclusively on bug fixes, documentation improvements, and enhancing compatibility.

Security Updates

No specific security fixes were mentioned in the release notes. This appears to be primarily a maintenance release focused on bug fixes and documentation improvements.

Performance Improvements

No specific performance improvements were included in this maintenance release. The focus was on bug fixes and compatibility improvements rather than performance enhancements.

Impact Summary

WordPress 6.4.2 is a targeted maintenance release that addresses specific bugs and documentation issues without introducing new features. The most significant fix restores proper functionality for site logos and icons in the REST API, which affects the Site Logo block and related features. Other important fixes include correcting theme directory path handling to prevent initialization issues, improving the Block Hooks API, and fixing documentation in the HTML API. These changes primarily benefit developers and theme creators, but also improve stability for site administrators and content creators. The release includes CSS changes to improve browser compatibility, particularly for Opera Mini users. Overall, this is a recommended update for all WordPress users to ensure optimal site functionality and compatibility.

Statistics:

File Changed20
Line Additions385
Line Deletions96
Line Changes481
Total Commits12

User Affected:

  • Fixed HTML Tag Processor documentation with correct parameter naming
  • Restored proper access to site logo and icon in REST API index
  • Fixed theme directory path handling to prevent incorrect memoization
  • Improved Block Hooks API by exposing serialized template content to filters

Contributors:

peterwilsonccjoemcgillaaronjorbinockhamhellofromtonya