wp core update 6.6

This commit is contained in:
Tony Volpe
2024-07-17 03:05:30 +00:00
parent 8f93917880
commit 4950d23a30
912 changed files with 103325 additions and 124480 deletions

View File

@@ -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(