Ticket #21516: 21516.3.diff
File 21516.3.diff, 12.4 KB (added by , 19 months ago) |
---|
-
src/wp-admin/css/list-tables.css
552 552 content: "\f142"; 553 553 } 554 554 555 .check-column { 556 position: relative; 557 } 558 559 .check-column .label-covers-full-cell { 560 width: 100%; 561 height: 100%; 562 display: block; 563 position: absolute; 564 top: 0; 565 left: 0; 566 } 567 568 .check-column .label-covers-full-cell input { 569 position: relative; 570 z-index: 1; 571 } 572 573 .check-column .label-covers-full-cell:hover + input { 574 box-shadow: 0 0 0 1px #2271b1; 575 } 576 555 577 .locked-indicator { 556 578 display: none; 557 579 margin-left: 6px; -
src/wp-admin/includes/class-wp-comments-list-table.php
884 884 885 885 if ( $this->user_can ) { 886 886 ?> 887 <label class="screen-reader-text" for="cb-select-<?php echo $comment->comment_ID; ?>"> 887 <label class="label-covers-full-cell" for="cb-select-<?php echo $comment->comment_ID; ?>"> 888 <span class="screen-reader-text"> 888 889 <?php 889 890 /* translators: Hidden accessibility text. */ 890 891 _e( 'Select comment' ); 891 892 ?> 893 </span> 892 894 </label> 893 895 <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /> 894 896 <?php -
src/wp-admin/includes/class-wp-links-list-table.php
174 174 $link = $item; 175 175 176 176 ?> 177 <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"> 177 <label class="label-covers-full-cell" for="cb-select-<?php echo $link->link_id; ?>"> 178 <span class="screen-reader-text"> 178 179 <?php 179 180 /* translators: Hidden accessibility text. %s: Link name. */ 180 181 printf( __( 'Select %s' ), $link->link_name ); 181 182 ?> 183 </span> 182 184 </label> 183 185 <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" /> 184 186 <?php -
src/wp-admin/includes/class-wp-list-table.php
1306 1306 1307 1307 if ( ! empty( $columns['cb'] ) ) { 1308 1308 static $cb_counter = 1; 1309 $columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . 1309 $columns['cb'] = '<label class="label-covers-full-cell" for="cb-select-all-' . $cb_counter . '">' . 1310 '<span class="screen-reader-text">' . 1310 1311 /* translators: Hidden accessibility text. */ 1311 1312 __( 'Select All' ) . 1313 '</span>' . 1312 1314 '</label>' . 1313 1315 '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />'; 1314 1316 $cb_counter++; -
src/wp-admin/includes/class-wp-media-list-table.php
411 411 412 412 if ( current_user_can( 'edit_post', $post->ID ) ) { 413 413 ?> 414 <label class="screen-reader-text" for="cb-select-<?php echo $post->ID; ?>"> 414 <label class="label-covers-full-cell" for="cb-select-<?php echo $post->ID; ?>"> 415 <span class="screen-reader-text"> 415 416 <?php 416 417 /* translators: Hidden accessibility text. %s: Attachment title. */ 417 418 printf( __( 'Select %s' ), _draft_or_post_title() ); 418 419 ?> 420 </span> 419 421 </label> 420 422 <input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" /> 421 423 <?php -
src/wp-admin/includes/class-wp-ms-sites-list-table.php
411 411 if ( ! is_main_site( $blog['blog_id'] ) ) : 412 412 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 413 413 ?> 414 <label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>"> 414 <label class="label-covers-full-cell" for="blog_<?php echo $blog['blog_id']; ?>"> 415 <span class="screen-reader-text"> 415 416 <?php 416 417 /* translators: %s: Site URL. */ 417 418 printf( __( 'Select %s' ), $blogname ); 418 419 ?> 420 </span> 419 421 </label> 420 422 <input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]" 421 423 value="<?php echo esc_attr( $blog['blog_id'] ); ?>" /> -
src/wp-admin/includes/class-wp-ms-themes-list-table.php
512 512 $theme = $item; 513 513 $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); 514 514 ?> 515 < input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />516 <label class="screen-reader-text" for="<?php echo $checkbox_id; ?>">515 <label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" > 516 <span class="screen-reader-text"> 517 517 <?php 518 518 printf( 519 519 /* translators: Hidden accessibility text. %s: Theme name */ … … 521 521 $theme->display( 'Name' ) 522 522 ); 523 523 ?> 524 </span> 524 525 </label> 526 <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" /> 525 527 <?php 526 528 } 527 529 -
src/wp-admin/includes/class-wp-ms-users-list-table.php
235 235 return; 236 236 } 237 237 ?> 238 <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"> 238 <label class="label-covers-full-cell" for="blog_<?php echo $user->ID; ?>"> 239 <span class="screen-reader-text"> 239 240 <?php 240 241 /* translators: Hidden accessibility text. %s: User login. */ 241 242 printf( __( 'Select %s' ), $user->user_login ); 242 243 ?> 244 </span> 243 245 </label> 244 246 <input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" /> 245 247 <?php -
src/wp-admin/includes/class-wp-plugins-list-table.php
983 983 $checkbox = ''; 984 984 } else { 985 985 $checkbox = sprintf( 986 '<label class=" screen-reader-text" for="%1$s">%2$s</label>' .986 '<label class="label-covers-full-cell" for="%1$s"><span class="screen-reader-text">%2$s</span></label>' . 987 987 '<input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />', 988 988 $checkbox_id, 989 989 /* translators: Hidden accessibility text. %s: Plugin name. */ -
src/wp-admin/includes/class-wp-posts-list-table.php
1012 1012 */ 1013 1013 if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : 1014 1014 ?> 1015 <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"> 1015 <label class="label-covers-full-cell" for="cb-select-<?php the_ID(); ?>"> 1016 <span class="screen-reader-text"> 1016 1017 <?php 1017 1018 /* translators: %s: Post title. */ 1018 1019 printf( __( 'Select %s' ), _draft_or_post_title() ); 1019 1020 ?> 1021 </span> 1020 1022 </label> 1021 1023 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> 1022 1024 <div class="locked-indicator"> -
src/wp-admin/includes/class-wp-privacy-requests-table.php
415 415 * @return string Checkbox column markup. 416 416 */ 417 417 public function column_cb( $item ) { 418 return sprintf( '<input type="checkbox" name="request_id[]" value="%1$s" /><span class="spinner"></span>', esc_attr( $item->ID ) ); 418 return sprintf( 419 '<label class="label-covers-full-cell" for="requester_%1$s"><span class="screen-reader-text">%2$s</span></label>' . 420 '<input type="checkbox" name="request_id[]" id="requester_%1$s" value="%1$s" /><span class="spinner"></span>', 421 esc_attr( $item->ID ), 422 /* translators: Hidden accessibility text. %s: Email address. */ 423 sprintf( __( 'Select %s' ), $item->email ) 424 ); 419 425 } 420 426 421 427 /** -
src/wp-admin/includes/class-wp-terms-list-table.php
357 357 358 358 if ( current_user_can( 'delete_term', $tag->term_id ) ) { 359 359 return sprintf( 360 '<label class=" screen-reader-text" for="cb-select-%1$s">%2$s</label>' .360 '<label class="label-covers-full-cell" for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>' . 361 361 '<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />', 362 362 $tag->term_id, 363 363 /* translators: Hidden accessibility text. %s: Taxonomy term name. */ -
src/wp-admin/includes/class-wp-users-list-table.php
523 523 524 524 // Set up the checkbox (because the user is editable, otherwise it's empty). 525 525 $checkbox = sprintf( 526 '<label class=" screen-reader-text" for="user_%1$s">%2$s</label>' .526 '<label class="label-covers-full-cell" for="user_%1$s"><span class="screen-reader-text">%2$s</span></label>' . 527 527 '<input type="checkbox" name="users[]" id="user_%1$s" class="%3$s" value="%1$s" />', 528 528 $user_object->ID, 529 529 /* translators: Hidden accessibility text. %s: User login. */ -
src/wp-admin/update-core.php
571 571 <tr> 572 572 <td class="check-column"> 573 573 <?php if ( $compatible_php ) : ?> 574 < input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" />575 <label for="<?php echo $checkbox_id; ?>"class="screen-reader-text">574 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell"> 575 <span class="screen-reader-text"> 576 576 <?php 577 577 /* translators: Hidden accessibility text. %s: Plugin name. */ 578 578 printf( __( 'Select %s' ), $plugin_data->Name ); 579 579 ?> 580 </span> 580 581 </label> 582 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" /> 581 583 <?php endif; ?> 582 584 </td> 583 585 <td class="plugin-title"><p> … … 745 747 <tr> 746 748 <td class="check-column"> 747 749 <?php if ( $compatible_wp && $compatible_php ) : ?> 748 < input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" />749 <label for="<?php echo $checkbox_id; ?>"class="screen-reader-text">750 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell"> 751 <span class="screen-reader-text"> 750 752 <?php 751 753 /* translators: Hidden accessibility text. %s: Theme name. */ 752 754 printf( __( 'Select %s' ), $theme->display( 'Name' ) ); 753 755 ?> 756 </span> 754 757 </label> 758 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" /> 755 759 <?php endif; ?> 756 760 </td> 757 761 <td class="plugin-title"><p>