2.3.0
版本发布时间: 2022-06-15 07:21:45
ampproject/amp-wp最新发布版本:2.5.4(2024-07-16 02:45:13)
For the full list of changes in this release, please see the 2.3 milestone, with 12 closed issues and 16 merged pull requests (minus dependency updates). Read on for the full details.
Changelog
- Add advanced settings toggle to use native
img
instead ofamp-img
/amp-anim
. https://github.com/ampproject/amp-wp/issues/7035, https://github.com/ampproject/amp-wp/pull/6805, https://github.com/ampproject/amp-wp/pull/7066 - Pre-fill default configuration for top analytics vendors. https://github.com/ampproject/amp-wp/issues/7019, https://github.com/ampproject/amp-wp/pull/7034
- Add Site Health test to warn sites when fallback publisher logo is used for Schema.org metadata. https://github.com/ampproject/amp-wp/issues/5120, https://github.com/ampproject/amp-wp/pull/7124
- Update amp-toolbox-php to v0.11.2, including a fix to rendering the
heights
attribute as well as SSR foramp-audio
. https://github.com/ampproject/amp-wp/pull/7146, https://github.com/ampproject/amp-wp/pull/7121, https://github.com/ampproject/amp-wp/issues/7130 - Update the theme and plugin ecosystem. https://github.com/ampproject/amp-wp/pull/7145
- Add sanitizer for PWA scripts to prevent removal on Offline/Server error template. https://github.com/ampproject/amp-wp/issues/7122, https://github.com/ampproject/amp-wp/pull/7141
- Raise PHPStan level for the
AmpProject\AmpWP
package to 4. https://github.com/ampproject/amp-wp/issues/4733, https://github.com/ampproject/amp-wp/pull/7096 - Update sanitizer for auto-lightbox disabling to target root element instead of body, avoiding the unnecessary download of the auto-lightbox script. https://github.com/ampproject/amp-wp/issues/7057, https://github.com/ampproject/amp-wp/pull/7097
- Fix desktop menu expansion on the Twenty Twenty theme. https://github.com/ampproject/amp-wp/issues/7056, https://github.com/ampproject/amp-wp/pull/7094
- Bump minimum PHP version from 5.6 to 7.0. https://github.com/ampproject/amp-wp/issues/7031, https://github.com/ampproject/amp-wp/pull/7088
- Update amphtml spec to 2204221712000. https://github.com/ampproject/amp-wp/pull/7078
- Scroll to selected section in AMP setting page after fetching site scan URLs. https://github.com/ampproject/amp-wp/issues/7005, https://github.com/ampproject/amp-wp/pull/7051
- Replace use of
dangerouslySetInnerHTML
withcreateInterpolateElement
. https://github.com/ampproject/amp-wp/issues/6759, https://github.com/ampproject/amp-wp/pull/7000 - Update repo local environment setup and engineering guidelines documentation. https://github.com/ampproject/amp-wp/issues/6798, https://github.com/ampproject/amp-wp/pull/6802
- Add Husky. https://github.com/ampproject/amp-wp/pull/7115
Props
Thanks to the many contributors who made this release possible through work on development, design, testing, project management, and more:
Alberto Medina (@amedina), Dhaval Parekh (@dhaval-parekh), Edi Amin (@ediamin), Fellyph Cintra (@fellyph), Lovekesh Kumar (@thelovekesh), Maitreyie Chavan (@maitreyie-chavan), Milind More (@milindmore22), Pascal Birchler (@swissspidy), Piotr Delawski (@delawski), Pooja Killekar (@pooja-muchandikar), 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.3.0-built.
1、 amp.zip 2.76MB