equal
deleted
inserted
replaced
5 * @package WordPress |
5 * @package WordPress |
6 */ |
6 */ |
7 |
7 |
8 /** |
8 /** |
9 * Renders the `core/loginout` block on server. |
9 * Renders the `core/loginout` block on server. |
|
10 * |
|
11 * @since 5.8.0 |
10 * |
12 * |
11 * @param array $attributes The block attributes. |
13 * @param array $attributes The block attributes. |
12 * |
14 * |
13 * @return string Returns the login-out link or form. |
15 * @return string Returns the login-out link or form. |
14 */ |
16 */ |
37 return '<div ' . $wrapper_attributes . '>' . $contents . '</div>'; |
39 return '<div ' . $wrapper_attributes . '>' . $contents . '</div>'; |
38 } |
40 } |
39 |
41 |
40 /** |
42 /** |
41 * Registers the `core/loginout` block on server. |
43 * Registers the `core/loginout` block on server. |
|
44 * |
|
45 * @since 5.8.0 |
42 */ |
46 */ |
43 function register_block_core_loginout() { |
47 function register_block_core_loginout() { |
44 register_block_type_from_metadata( |
48 register_block_type_from_metadata( |
45 __DIR__ . '/loginout', |
49 __DIR__ . '/loginout', |
46 array( |
50 array( |