2.4.0
版本发布时间: 2023-02-09 06:14:04
ampproject/amp-wp最新发布版本:2.5.4(2024-07-16 02:45:13)
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. https://github.com/ampproject/amp-wp/issues/7268, https://github.com/ampproject/amp-wp/pull/7288
- Fix Incorrect assumption of hex input by
ReaderThemeSupportFeatures::get_relative_luminance_from_hex()
. https://github.com/ampproject/amp-wp/issues/7285, https://github.com/ampproject/amp-wp/pull/7286 - Display mobile switcher link when mobile redirection is disabled. https://github.com/ampproject/amp-wp/issues/5293, https://github.com/ampproject/amp-wp/pull/7426
- Update
is_frontend_url()
to verify passed url path withhome_url()
to prevent adding paired suffix to other sites. https://github.com/ampproject/amp-wp/issues/7329, https://github.com/ampproject/amp-wp/pull/7330
Sanitization & Conversion
- Automatically mark GA4 scripts as being PX-verified when moderate/loose sandboxing is enabled. https://github.com/ampproject/amp-wp/issues/7289, https://github.com/ampproject/amp-wp/pull/7290
- Fix validation error due to native
img
tag when lightbox and carousel are enabled. https://github.com/ampproject/amp-wp/issues/7152, https://github.com/ampproject/amp-wp/pull/7158 - Add guard to avoid fatal error in case logo height/width is zero in core theme sanitizer. https://github.com/ampproject/amp-wp/issues/7427, https://github.com/ampproject/amp-wp/pull/7429
- Fix lightbox effect if images are aligned. https://github.com/ampproject/amp-wp/issues/7154, https://github.com/ampproject/amp-wp/pull/7178
- Disable experimental Bento integration in Sandboxing. https://github.com/ampproject/amp-wp/issues/7267, https://github.com/ampproject/amp-wp/pull/7269
CLI
- Add
amp option
wp cli command to manage plugin options. https://github.com/ampproject/amp-wp/issues/5783, https://github.com/ampproject/amp-wp/pull/7430
Core Compat
- Add support of nested AMP navigation for the main menu in twenty nineteen theme. https://github.com/ampproject/amp-wp/issues/4400, https://github.com/ampproject/amp-wp/pull/6660
- Fix validation issues in core navigation block. https://github.com/ampproject/amp-wp/issues/7322, https://github.com/ampproject/amp-wp/pull/7323
- Add compatibility with PHP 8.1 and 8.2. https://github.com/ampproject/amp-wp/pull/7225, https://github.com/ampproject/amp-wp/pull/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. https://github.com/ampproject/amp-wp/pull/7421, https://github.com/ampproject/amp-wp/issues/7457, https://github.com/ampproject/amp-wp/pull/7458
Editor
- Move AMP Settings in Gallery block to Advanced panel. https://github.com/ampproject/amp-wp/issues/4989, https://github.com/ampproject/amp-wp/pull/7171, https://github.com/ampproject/amp-wp/pull/7450
Infrastructure
- Decouple build process from packaging process. https://github.com/ampproject/amp-wp/issues/3302, https://github.com/ampproject/amp-wp/pull/7144
Site Scan & DevTools
- Fix error in site scanner which surfaced when WooCommerce and Twenty Twenty-Two are active. https://github.com/ampproject/amp-wp/issues/7380, https://github.com/ampproject/amp-wp/pull/7406
- Fix react unique key prop error in
<SiteScanNotice />
component. https://github.com/ampproject/amp-wp/pull/7448 - Improve representation of empty strings on URL validation screen. https://github.com/ampproject/amp-wp/issues/5598, https://github.com/ampproject/amp-wp/pull/7432
Dependencies
- Use composer authoritative class maps in production build to reduce needless file lookups. https://github.com/ampproject/amp-wp/issues/7337, https://github.com/ampproject/amp-wp/pull/7362
- Remove postcss-loader. https://github.com/ampproject/amp-wp/pull/7425, https://github.com/ampproject/amp-wp/pull/7273
- Update dependabot ignore list. https://github.com/ampproject/amp-wp/pull/7420
- Update Git user and add PR body in Gutenberg packages workflow. https://github.com/ampproject/amp-wp/pull/7370
- Update browserslist db. https://github.com/ampproject/amp-wp/pull/7363, https://github.com/ampproject/amp-wp/issues/7148, https://github.com/ampproject/amp-wp/pull/7153
- Update ecosystem files. https://github.com/ampproject/amp-wp/pull/7449, https://github.com/ampproject/amp-wp/pull/7319
Testing
- Add PHPUnit tests workflow for multisite. https://github.com/ampproject/amp-wp/issues/5701, https://github.com/ampproject/amp-wp/pull/7321
- Fix failing PHPUnit tests. https://github.com/ampproject/amp-wp/pull/7419
- Fix
npm run test:php
errors in wp-env package. https://github.com/ampproject/amp-wp/issues/7263, https://github.com/ampproject/amp-wp/pull/7264 - Fix failing unit tests after new Gutenberg release. https://github.com/ampproject/amp-wp/pull/7198
- Fix static analysis and trunk unit tests errors. https://github.com/ampproject/amp-wp/pull/7255
Code Health
- Add prettier code formatter. https://github.com/ampproject/amp-wp/pull/7274
- Update
mask-type
attribute withmask-type
mask element css property. https://github.com/ampproject/amp-wp/pull/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.
1、 amp.zip 2.89MB