| @@ -37,11 +37,11 @@ | ||
| 37 | 37 | $justify_class_name = empty( $attributes['justifyContent'] ) ? '' : "is-justified-{$attributes['justifyContent']}"; |
| 38 | 38 | $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $justify_class_name ) ); |
| 39 | 39 | $more_text = ! empty( $attributes['content'] ) ? wp_kses_post( $attributes['content'] ) : __( 'Read more' ); |
| 40 | 40 | return sprintf( |
| 41 | - '<a %1$s href="%2$s" target="%3$s">%4$s<span class="screen-reader-text">%5$s</span></a>', | |
| 41 | + '<a %1s href="%2s" target="%3s">%4s<span class="screen-reader-text">%5s</span></a>', | |
| 42 | 42 | $wrapper_attributes, |
| 43 | - esc_url( get_the_permalink( $post_ID ) ), | |
| 43 | + get_the_permalink( $post_ID ), | |
| 44 | 44 | esc_attr( $attributes['linkTarget'] ), |
| 45 | 45 | $more_text, |
| 46 | 46 | $screen_reader_text |
| 47 | 47 | ); |