equal
deleted
inserted
replaced
5 * @package WordPress |
5 * @package WordPress |
6 */ |
6 */ |
7 |
7 |
8 /** |
8 /** |
9 * Performs wpautop() on the shortcode block content. |
9 * Performs wpautop() on the shortcode block content. |
|
10 * |
|
11 * @since 5.0.0 |
10 * |
12 * |
11 * @param array $attributes The block attributes. |
13 * @param array $attributes The block attributes. |
12 * @param string $content The block content. |
14 * @param string $content The block content. |
13 * |
15 * |
14 * @return string Returns the block content. |
16 * @return string Returns the block content. |
17 return wpautop( $content ); |
19 return wpautop( $content ); |
18 } |
20 } |
19 |
21 |
20 /** |
22 /** |
21 * Registers the `core/shortcode` block on server. |
23 * Registers the `core/shortcode` block on server. |
|
24 * |
|
25 * @since 5.0.0 |
22 */ |
26 */ |
23 function register_block_core_shortcode() { |
27 function register_block_core_shortcode() { |
24 register_block_type_from_metadata( |
28 register_block_type_from_metadata( |
25 __DIR__ . '/shortcode', |
29 __DIR__ . '/shortcode', |
26 array( |
30 array( |