PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 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 All 404 releases
← All changes | lib/block-supports/elements.php +6 -6 23.7.0 → 24.1.0 View file →
@@ -9,10 +9,10 @@
9 9 * Update the block content with elements class names.
10 10 *
11 11 * @deprecated 6.6.0 Use `gutenberg_render_elements_class_name` instead.
12 12 *
13 - * @param string $block_content Rendered block content.
14 - * @return string Filtered block content.
13 + * @param string $block_content Rendered block content.
14 + * @return string Filtered block content.
15 15 */
16 16 function gutenberg_render_elements_support( $block_content ) {
17 17 _deprecated_function( __FUNCTION__, '6.6.0', 'gutenberg_render_elements_class_name' );
18 18 return $block_content;
@@ -20,12 +20,12 @@
20 20
21 21 /**
22 22 * Determines whether an elements class name should be added to the block.
23 23 *
24 - * @param array $block Block object.
25 - * @param array $options Per element type options e.g. whether to skip serialization.
24 + * @param array $block Block object.
25 + * @param array $options Per element type options e.g. whether to skip serialization.
26 26 *
27 - * @return boolean Whether the block needs an elements class name.
27 + * @return boolean Whether the block needs an elements class name.
28 28 */
29 29 function gutenberg_should_add_elements_class_name( $block, $options ) {
30 30 if ( ! isset( $block['attrs']['style']['elements'] ) ) {
31 31 return false;
@@ -233,9 +233,9 @@
233 233 * @see gutenberg_render_elements_support_styles
234 234 *
235 235 * @param string $block_content Rendered block content.
236 236 * @param array $block Block object.
237 - * @return string Filtered block content.
237 + * @return string Filtered block content.
238 238 *
239 239 * @phpstan-param array{
240 240 * attrs: array{
241 241 * className?: string,