Changeset 53157 for trunk/src/wp-includes/blocks/post-excerpt.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-excerpt.php
r52434 r53157 25 25 } 26 26 27 $more_text = ! empty( $attributes['moreText'] ) ? '<a class="wp-block-post-excerpt__more-link" href="' . esc_url( get_the_permalink( $block->context['postId'] ) ) . '">' . $attributes['moreText']. '</a>' : '';27 $more_text = ! empty( $attributes['moreText'] ) ? '<a class="wp-block-post-excerpt__more-link" href="' . esc_url( get_the_permalink( $block->context['postId'] ) ) . '">' . wp_kses_post( $attributes['moreText'] ) . '</a>' : ''; 28 28 $filter_excerpt_more = function( $more ) use ( $more_text ) { 29 29 return empty( $more_text ) ? $more : '';
Note: See TracChangeset
for help on using the changeset viewer.