2.0.6
版本发布时间: 2020-11-18 06:05:51
ampproject/amp-wp最新发布版本:2.5.4(2024-07-16 02:45:13)
A month after the 2.0.5 release, this 2.0.6 maintenance release includes minor bugfixes and enhancements. See milestone with 4 issues and 15 PRs. See also full diff.
Changelog
CSS
- Support
@-moz-document url-prefix()
Firefox CSS hack by transforming into@supports (-moz-appearance:meterbar)
. This fixes AMP-compatibility for Twenty Nineteen. This also fixes plugin suppression for blocks with Gutenberg 9.2.1. https://github.com/ampproject/amp-wp/pull/5530
Embeds
- Re-register Facebook embed handler. https://github.com/ampproject/amp-wp/pull/5548
- Skip Facebook embed test if oEmbed endpoint is down. https://github.com/ampproject/amp-wp/pull/5528
Sanitization & Validation
- Prevent generating invalid width/height for amp-iframe when fill layout is detected via inline style. https://github.com/ampproject/amp-wp/issues/5514, https://github.com/ampproject/amp-wp/pull/5513
- Raise validation error if width or height attribute is invalid. https://github.com/ampproject/amp-wp/pull/5516
- Fix typo
class-amp-iframe-sanitizer.php
. https://github.com/ampproject/amp-wp/pull/5522
Settings Screen
- Improve logic around WP core file imports to prevent fatal error. https://github.com/ampproject/amp-wp/issues/5537, https://github.com/ampproject/amp-wp/pull/5539
Routing
- Update
amp_is_available()
to check for cron & WP-CLI. https://github.com/ampproject/amp-wp/issues/5546, https://github.com/ampproject/amp-wp/pull/5547
Infrastructure
- Add support for Composer v2. https://github.com/ampproject/amp-wp/pull/5543, https://github.com/ampproject/amp-wp/issues/5551, https://github.com/ampproject/amp-wp/pull/5568, https://github.com/ampproject/amp-wp/pull/5601
- Fix Travis build issues. https://github.com/ampproject/amp-wp/pull/5599
- Use patches from GitHub to patch PHP-CSS-Parser. https://github.com/ampproject/amp-wp/pull/5556
- Fix PHPUnit tests in WordPress 5.6-beta1. https://github.com/ampproject/amp-wp/pull/5531
Mobile Redirection
- Prevent AMP-to-AMP linking for link with Mustache template variables. https://github.com/ampproject/amp-wp/pull/5509
Optimizer
- Fix typo in readme. https://github.com/ampproject/amp-wp/pull/5535
Props
Thanks to the many contributors who made this release possible through work on development, design, testing, project management, and more:
Alain Schlesser (schlessera), Alberto Medina (amedina), Alex (Alexays), Dominik Ritter (dritter), Ian Jenkins (jenkoian), James Osborne (jamesozzie), John Watkins (johnwatkins0), Joshua Wold (jwold), Kasper Myram (kmyram), Pascal Birchler (swissspidy), Pierre Gordon (pierlon), Robert O'Rourke (roborourke), Seamus Lee (seamuslee001), 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.0.6-built.
1、 amp.zip 1.52MB