Changeset 53157 for trunk/src/wp-includes/blocks/post-title.php
- Timestamp:
- 04/12/2022 03:10:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-title.php
r52434 r53157 35 35 36 36 if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) { 37 $title = sprintf( '<a href="%1$s" target="%2$s" rel="%3$s">%4$s</a>', get_the_permalink( $post_ID ), $attributes['linkTarget'], $attributes['rel'], $title );37 $title = sprintf( '<a href="%1$s" target="%2$s" rel="%3$s">%4$s</a>', get_the_permalink( $post_ID ), esc_attr( $attributes['linkTarget'] ), esc_attr( $attributes['rel'] ), $title ); 38 38 } 39 39 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
Note: See TracChangeset
for help on using the changeset viewer.