PluginProbe
Gutenberg / 14.5.2
Gutenberg v14.5.2
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/block-library/blocks/image.php +1 -1 12.6.0 → 14.5.2 View file →
@@ -19,9 +19,9 @@
19 19 // to provide backwards compatibility for the Gallery Block,
20 20 // which now wraps Image Blocks within innerBlocks.
21 21 // The data-id attribute is added in a core/gallery `render_block_data` hook.
22 22 $data_id_attribute = 'data-id="' . esc_attr( $attributes['data-id'] ) . '"';
23 - if ( false === strpos( $content, $data_id_attribute ) ) {
23 + if ( ! str_contains( $content, $data_id_attribute ) ) {
24 24 $content = str_replace( '<img', '<img ' . $data_id_attribute . ' ', $content );
25 25 }
26 26 }
27 27 return $content;