Changeset 58187 for trunk/src/wp-includes/blocks/post-title.php
- Timestamp:
- 05/23/2024 07:37:08 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-title.php
r57377 r58187 34 34 $tag_name = 'h2'; 35 35 if ( isset( $attributes['level'] ) ) { 36 $tag_name = 'h' .$attributes['level'];36 $tag_name = 0 === $attributes['level'] ? 'p' : 'h' . (int) $attributes['level']; 37 37 } 38 38 … … 61 61 /** 62 62 * Registers the `core/post-title` block on the server. 63 * 64 * @since 5.8.0 63 65 */ 64 66 function register_block_core_post_title() {
Note: See TracChangeset
for help on using the changeset viewer.