diff --git a/packages/block-library/src/post-date/index.php b/packages/block-library/src/post-date/index.php index 3a856e65d79786..5c92c46aa60d49 100644 --- a/packages/block-library/src/post-date/index.php +++ b/packages/block-library/src/post-date/index.php @@ -84,7 +84,7 @@ function render_block_core_post_date( $attributes, $content, $block ) { $time_tag = sprintf( '', $unformatted_date, $formatted_date ); if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $block->context['postId'] ) ) { - $time_tag = sprintf( '%2s', esc_url( get_the_permalink( $block->context['postId'] ) ), $time_tag ); + $time_tag = sprintf( '%2$s', esc_url( get_the_permalink( $block->context['postId'] ) ), $time_tag ); } return sprintf( '
%2$s
', $wrapper_attributes, $time_tag ); diff --git a/packages/block-library/src/read-more/index.php b/packages/block-library/src/read-more/index.php index 74311e9c5d7b30..bf14f8ea242e89 100644 --- a/packages/block-library/src/read-more/index.php +++ b/packages/block-library/src/read-more/index.php @@ -38,7 +38,7 @@ function render_block_core_read_more( $attributes, $content, $block ) { $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $justify_class_name ) ); $more_text = ! empty( $attributes['content'] ) ? wp_kses_post( $attributes['content'] ) : __( 'Read more' ); return sprintf( - '%4s%5s', + '%4$s%5$s', $wrapper_attributes, esc_url( get_the_permalink( $post_ID ) ), esc_attr( $attributes['linkTarget'] ),