Skip to content

2.1.3

Compare
Choose a tag to compare
@westonruter westonruter released this 01 Jul 17:49
· 103 commits to 2.1 since this release
6f1d2c2

This 2.1.3 release follows up on 2.1.2 from 6 weeks ago. The key improvements in this release revolve around the Optimizer, paired URL routing, frontend/backend error handling, support for new AMP components, and compatibility with WordPress 5.8.

For the full list of issues and pull requests in this release, please see the 2.1.3 milestone with 6 closed issues and 18 merged pull requests. See full diff of changes.

Changelog

Optimizer

  • Update hero image handling to remove max count. Now when there is a custom logo, header image, and featured image they can all be prerendered in order to reduce LCP. Previously only the first two would only ever be prerendered. (#6435)
  • Ensure site icon in legacy template is identified as a hero image. (#6403)
  • Update amp-toolbox-php to v0.6.0. This includes SSR support for fluid layout, disabling link[rel=modulepreload] on SSR'ed pages (to improve performance), improves handling of resource hints, among other changes.
  • Ensure first entry content in DetermineHeroImages matches .amp-wp-article-content in legacy Reader templates. (#6440)

Routing

  • Fix construction of comment page URLs when a path suffix is used in the paired URL structure. (#6355, #6389)
  • Indicate what entity(s) are blocking the use of the path suffix and legacy reader paired URL structures. (#6339, #6374, #6396)

Error Handling

  • Update error page to support fatal errors (in PHP 7+). (#6421)
  • Add JS error handling to Settings page and Onboarding Wizard, including error screens for dependency load failures and JavaScript being disabled. (#6230, #6320)

Validation

  • Update amphtml spec to 2106240350000. Newly supported components include amp-render, amp-iframely, and amp-stream-gallery. (#6303, #6425)
  • Update means of determining Bento support for components. (#6373)

WordPress 5.8 Compatibility

  • Add data-ampdevmode attribute to regenerator-runtime script when enqueuing Paired Browsing scripts. This fixes a validation issue on WordPress 5.8. (#6416, #6419)
  • Fix test_get_mu_plugins_data for WP 5.8. (#6434)
  • Fix test_amp_get_schemaorg_metadata and test_wrap_widget_callbacks in Gutenberg v10.8 and WP 5.8. (#6366)

Misc

  • Update class name used to display a pending state when retrieving validation counts, preventing conflicts with other plugins that use the same class name. (#6398)
  • Fix incorrect usage of mysql2date() to generate datePublished and dateModified in Schema.org metadata, causing bug in time offsets. (#6316, #6318)
  • Fix incorrect use of _n() in /src/admin/site-health.php. (#6305, #6306)
  • Update codecov GitHub Action. (#6397)

Props

Alain Schlesser (@schlessera), Alberto Medina (@amedina), Dhaval Parekh (@dhaval-parekh), Evan Mattson (@aaemnnosttv), Francesco (@DrLightman), Joshua Wold (@jwold), Pascal Birchler (@swissspidy), Pierre Gordon (@pierlon), Piotr Delawski (@delawski), Tor-Björn Fjellner (@tobifjellner), 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.1.3-built.