diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index b2800d2f51..b8631d17a2 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -773,7 +773,9 @@ class WP_List_Table { } printf( - "%s\n", + "" . + "%s" . + "\n", esc_url( remove_query_arg( 'attachment-filter', add_query_arg( 'mode', $mode ) ) ), implode( ' ', $classes ), $title @@ -819,20 +821,27 @@ class WP_List_Table { if ( ! $approved_comments && ! $pending_comments ) { // No comments at all. printf( - '%s', + '' . + '%s', __( 'No comments' ) ); } elseif ( $approved_comments && 'trash' === get_post_status( $post_id ) ) { // Don't link the comment bubble for a trashed post. printf( - '%s', + '' . + '' . + '%s' . + '', $approved_comments_number, $pending_comments ? $approved_phrase : $approved_only_phrase ); } elseif ( $approved_comments ) { // Link the comment bubble to approved comments. printf( - '%s', + '' . + '' . + '%s' . + '', esc_url( add_query_arg( array( @@ -848,7 +857,10 @@ class WP_List_Table { } else { // Don't link the comment bubble when there are no approved comments. printf( - '%s', + '' . + '' . + '%s' . + '', $approved_comments_number, $pending_comments ? /* translators: Hidden accessibility text. */ @@ -860,7 +872,10 @@ class WP_List_Table { if ( $pending_comments ) { printf( - '%s', + '' . + '' . + '%s' . + '', esc_url( add_query_arg( array( @@ -875,7 +890,10 @@ class WP_List_Table { ); } else { printf( - '%s', + '' . + '' . + '%s' . + '', $pending_comments_number, $approved_comments ? /* translators: Hidden accessibility text. */ @@ -1004,7 +1022,10 @@ class WP_List_Table { $page_links[] = ''; } else { $page_links[] = sprintf( - "%s", + "" . + "%s" . + "" . + '', esc_url( remove_query_arg( 'paged', $current_url ) ), /* translators: Hidden accessibility text. */ __( 'First page' ), @@ -1016,7 +1037,10 @@ class WP_List_Table { $page_links[] = ''; } else { $page_links[] = sprintf( - "%s", + "" . + "%s" . + "" . + '', esc_url( add_query_arg( 'paged', max( 1, $current - 1 ), $current_url ) ), /* translators: Hidden accessibility text. */ __( 'Previous page' ), @@ -1026,23 +1050,29 @@ class WP_List_Table { if ( 'bottom' === $which ) { $html_current_page = $current; - $total_pages_before = '' . + $total_pages_before = sprintf( + '%s' . + '' . + '', /* translators: Hidden accessibility text. */ - __( 'Current Page' ) . - ''; + __( 'Current Page' ) + ); } else { $html_current_page = sprintf( - "%s", - '', + '' . + "" . + "", + /* translators: Hidden accessibility text. */ + __( 'Current Page' ), $current, strlen( $total_pages ) ); } + $html_total_pages = sprintf( "%s", number_format_i18n( $total_pages ) ); - $page_links[] = $total_pages_before . sprintf( + + $page_links[] = $total_pages_before . sprintf( /* translators: 1: Current page, 2: Total pages. */ _x( '%1$s of %2$s', 'paging' ), $html_current_page, @@ -1053,7 +1083,10 @@ class WP_List_Table { $page_links[] = ''; } else { $page_links[] = sprintf( - "%s", + "" . + "%s" . + "" . + '', esc_url( add_query_arg( 'paged', min( $total_pages, $current + 1 ), $current_url ) ), /* translators: Hidden accessibility text. */ __( 'Next page' ), @@ -1065,7 +1098,10 @@ class WP_List_Table { $page_links[] = ''; } else { $page_links[] = sprintf( - "%s", + "" . + "%s" . + "" . + '', esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), /* translators: Hidden accessibility text. */ __( 'Last page' ), @@ -1421,8 +1457,21 @@ class WP_List_Table { } // Print an 'abbr' attribute if a value is provided via get_sortable_columns(). - $abbr_attr = $abbr ? ' abbr="' . esc_attr( $abbr ) . '"' : ''; - $column_display_name = '' . $column_display_name . '' . $order_text . ''; + $abbr_attr = $abbr ? ' abbr="' . esc_attr( $abbr ) . '"' : ''; + + $column_display_name = sprintf( + '' . + '%2$s' . + '' . + '' . + '' . + '' . + '%3$s' . + '', + esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ), + $column_display_name, + $order_text + ); } $tag = ( 'cb' === $column_key ) ? 'td' : 'th'; diff --git a/wp-includes/version.php b/wp-includes/version.php index a53addbfd6..bb24e1c370 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta4-56260'; +$wp_version = '6.3-beta4-56261'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.