Changeset 55954
- Timestamp:
- 06/21/2023 01:52:16 AM (17 months ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r54871 r55954 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; -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r55749 r55954 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; ?>" /> -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r55911 r55954 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 ); ?>" /> -
trunk/src/wp-admin/includes/class-wp-list-table.php
r55911 r55954 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" />'; -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r55949 r55954 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; ?>" /> -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r55911 r55954 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[]" -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r55732 r55954 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( … … 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 } -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r55732 r55954 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 ); ?>" /> -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r55903 r55954 983 983 } else { 984 984 $checkbox = sprintf( 985 '<label class=" screen-reader-text" for="%1$s">%2$s</label>' .985 '<label class="label-covers-full-cell" for="%1$s"><span class="screen-reader-text">%2$s</span></label>' . 986 986 '<input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />', 987 987 $checkbox_id, -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r55911 r55954 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(); ?>" /> -
trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php
r55911 r55954 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 -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r55732 r55954 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, -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r55911 r55954 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, -
trunk/src/wp-admin/update-core.php
r55917 r55954 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> … … 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>
Note: See TracChangeset
for help on using the changeset viewer.