wp core update 6.6
This commit is contained in:
@@ -33,7 +33,7 @@ function render_block_core_post_title( $attributes, $content, $block ) {
|
||||
|
||||
$tag_name = 'h2';
|
||||
if ( isset( $attributes['level'] ) ) {
|
||||
$tag_name = 'h' . $attributes['level'];
|
||||
$tag_name = 0 === $attributes['level'] ? 'p' : 'h' . (int) $attributes['level'];
|
||||
}
|
||||
|
||||
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) {
|
||||
@@ -60,6 +60,8 @@ function render_block_core_post_title( $attributes, $content, $block ) {
|
||||
|
||||
/**
|
||||
* Registers the `core/post-title` block on the server.
|
||||
*
|
||||
* @since 5.8.0
|
||||
*/
|
||||
function register_block_core_post_title() {
|
||||
register_block_type_from_metadata(
|
||||
|
||||
Reference in New Issue
Block a user