Changeset 57377 for trunk/src/wp-includes/blocks/post-title.php
- Timestamp:
- 01/29/2024 09:04:18 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-title.php
r56298 r57377 39 39 if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) { 40 40 $rel = ! empty( $attributes['rel'] ) ? 'rel="' . esc_attr( $attributes['rel'] ) . '"' : ''; 41 $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 );41 $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 ); 42 42 } 43 43
Note: See TracChangeset
for help on using the changeset viewer.