-
Notifications
You must be signed in to change notification settings - Fork 384
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
Remove deprecated controls from editor sidebar and fix AMP Lightbox and AMP Carousel in Gallery block #6833
Conversation
ampLayout
and ampNoLoading
controls from editor sidebar
Plugin builds for 83f143c are ready 🛎️!
|
…r-amp-settings-panel * 'develop' of github.com:ampproject/amp-wp: Render value as fallback instead of entire parent source object Fix logic inversion for sources.length Ensure `sources` is non-empty array Revert "Ensure error `sources` is never `null`" Ensure error `sources` is never `null` Ensure `sources` is iterated over only if it is non-empty array Fix test to account for gutenberg_render_layout_support_flag() (#6850) Support converting YouTube iframes with 100% width to amp-youtube with fixed-height (#6837) Update Gutenberg package dependencies Update Gutenberg package dependencies Allow composer normalize plugin to run Normalize Composer file Update Composer to use AMP toolbox v0.10.0
…r-amp-settings-panel * 'develop' of github.com:ampproject/amp-wp: (48 commits) Update comments to note where related skip link logic is located Improve nested CSS indentation Use AMP prefix for styles injected by sanitizer Remove needless escaping in DOM context Simplify obtaining main element and body element Ensure Navigation block script is registered to fix tests Add missing test coverage for dequeue_block_navigation_view_script Use function exists check for render_block_core_navigation to determine if test should be skipped Add attribute value escaping for good measure Fix phpcs warnings Add more test cases for skip link Fix indentation Add assertions that no SQL queries run when data deletion is disabled Add test specifically for transient deletion Harden term deletion logic for WP<4.4 Add assertions for term deletion Flesh out tests specifically for post and term deletion Add test specific to delete_user_metadata Add test specifically for the delete_options function Remove deletion of non-option ...
@westonruter Thanks for updating the gallery block sanitizer. I tested it on my local and now the AMP Carousel works as expected with the new Gallery block markup. |
I think this PR is now ready for a final review and merge. @dhaval-parekh – since both @westonruter and myself worked on this branch, can you do a code review? |
@@ -7,6 +7,7 @@ | |||
|
|||
use AmpProject\AmpWP\Embed\HandlesGalleryEmbed; | |||
use AmpProject\Html\Tag; | |||
use AmpProject\Dom\Element; |
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.
Nit, Not a blocker.
This could be above use AmpProject\Html\Tag;
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.
I'm not sure I understand. There is already use AmpProject\Html\Tag
. The use of AmpProject\Dom\Element
is due to this new line:
/** @var Element $gallery_element */ |
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.
Changes look good to me.
…r-amp-settings-panel * 'develop' of github.com:ampproject/amp-wp: (37 commits) Revert "Use different selector in E2E test" Revert "Ensure AMP plugin is activated before running E2E tests" Ensure get_page_cache_detail return value is array Increase verbosity of hasScannableUrls check Ensure AMP plugin is activated before running E2E tests Use different selector in E2E test Improve strings and comments Remove redundant checks for header value being non-empty Refine comments Remove debug code for catching external requests Scope styles for dashicons Simplify logic in get_page_cache_detail Reuse threshold variable Remove erroneous P from wrapping UL Fix label when page caching detected and yet response still slow Add formatting for millisecond values Improve test coverage and simplify conditional Simplify translation string Speed up tests by using usleep() instead of sleep() Only show lack of page caching plugin if no caching response headers present ...
…nd AMP Carousel in Gallery block (#6833)
Summary
Fixes #6508
Fixed #6832
Related #4989
Fixes #6848
Here are the main changes that are introduced by this PR:
ampLayout
andampNoLoading
controls from the block editor sidebar (see: Empty AMP Settings panel for video block #6508 (comment)).Checklist