diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
index cf0c05c2ab..47194a5b7e 100644
--- a/src/wp-admin/includes/class-wp-list-table.php
+++ b/src/wp-admin/includes/class-wp-list-table.php
@@ -631,12 +631,15 @@ class WP_List_Table {
modes as $mode => $title ) {
- $classes = array( 'view-' . $mode );
+ $classes = array( 'view-' . $mode );
+ $aria_current = '';
+
if ( $current_mode === $mode ) {
- $classes[] = 'current';
+ $classes[] = 'current';
+ $aria_current = ' aria-current="page"';
}
printf(
- "
%s\n",
+ "
%s\n",
esc_url( add_query_arg( 'mode', $mode ) ),
implode( ' ', $classes ),
$title
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 978772d732..9c86bb47ca 100644
--- a/src/wp-includes/media-template.php
+++ b/src/wp-includes/media-template.php
@@ -318,7 +318,7 @@ function wp_print_media_templates() {
-
+