| @@ -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(); ?> |