diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/blocks/post-title.php | 2 | ||||
-rw-r--r-- | wp-includes/blocks/post-title/block.json | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/wp-includes/blocks/post-title.php b/wp-includes/blocks/post-title.php index 8b0e431..d0eef85 100644 --- a/wp-includes/blocks/post-title.php +++ b/wp-includes/blocks/post-title.php @@ -38,7 +38,7 @@ function render_block_core_post_title( $attributes, $content, $block ) { if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) { $rel = ! empty( $attributes['rel'] ) ? 'rel="' . esc_attr( $attributes['rel'] ) . '"' : ''; - $title = sprintf( '<a href="%1$s" target="%2$s" %3$s>%4$s</a>', get_the_permalink( $block->context['postId'] ), esc_attr( $attributes['linkTarget'] ), $rel, $title ); + $title = sprintf( '<a href="%1$s" target="%2$s" %3$s>%4$s</a>', esc_url( get_the_permalink( $block->context['postId'] ) ), esc_attr( $attributes['linkTarget'] ), $rel, $title ); } $classes = array(); diff --git a/wp-includes/blocks/post-title/block.json b/wp-includes/blocks/post-title/block.json index eda5332..b56adec 100644 --- a/wp-includes/blocks/post-title/block.json +++ b/wp-includes/blocks/post-title/block.json @@ -55,10 +55,11 @@ "__experimentalTextDecoration": true, "__experimentalLetterSpacing": true, "__experimentalDefaultControls": { - "fontSize": true, - "fontAppearance": true, - "textTransform": true + "fontSize": true } + }, + "interactivity": { + "clientNavigation": true } }, "style": "wp-block-post-title" |