diff --git a/assets/css/amp-default.css b/assets/css/amp-default.css index 1779a20aff8..77e7e909268 100644 --- a/assets/css/amp-default.css +++ b/assets/css/amp-default.css @@ -14,7 +14,7 @@ amp-fit-text h6 { font-size: inherit; } -#amp-image-lightbox-1 img { +#amp-image-lightbox .i-amphtml-image-lightbox-viewer-image { object-fit: contain; } diff --git a/includes/sanitizers/class-amp-base-sanitizer.php b/includes/sanitizers/class-amp-base-sanitizer.php index d339d2382a2..4e186e4ce8c 100644 --- a/includes/sanitizers/class-amp-base-sanitizer.php +++ b/includes/sanitizers/class-amp-base-sanitizer.php @@ -26,7 +26,7 @@ abstract class AMP_Base_Sanitizer { * * @const string */ - const AMP_IMAGE_LIGHTBOX_ID = 'amp-image-lightbox-1'; + const AMP_IMAGE_LIGHTBOX_ID = 'amp-image-lightbox'; /** * Placeholder for default args, to be set in child classes. diff --git a/tests/test-class-amp-gallery-block-sanitizer.php b/tests/test-class-amp-gallery-block-sanitizer.php index b5c461113ed..611ef71d41b 100644 --- a/tests/test-class-amp-gallery-block-sanitizer.php +++ b/tests/test-class-amp-gallery-block-sanitizer.php @@ -39,12 +39,12 @@ public function get_data() { 'data_amp_with_lightbox' => array( '