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/code-highlight/render.php +1 -9 2.1.6 → 2.1.8 View file →
@@ -1,16 +1,8 @@
1 1 <?php
2 -/**
3 - * Code Highlight block server-side render.
4 - *
5 - * Emits only an empty wrapper carrying the block attributes as JSON. The markup
6 - * is rendered on the client by view.js from the same shared component the editor
7 - * uses, matching the b-blocks convention (see image-hotspot / infographic).
8 - *
9 - * @package bBlocks
10 - */
11 2
12 3 $prefix = 'b-blocks-code-highlight';
4 +$attributes = BBlocks\Inc\Sanitize::attributes( $attributes );
13 5 $id = empty( $attributes['blockId'] ) ? wp_unique_id( "$prefix-" ) : "$prefix-" . $attributes['blockId'];
14 6
15 7 $planClass = BBlocks\Inc\Utils::isPro() ? 'pro' : 'free';
16 8