From b58b416072aa81ce13a6143145587b367f5b3566 Mon Sep 17 00:00:00 2001 From: Tristan Mason Date: Sat, 14 Sep 2019 22:56:22 -0500 Subject: [PATCH] Add wp-image-[ID] class to img tag so WP adds srcset The AB Container block background image did not have a srcset. Adding the class wp-image-[ID] to the img tag triggers WP to add a srcset to the image. For more info see: https://github.com/WordPress/gutenberg/pull/8593 --- src/blocks/block-container/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/block-container/index.js b/src/blocks/block-container/index.js index 36819350..f3fcf84b 100644 --- a/src/blocks/block-container/index.js +++ b/src/blocks/block-container/index.js @@ -229,7 +229,7 @@ registerBlockType( 'atomic-blocks/ab-container', {