Ticket #58703: 58703.diff
File 58703.diff, 12.7 KB (added by , 16 months ago) |
---|
-
src/wp-admin/css/list-tables.css
570 570 position: relative; 571 571 } 572 572 573 .check-column .label-covers-full-cell {573 .check-column label { 574 574 width: 100%; 575 575 height: 100%; 576 576 display: block; … … 579 579 left: 0; 580 580 } 581 581 582 .check-column .label-covers-full-cell +input {582 .check-column input { 583 583 position: relative; 584 584 z-index: 1; 585 585 } 586 586 587 .check-column .label-covers-full-cell:hover +input {587 .check-column:hover input { 588 588 box-shadow: 0 0 0 1px #2271b1; 589 589 } 590 590 -
src/wp-admin/includes/class-wp-comments-list-table.php
895 895 896 896 if ( $this->user_can ) { 897 897 ?> 898 <label class="label-covers-full-cell" for="cb-select-<?php echo $comment->comment_ID; ?>"> 898 <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /> 899 <label for="cb-select-<?php echo $comment->comment_ID; ?>"> 899 900 <span class="screen-reader-text"> 900 901 <?php 901 902 /* translators: Hidden accessibility text. */ … … 903 904 ?> 904 905 </span> 905 906 </label> 906 <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />907 907 <?php 908 908 } 909 909 } -
src/wp-admin/includes/class-wp-links-list-table.php
174 174 $link = $item; 175 175 176 176 ?> 177 <label class="label-covers-full-cell" for="cb-select-<?php echo $link->link_id; ?>"> 177 <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" /> 178 <label for="cb-select-<?php echo $link->link_id; ?>"> 178 179 <span class="screen-reader-text"> 179 180 <?php 180 181 /* translators: Hidden accessibility text. %s: Link name. */ … … 182 183 ?> 183 184 </span> 184 185 </label> 185 <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" />186 186 <?php 187 187 } 188 188 -
src/wp-admin/includes/class-wp-list-table.php
1334 1334 1335 1335 if ( ! empty( $columns['cb'] ) ) { 1336 1336 static $cb_counter = 1; 1337 $columns['cb'] = '<label class="label-covers-full-cell" for="cb-select-all-' . $cb_counter . '">' . 1337 $columns['cb'] = '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" /> 1338 <label for="cb-select-all-' . $cb_counter . '">' . 1338 1339 '<span class="screen-reader-text">' . 1339 1340 /* translators: Hidden accessibility text. */ 1340 1341 __( 'Select All' ) . 1341 1342 '</span>' . 1342 '</label>' . 1343 '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />'; 1343 '</label>'; 1344 1344 $cb_counter++; 1345 1345 } 1346 1346 -
src/wp-admin/includes/class-wp-media-list-table.php
419 419 420 420 if ( current_user_can( 'edit_post', $post->ID ) ) { 421 421 ?> 422 <label class="label-covers-full-cell" for="cb-select-<?php echo $post->ID; ?>"> 422 <input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" /> 423 <label for="cb-select-<?php echo $post->ID; ?>"> 423 424 <span class="screen-reader-text"> 424 425 <?php 425 426 /* translators: Hidden accessibility text. %s: Attachment title. */ … … 427 428 ?> 428 429 </span> 429 430 </label> 430 <input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" />431 431 <?php 432 432 } 433 433 } -
src/wp-admin/includes/class-wp-ms-sites-list-table.php
420 420 if ( ! is_main_site( $blog['blog_id'] ) ) : 421 421 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 422 422 ?> 423 <label class="label-covers-full-cell" for="blog_<?php echo $blog['blog_id']; ?>"> 423 <input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]" 424 value="<?php echo esc_attr( $blog['blog_id'] ); ?>" /> 425 <label for="blog_<?php echo $blog['blog_id']; ?>"> 424 426 <span class="screen-reader-text"> 425 427 <?php 426 428 /* translators: %s: Site URL. */ … … 428 430 ?> 429 431 </span> 430 432 </label> 431 <input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]"432 value="<?php echo esc_attr( $blog['blog_id'] ); ?>" />433 433 <?php 434 434 endif; 435 435 } -
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 <label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" > 515 <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" /> 516 <label for="<?php echo $checkbox_id; ?>" > 516 517 <span class="screen-reader-text"> 517 518 <?php 518 519 printf( … … 523 524 ?> 524 525 </span> 525 526 </label> 526 <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />527 527 <?php 528 528 } 529 529 -
src/wp-admin/includes/class-wp-ms-users-list-table.php
235 235 return; 236 236 } 237 237 ?> 238 <label class="label-covers-full-cell" for="blog_<?php echo $user->ID; ?>"> 238 <input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" /> 239 <label for="blog_<?php echo $user->ID; ?>"> 239 240 <span class="screen-reader-text"> 240 241 <?php 241 242 /* translators: Hidden accessibility text. %s: User login. */ … … 243 244 ?> 244 245 </span> 245 246 </label> 246 <input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" />247 247 <?php 248 248 } 249 249 -
src/wp-admin/includes/class-wp-plugins-list-table.php
993 993 $checkbox = ''; 994 994 } else { 995 995 $checkbox = sprintf( 996 '< label class="label-covers-full-cell" for="%1$s"><span class="screen-reader-text">%2$s</span></label>' .997 '< input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />',996 '<input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />' . 997 '<label for="%1$s"><span class="screen-reader-text">%2$s</span></label>', 998 998 $checkbox_id, 999 999 /* translators: Hidden accessibility text. %s: Plugin name. */ 1000 1000 sprintf( __( 'Select %s' ), $plugin_data['Name'] ), -
src/wp-admin/includes/class-wp-posts-list-table.php
1028 1028 */ 1029 1029 if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : 1030 1030 ?> 1031 <label class="label-covers-full-cell" for="cb-select-<?php the_ID(); ?>"> 1031 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> 1032 <label for="cb-select-<?php the_ID(); ?>"> 1032 1033 <span class="screen-reader-text"> 1033 1034 <?php 1034 1035 /* translators: %s: Post title. */ … … 1036 1037 ?> 1037 1038 </span> 1038 1039 </label> 1039 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" />1040 1040 <div class="locked-indicator"> 1041 1041 <span class="locked-indicator-icon" aria-hidden="true"></span> 1042 1042 <span class="screen-reader-text"> -
src/wp-admin/includes/class-wp-privacy-requests-table.php
416 416 */ 417 417 public function column_cb( $item ) { 418 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>',419 '<input type="checkbox" name="request_id[]" id="requester_%1$s" value="%1$s" /><span class="spinner"></span>' . 420 '<label for="requester_%1$s"><span class="screen-reader-text">%2$s</span></label>', 421 421 esc_attr( $item->ID ), 422 422 /* translators: Hidden accessibility text. %s: Email address. */ 423 423 sprintf( __( 'Select %s' ), $item->email ) -
src/wp-admin/includes/class-wp-terms-list-table.php
365 365 366 366 if ( current_user_can( 'delete_term', $tag->term_id ) ) { 367 367 return sprintf( 368 '< label class="label-covers-full-cell" for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>' .369 '< input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />',368 '<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />' . 369 '<label for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>', 370 370 $tag->term_id, 371 371 /* translators: Hidden accessibility text. %s: Taxonomy term name. */ 372 372 sprintf( __( 'Select %s' ), $tag->name ) -
src/wp-admin/includes/class-wp-users-list-table.php
524 524 525 525 // Set up the checkbox (because the user is editable, otherwise it's empty). 526 526 $checkbox = sprintf( 527 '< label class="label-covers-full-cell" for="user_%1$s"><span class="screen-reader-text">%2$s</span></label>' .528 '< input type="checkbox" name="users[]" id="user_%1$s" class="%3$s" value="%1$s" />',527 '<input type="checkbox" name="users[]" id="user_%1$s" class="%3$s" value="%1$s" />' . 528 '<label for="user_%1$s"><span class="screen-reader-text">%2$s</span></label>', 529 529 $user_object->ID, 530 530 /* translators: Hidden accessibility text. %s: User login. */ 531 531 sprintf( __( 'Select %s' ), $user_object->user_login ), -
src/wp-admin/update-core.php
571 571 <tr> 572 572 <td class="check-column"> 573 573 <?php if ( $compatible_php ) : ?> 574 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell">574 <label for="<?php echo $checkbox_id; ?>"> 575 575 <span class="screen-reader-text"> 576 576 <?php 577 577 /* translators: Hidden accessibility text. %s: Plugin name. */ … … 749 749 <tr> 750 750 <td class="check-column"> 751 751 <?php if ( $compatible_wp && $compatible_php ) : ?> 752 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell">752 <label for="<?php echo $checkbox_id; ?>"> 753 753 <span class="screen-reader-text"> 754 754 <?php 755 755 /* translators: Hidden accessibility text. %s: Theme name. */