Changeset 55276 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 02/07/2023 05:08:26 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r54378 r55276 561 561 } 562 562 563 echo '<label for="bulk-action-selector-' . esc_attr( $which ) . '" class="screen-reader-text">' . __( 'Select bulk action' ) . '</label>'; 563 echo '<label for="bulk-action-selector-' . esc_attr( $which ) . '" class="screen-reader-text">' . 564 /* translators: Hidden accessibility text. */ 565 __( 'Select bulk action' ) . 566 '</label>'; 564 567 echo '<select name="action' . $two . '" id="bulk-action-selector-' . esc_attr( $which ) . "\">\n"; 565 568 echo '<option value="-1">' . __( 'Bulk actions' ) . "</option>\n"; … … 643 646 $output .= '</div>'; 644 647 645 $output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>'; 648 $output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . 649 /* translators: Hidden accessibility text. */ 650 __( 'Show more details' ) . 651 '</span></button>'; 646 652 647 653 return $output; … … 847 853 '<span class="post-com-count post-com-count-no-comments"><span class="comment-count comment-count-no-comments" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>', 848 854 $approved_comments_number, 849 $pending_comments ? __( 'No approved comments' ) : __( 'No comments' ) 855 $pending_comments ? 856 /* translators: Hidden accessibility text. */ 857 __( 'No approved comments' ) : 858 /* translators: Hidden accessibility text. */ 859 __( 'No comments' ) 850 860 ); 851 861 } … … 870 880 '<span class="post-com-count post-com-count-pending post-com-count-no-pending"><span class="comment-count comment-count-no-pending" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>', 871 881 $pending_comments_number, 872 $approved_comments ? __( 'No pending comments' ) : __( 'No comments' ) 882 $approved_comments ? 883 /* translators: Hidden accessibility text. */ 884 __( 'No pending comments' ) : 885 /* translators: Hidden accessibility text. */ 886 __( 'No comments' ) 873 887 ); 874 888 } … … 995 1009 "<a class='first-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 996 1010 esc_url( remove_query_arg( 'paged', $current_url ) ), 1011 /* translators: Hidden accessibility text. */ 997 1012 __( 'First page' ), 998 1013 '«' … … 1006 1021 "<a class='prev-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 1007 1022 esc_url( add_query_arg( 'paged', max( 1, $current - 1 ), $current_url ) ), 1023 /* translators: Hidden accessibility text. */ 1008 1024 __( 'Previous page' ), 1009 1025 '‹' … … 1013 1029 if ( 'bottom' === $which ) { 1014 1030 $html_current_page = $current; 1015 $total_pages_before = '<span class="screen-reader-text">' . __( 'Current Page' ) . '</span><span id="table-paging" class="paging-input"><span class="tablenav-paging-text">'; 1031 $total_pages_before = '<span class="screen-reader-text">' . 1032 /* translators: Hidden accessibility text. */ 1033 __( 'Current Page' ) . 1034 '</span><span id="table-paging" class="paging-input"><span class="tablenav-paging-text">'; 1016 1035 } else { 1017 1036 $html_current_page = sprintf( 1018 1037 "%s<input class='current-page' id='current-page-selector' type='text' name='paged' value='%s' size='%d' aria-describedby='table-paging' /><span class='tablenav-paging-text'>", 1019 '<label for="current-page-selector" class="screen-reader-text">' . __( 'Current Page' ) . '</label>', 1038 '<label for="current-page-selector" class="screen-reader-text">' . 1039 /* translators: Hidden accessibility text. */ 1040 __( 'Current Page' ) . 1041 '</label>', 1020 1042 $current, 1021 1043 strlen( $total_pages ) … … 1036 1058 "<a class='next-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 1037 1059 esc_url( add_query_arg( 'paged', min( $total_pages, $current + 1 ), $current_url ) ), 1060 /* translators: Hidden accessibility text. */ 1038 1061 __( 'Next page' ), 1039 1062 '›' … … 1047 1070 "<a class='last-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 1048 1071 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 1072 /* translators: Hidden accessibility text. */ 1049 1073 __( 'Last page' ), 1050 1074 '»' … … 1283 1307 if ( ! empty( $columns['cb'] ) ) { 1284 1308 static $cb_counter = 1; 1285 $columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . __( 'Select All' ) . '</label>' 1286 . '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />'; 1309 $columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . 1310 /* translators: Hidden accessibility text. */ 1311 __( 'Select All' ) . 1312 '</label>' . 1313 '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />'; 1287 1314 $cb_counter++; 1288 1315 } … … 1549 1576 */ 1550 1577 protected function handle_row_actions( $item, $column_name, $primary ) { 1551 return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : ''; 1578 return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . 1579 /* translators: Hidden accessibility text. */ 1580 __( 'Show more details' ) . 1581 '</span></button>' : ''; 1552 1582 } 1553 1583
Note: See TracChangeset
for help on using the changeset viewer.