diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/blocks/query-pagination-previous.php --- a/wp/wp-includes/blocks/query-pagination-previous.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/blocks/query-pagination-previous.php Tue Sep 27 16:37:53 2022 +0200 @@ -19,15 +19,20 @@ $page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ]; $wrapper_attributes = get_block_wrapper_attributes(); - $default_label = __( '« Previous Page' ); - $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label; - $content = ''; + $default_label = __( 'Previous Page' ); + $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? esc_html( $attributes['label'] ) : $default_label; + $pagination_arrow = get_query_pagination_arrow( $block, false ); + if ( $pagination_arrow ) { + $label = $pagination_arrow . $label; + } + $content = ''; // Check if the pagination is for Query that inherits the global context // and handle appropriately. if ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] ) { $filter_link_attributes = function() use ( $wrapper_attributes ) { return $wrapper_attributes; }; + add_filter( 'previous_posts_link_attributes', $filter_link_attributes ); $content = get_previous_posts_link( $label ); remove_filter( 'previous_posts_link_attributes', $filter_link_attributes );