Skip to content

1.2.1

Choose a tag to compare

@westonruter westonruter released this 22 Aug 18:17
· 14647 commits to develop since this release
16c3bba

Now available to install via WordPress.org.

For the full list of issues and pull requests in this release, please see the 1.2.1 milestone, with nearly 275 issues and pull requests (and 500+ commits).

The major highlights in this release include:

AMP Stories

See the 119+ issues and pull requests in this release for stories. To summarize the story editor changes in this release:

  • Add a new option to export a story as a portable ZIP archive.
  • Ensure only media files with the correct mime types can be uploaded.
  • Add an option to turn off captions for videos.
  • Make various styling improvements in the editor UI.
  • Improve UX of the template inserter.
  • Fix an edge case in the Latest Stories block.
  • Improve block resizing and font size calculations.
  • Fix an issue where HTML was erroneously stripped for users with Author role.
  • Add automatic extraction of poster images when uploading videos. #903
  • Improve styling and positioning of the Call to Action block. #2706
  • Improve compatibility with Gutenberg 6.3.0. #2919, #3020
  • Ensure additional story images and fallback publisher image are included in schema.org metadata. #2930
  • Improve usability of reordering elements in the layers panel. #2920
  • Add "snapping" feature that makes it easy to nicely rotate elements. #2967
  • Add inline text color support (flat text background scrim). #3033
  • Require double click (or just two clicks) for editing. #2863
  • Improve story page background media with image srcset, reduced image size, and a11y text. #3006

This release's focus was on further improving the AMP Stories experience and fixing the most pressing issues that came up since 1.2.0.

As a reminder, you will need the latest version of the Gutenberg plugin installed (v5.8+ specifically) to use AMP Stories, since the AMP Stories editor uses bleeding-edge features of WordPress's block editor which are not yet in a WordPress core release.

Website Mode Updates

There are also 72+ issues and pull requests that have been closed for the website experience.

Embeds

  • Improve Soundcloud embeds to support playlists, improve layout, and add a fallback. #2715
  • Improve support for Facebook widget layout. #2776
  • Add missing alt attribute to amp-img elements in carousel generated via gallery shortcode. #2848
  • Improve sizing of differently shaped images in a gallery carousel. #2864

CSS Handling

  • Prevent tree-shaking dynamic class names for amp-date-picker. #2658
  • Fix conversion of CSS selectors when HTML tag maps to multiple AMP tags. Fixes center-aligned animated GIFs appearing stretched. #2973

Developer Improvements

  • Fixes compatibility with other plugins and older WordPress installations by correcting the polyfills for WordPress 4.9. #2679
  • Added a new amp_post_template_body_open hook to the Reader mode template. #1143

Validation Changes

  • Guard against infinite recursion when matching a theme source. #2547
  • Prevent errors around handling validation of widgets. #2698
  • Improve handling of iframes. #2712
  • Updated the amphtml validator spec to v1907301630320, along with responsive amp-soundcloud embeds. #3003
  • Fix handling of child_tag_name_oneof constraint in tag spec, which fixes issues with nav elements in amp-sidebar. #2926

Themes and Templates

  • Fixes a regression with using Reader mode in combination with an AMP-compatible theme. #2753
  • Improved featured image handling and cropping. #2711
  • Add support for looping video headers. #2642

Infrastructure, Technical Debt, and Code Cleanup

  • Made sure the main plugin file is still parseable on PHP 5.2+. #2766
  • Major code readability and maintainability improvements. #2493
  • Converted all of the PHP source code to use short array syntax. #2767
  • Add webpackbar plugin to have nicer output. #2814 #2818
  • Begin with some E2E Tests. #2708
  • Normalize amp-bind syntax to non-bracketed data-amp-bind-* attributes. #2974
  • Improve RTL support on both the frontend and backend. #2977 #2972
  • Always hide AMP admin menu item and compatibility tool menu items for non-admins role. #3005

Props

Thanks to the many contributors who made this release possible through work on development, design, testing, project management, and more:

Alberto Medina, Birgit Pauli-Haack, Cathi Bosco, Chris Christoff, Claudio Sossi, Daniele Scasciafratte, Dawid Młynarz, Derek Herman, Dhruva Gupta, Felix Arntz, Jackie D'Elia, Jefferson Rabb, Jory Hogeveen, maciejmackowiak, Mackenzie Hartung, Miina Sikk, Mika Epstein, Mike Crantea, PatOnTheBack, Pascal Birchler, Ryan Kienstra, Thierry Muller, Vinay Mahagaokar, Vincent Koc, and Weston Ruter.

To install as a Git submodule, consider 1.2.1-built.