2.0.0-beta2
Pre-releaseUpdate: 2.0.0-beta3 is now available.
This is the second beta pre-release for v2.0. For an in-depth overview of the changes in v2.0 as a whole, please see the v2.0.0-beta1 release notes.
Since the first beta, an additional 23 issues have been closed and 29 pull requests have been merged. For what is left to do in this release, see the 2.0 milestone.
Please report any issues you encounter while testing! The scheduled release date for v2.0.0 final is August 18th.
The key highlighted features in this release include:
Changelog
Reader Mode
- Introduce ability to copy theme-specific settings (including logo, header, background image, colors, custom CSS, nav menu location assignments, etc.) from the Active theme to the Reader theme in the AMP Customizer. The functionality allows importing a subset of the settings from the Active theme. The imported settings are applied in the Customizer preview to ensure the modifications are appropriate prior to publishing them. Whenever subsequent changes are made to these settings in the Active theme the import mechanism is enabled to allow the updated settings to be imported to the Reader theme. #5039, #5137, #5041
- Allow using child theme of selected Reader theme as the primary active theme. #5077, #5080
- Ensure that the “Leave a Comment” link in Legacy Reader mode will direct users to to non-AMP version if mobile redirection is enabled. #4968, #5088
- Disable CSS tree shaking and CSS limit in Customizer preview. This applies to Standard mode and in the AMP Customizer for Reader mode. #5104, #5105
- Keep non-AMP Customizer link referencing the currently-previewed URL. #5107
- Improve presentation of selected AMP Reader theme on the Themes screen, showing it as active alongside the Active theme. Prevent accidental deletion of the selected Reader theme. #5076
Settings Screen and Onboarding Wizard
- Make template mode and reader theme sections more compact. Use drawers for template modes and Reader themes. Display Reader themes in carousel on settings screen. Eliminate top-level Advanced drawer in favor of an Advanced heading. #5017, #5067
- Direct users who select a Reader theme in the onboarding wizard to finish their journey in the AMP Customizer so that the relevant settings can be imported from the active theme. #5045, #5092
- Dynamically add the "Theme Selection" step in the onboarding wizard if Reader mode is selected. #5086, #5123
- Update onboarding wizard stepper design elements. #5127, #5128
- Improve copy on settings screen and onboarding wizard. #4684, #4871, #5116, #5124, #5125
- Tighten up the overall design of the onboarding wizard. #5082, #5092
- Prevent non-installable Reader theme from incorrectly being listed as available. #5048, #5139
- Add REST preloading for settings screen and wizard, reducing the load time for accessing these screens. #5114, #5118
- Eliminate obsolete re-validation when switching template modes. #5100
- Compress reader mode theme screenshots. #5071
- Ensure settings screen and onboarding wizard can be updated on readonly filesystems. #5142, #5143
Plugin Suppression
- Allow any active plugin to be suppressed instead of only those which have introduced validation issues. This ensures that the Plugin Suppression section appears consistently on the settings screen, and users will be able to suppress plugins even when Developer Tools are turned off. Also improve the design of the plugins table. #5126, #5133
Embeds
- Prevent
gallery
shortcodes form unexpectedly showing as carousels by default in Transitional/Standard mode (and when a Reader theme is selected). Allow gallery carousel to be turned off in legacy Reader mode, where it remains enabled by default. Prevent block validation errors from occurring when deactivating AMP plugin. Fix captions in carousel which contain markup. #4774, #4775 - Remove obsolete Vine and Hulu embed handlers. #4673, #5072, #5073
- Add missing context element for XPath when processing video shortcodes in Text widgets. #5066, #5074
- Fix TikTok test. #5094
CSS
- Update PHP-CSS-Parser library to prevent
var()
functions inside ofrgba()
from being dropped. #5023, #5081
Schema.org Metadata
- Supply
ImageObject
type forpublisher.logo
in Schema.org metadata as opposed to a bare URL string. #5121
Parsing
- Ensure emoji AMP attribute can be restored if non-space whitespace used between attributes. #5098
- Restore
noscript
head elements immediately after parsing rather than at serialization to ensure that they are sanitized. #5097
Testing
- Add PHP Compatibility testing to external libraries and use PSR-12 as baseline standard. #4655, #5084, #5085
AMP Validator Spec Updates
- Update amphtml validator spec to commit 3aa007a (spec file rev 1060). #5075
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), John Watkins (johnwatkins0), Joshua Wold (jwold), Kasper Myram (kmyram), Pierre Gordon (pierlon), Sjoerd Boerrigter (sboerrigter), Weston Ruter (westonruter)
Installation
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.0-beta2-built.