2.4.0
For the full list of issues and pull requests in this release, please see the 2.4 milestone with 22 closed issues and 39 merged pull requests (minus dependency updates).
Changelog
Paired AMP
- Extend Sandboxing experiment to Paired AMP modes. #7268, #7288
- Fix Incorrect assumption of hex input by
ReaderThemeSupportFeatures::get_relative_luminance_from_hex()
. #7285, #7286 - Display mobile switcher link when mobile redirection is disabled. #5293, #7426
- Update
is_frontend_url()
to verify passed url path withhome_url()
to prevent adding paired suffix to other sites. #7329, #7330
Sanitization & Conversion
- Automatically mark GA4 scripts as being PX-verified when moderate/loose sandboxing is enabled. #7289, #7290
- Fix validation error due to native
img
tag when lightbox and carousel are enabled. #7152, #7158 - Add guard to avoid fatal error in case logo height/width is zero in core theme sanitizer. #7427, #7429
- Fix lightbox effect if images are aligned. #7154, #7178
- Disable experimental Bento integration in Sandboxing. #7267, #7269
CLI
Core Compat
- Add support of nested AMP navigation for the main menu in twenty nineteen theme. #4400, #6660
- Fix validation issues in core navigation block. #7322, #7323
- Add compatibility with PHP 8.1 and 8.2. #7225, #7452
- Update JS script polyfills service to load unconditionally on plugin's dedicated screens and eliminate when no longer applicable. Fix generation of wp-dom-ready polyfill. #7421, #7457, #7458
Editor
Infrastructure
Site Scan & DevTools
- Fix error in site scanner which surfaced when WooCommerce and Twenty Twenty-Two are active. #7380, #7406
- Fix react unique key prop error in
<SiteScanNotice />
component. #7448 - Improve representation of empty strings on URL validation screen. #5598, #7432
Dependencies
- Use composer authoritative class maps in production build to reduce needless file lookups. #7337, #7362
- Remove postcss-loader. #7425, #7273
- Update dependabot ignore list. #7420
- Update Git user and add PR body in Gutenberg packages workflow. #7370
- Update browserslist db. #7363, #7148, #7153
- Update ecosystem files. #7449, #7319
Testing
- Add PHPUnit tests workflow for multisite. #5701, #7321
- Fix failing PHPUnit tests. #7419
- Fix
npm run test:php
errors in wp-env package. #7263, #7264 - Fix failing unit tests after new Gutenberg release. #7198
- Fix static analysis and trunk unit tests errors. #7255
Code Health
- Add prettier code formatter. #7274
- Update
mask-type
attribute withmask-type
mask element css property. #7246
Props
Andy Blackwell (@andyblackwell), Dhaval Parekh (@dhaval-parekh), Edi Amin (@ediamin), Lovekesh Kumar (@thelovekesh), Maitreyie Chavan (@maitreyie-chavan), Milind More (@milindmore22), Pascal Birchler (@swissspidy), Pavan Patil (@pavanpatil1), Weston Ruter (@westonruter)
Installation
Now available to install via WordPress.org.
You can also install the amp.zip
build linked below by uploading it in the WordPress admin.
To install as a Git submodule, consider 2.4.0-built.