2.0.11
版本发布时间: 2021-03-10 00:12:56
ampproject/amp-wp最新发布版本:2.5.4(2024-07-16 02:45:13)
A couple months after the 2.0.10 release, this 2.0.11 release includes a few fixes, enhancements, and improved compatibility with WordPress 5.7. See milestone with 22 issues/PRs and review full diff. (Please note the larger 2.1 release is coming in a few weeks! Stay tuned for beta/RC pre-releases for testing.)
Changelog
- Ensure
object-fit
,object-position
, andlayout=fill
are set on Cover Block's image/video background, ensuring blocks created in WordPress 5.7 get handled correctly; omitplaysinline
attribute in video sanitizer (since handled byamp-video
). https://github.com/ampproject/amp-wp/issues/5914, https://github.com/ampproject/amp-wp/pull/5927 - Utilize
wp_print_inline_script_tag()
to print mobile redirection script so that thewp_inline_script_attributes
filter can be used to add additional attributes (to prevent optimization plugins from mutating, for example). https://github.com/ampproject/amp-wp/issues/5942, https://github.com/ampproject/amp-wp/pull/5945 - Normalize string and number literals in script text contents for validation errors. This prevents scripts containing nonces, random numbers, and other variable content from continually generating never-before-seen validation errors. https://github.com/ampproject/amp-wp/issues/4753, https://github.com/ampproject/amp-wp/pull/5836
- Add support and review links to plugin row meta. https://github.com/ampproject/amp-wp/issues/5893, https://github.com/ampproject/amp-wp/pull/5924, https://github.com/ampproject/amp-wp/pull/5959
- Use
wp_robots()
instead of the now-deprecatednoindex()
in WP 5.7. https://github.com/ampproject/amp-wp/pull/5793 - Prevent possibility of fatal error while invoking
MonitorCssTransientCaching::process()
during WP Cron. https://github.com/ampproject/amp-wp/issues/5838, https://github.com/ampproject/amp-wp/pull/5841, https://github.com/ampproject/amp-wp/pull/5842 - Fix
test_decorate_shortcode_and_filter_source
in WP 5.7-alpha after HTTPS migration commit. https://github.com/ampproject/amp-wp/pull/5837 - Eliminate use of Travis on 2.0 branch in favor of GHA for testing. https://github.com/ampproject/amp-wp/pull/5851
- Harden
AMP_Post_Type_Support::get_support_errors()
to account for case where invalid post is supplied. https://github.com/ampproject/amp-wp/pull/5871 - Prevent possible PHP Notice from occuring when global
$post
is null when editing a post. https://github.com/ampproject/amp-wp/pull/5958 - Prevent Close button on Onboarding Wizard from causing re-auth loop when referrer is login page. https://github.com/ampproject/amp-wp/issues/5925, https://github.com/ampproject/amp-wp/pull/5932
- Make
AMP_DOM_Utils
non-internal since useful for devs and already in third party use. https://github.com/ampproject/amp-wp/pull/5902 - Sanitize keys in
Server-Timing
instead of escaping with slashes. https://github.com/ampproject/amp-wp/pull/5941 - Fix production build for CI on 2.0 branch. https://github.com/ampproject/amp-wp/pull/5956
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), Erwin Bantilan (@bantilan), James G (@jamesozzie), Jono Alderson (@jono-alderson), Joshua Wold (@jwold), Kasper Myram (@kmyram), Milind More (@milindmore22), Pierre Gordon (@pierlon), Ryan Smith (@rsmith4321), 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.11-built.
1、 amp.zip 1.46MB