equal
deleted
inserted
replaced
33 return $title; |
33 return $title; |
34 } |
34 } |
35 |
35 |
36 /** |
36 /** |
37 * Renders the `core/latest-comments` block on server. |
37 * Renders the `core/latest-comments` block on server. |
|
38 * |
|
39 * @since 5.1.0 |
38 * |
40 * |
39 * @param array $attributes The block attributes. |
41 * @param array $attributes The block attributes. |
40 * |
42 * |
41 * @return string Returns the post content with latest comments added. |
43 * @return string Returns the post content with latest comments added. |
42 */ |
44 */ |
143 ); |
145 ); |
144 } |
146 } |
145 |
147 |
146 /** |
148 /** |
147 * Registers the `core/latest-comments` block. |
149 * Registers the `core/latest-comments` block. |
|
150 * |
|
151 * @since 5.3.0 |
148 */ |
152 */ |
149 function register_block_core_latest_comments() { |
153 function register_block_core_latest_comments() { |
150 register_block_type_from_metadata( |
154 register_block_type_from_metadata( |
151 __DIR__ . '/latest-comments', |
155 __DIR__ . '/latest-comments', |
152 array( |
156 array( |