Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
aria-label updated
  • Loading branch information
tirth-doshi-techno committed Sep 27, 2024
commit fc6f8aba96d915dfa45b907aba2664cc6f7abafb
4 changes: 3 additions & 1 deletion src/wp-includes/link-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2949,14 +2949,16 @@ function get_the_posts_pagination( $args = array() ) {
$args['aria_label'] = $args['screen_reader_text'];
}

$post_type_name = get_queried_object()->labels->name;

$args = wp_parse_args(
$args,
array(
'mid_size' => 1,
'prev_text' => _x( 'Previous', 'previous set of posts' ),
'next_text' => _x( 'Next', 'next set of posts' ),
'screen_reader_text' => __( 'Posts navigation' ),
'aria_label' => __( 'Posts' ),
'aria_label' => __( $post_type_name . ' pagination' ),
'class' => 'pagination',
)
);
Expand Down