- Timestamp:
- 04/12/2022 03:10:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/query-pagination-previous.php
r52042 r53157 21 21 $wrapper_attributes = get_block_wrapper_attributes(); 22 22 $default_label = __( 'Previous Page' ); 23 $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label']: $default_label;23 $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? esc_html( $attributes['label'] ) : $default_label; 24 24 $pagination_arrow = get_query_pagination_arrow( $block, false ); 25 25 if ( $pagination_arrow ) { … … 33 33 return $wrapper_attributes; 34 34 }; 35 35 36 add_filter( 'previous_posts_link_attributes', $filter_link_attributes ); 36 37 $content = get_previous_posts_link( $label );
Note: See TracChangeset
for help on using the changeset viewer.