PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
← All changes | build/article-card/render.php +1 -13 2.1.6 → 2.1.8 View file →
@@ -1,19 +1,7 @@
1 1 <?php
2 -/**
3 - * Article Card block server-side render.
4 - *
5 - * Following the bplugins convention (see image-hotspot), the server only emits
6 - * an empty wrapper carrying the block attributes as JSON. React hydrates the
7 - * card on the frontend via view.js.
8 - *
9 - * @package bBlocks
10 - *
11 - * @var array $attributes Block attributes.
12 - * @var WP_Block $block Block instance.
13 - */
14 -
15 2 $id = wp_unique_id( 'article-card-' );
3 +$attributes = BBlocks\Inc\Sanitize::attributes( $attributes );
16 4 ?>
17 5 <div
18 6 <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?>
19 7 <?php echo get_block_wrapper_attributes(); ?>