-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the amp-carousel
script to be used on page when there is just amp-lightbox-gallery
#6509
Allow the amp-carousel
script to be used on page when there is just amp-lightbox-gallery
#6509
Conversation
…p-lightbox-gallery
a2008ae
to
972054a
Compare
Plugin builds for 972054a are ready 🛎️!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…p-lightbox-gallery (#6509)
…image-dimension * 'develop' of github.com:ampproject/amp-wp: Allow the amp-carousel script to be on the page when there is just amp-lightbox-gallery (#6509) Mock HTTP request Supply non-empty body and headers for tests Only unserialize cached response if it is a string Update amp-twitter to use fixed-height layout with a default height matching minimal tweet height Bump eslint from 7.31.0 to 7.32.0 Use OVERFLOW constant Remove unused `use` statements Add overflow buttons to Twitter, Facebook, and Instagram embeds Pin amp-toolbox-php to specific commit in main Update amp-toolbox-php to 98b020d6 Remove unused AmpProject\Dom\Document imports Update references to renamed class constants and remove old deprecated code Update amp-toolbox-php to 0.7.0-alpha (main@a155c37) Update snapshot Use unique IDs for each SVG component instantiation Avoid redirect_extraneous_paired_endpoint from needlessly redirecting Revert "Prevent mutating URL when query var is absent" Prevent mutating URL when query var is absent
…p-lightbox-gallery (ampproject#6509)
QA Passed When adding the following plugin code: add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_script('amp-carousel');
} ); The If no image has the lightbox effect, then the |
Summary
Allow the amp-carousel script as a special case to be on the page when there is no since the
amp-lightbox-gallery component will lazy-load the amp-carousel script when a lightbox is opened, and since
amp-carousel v0.1 is still the 'latest' version, this can mean that fixes needed with the 0.2 version won't
be present on the page. Adding the amp-carousel v0.2 script is a stated workaround suggested in an AMP core
issue: ampproject/amphtml#35402 (comment).
See also #3115 (comment).
Checklist