Changeset 56665
- Timestamp:
- 09/22/2023 07:56:48 PM (20 months ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r56450 r56665 571 571 } 572 572 573 .check-column .label-covers-full-cell { 573 .check-column label { 574 box-sizing: border-box; 574 575 width: 100%; 575 576 height: 100%; … … 580 581 } 581 582 582 .check-column .label-covers-full-cell +input {583 .check-column input { 583 584 position: relative; 584 585 z-index: 1; 585 586 } 586 587 587 .check-column .label-covers-full-cell:hover + input { 588 .check-column input:where(:not(:disabled)):hover, 589 .check-column:hover input:where(:not(:disabled)) { 588 590 box-shadow: 0 0 0 1px #2271b1; 591 } 592 593 .check-column label:hover, 594 .check-column input:hover + label { 595 background: rgba(0, 0, 0, 0.05); 589 596 } 590 597 -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r56586 r56665 897 897 if ( $this->user_can ) { 898 898 ?> 899 <label class="label-covers-full-cell" for="cb-select-<?php echo $comment->comment_ID; ?>"> 899 <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /> 900 <label for="cb-select-<?php echo $comment->comment_ID; ?>"> 900 901 <span class="screen-reader-text"> 901 902 <?php … … 905 906 </span> 906 907 </label> 907 <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />908 908 <?php 909 909 } -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r56586 r56665 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 … … 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 } -
trunk/src/wp-admin/includes/class-wp-list-table.php
r56549 r56665 1404 1404 if ( ! empty( $columns['cb'] ) ) { 1405 1405 static $cb_counter = 1; 1406 $columns['cb'] = '<label class="label-covers-full-cell" for="cb-select-all-' . $cb_counter . '">' . 1406 $columns['cb'] = '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" /> 1407 <label for="cb-select-all-' . $cb_counter . '">' . 1407 1408 '<span class="screen-reader-text">' . 1408 1409 /* translators: Hidden accessibility text. */ 1409 1410 __( 'Select All' ) . 1410 1411 '</span>' . 1411 '</label>' . 1412 '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />'; 1412 '</label>'; 1413 1413 ++$cb_counter; 1414 1414 } -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r56586 r56665 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 … … 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 } -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r56586 r56665 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[]" value="<?php echo esc_attr( $blog['blog_id'] ); ?>" /> 424 <label for="blog_<?php echo $blog['blog_id']; ?>"> 424 425 <span class="screen-reader-text"> 425 426 <?php … … 429 430 </span> 430 431 </label> 431 <input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]"432 value="<?php echo esc_attr( $blog['blog_id'] ); ?>" />433 432 <?php 434 433 endif; -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r56586 r56665 514 514 $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); 515 515 ?> 516 <label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" > 516 <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" /> 517 <label for="<?php echo $checkbox_id; ?>" > 517 518 <span class="screen-reader-text"> 518 519 <?php … … 525 526 </span> 526 527 </label> 527 <input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />528 528 <?php 529 529 } -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r56586 r56665 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 … … 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 } -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r56599 r56665 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="%1$s" id="%2$s" />' . 997 '<label for="%2$s"><span class="screen-reader-text">%3$s</span></label>', 998 esc_attr( $plugin_file ), 998 999 $checkbox_id, 999 1000 /* translators: Hidden accessibility text. %s: Plugin name. */ 1000 sprintf( __( 'Select %s' ), $plugin_data['Name'] ), 1001 esc_attr( $plugin_file ) 1001 sprintf( __( 'Select %s' ), $plugin_data['Name'] ) 1002 1002 ); 1003 1003 } -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r56611 r56665 1035 1035 if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : 1036 1036 ?> 1037 <label class="label-covers-full-cell" for="cb-select-<?php the_ID(); ?>"> 1037 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> 1038 <label for="cb-select-<?php the_ID(); ?>"> 1038 1039 <span class="screen-reader-text"> 1039 1040 <?php … … 1043 1044 </span> 1044 1045 </label> 1045 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" />1046 1046 <div class="locked-indicator"> 1047 1047 <span class="locked-indicator-icon" aria-hidden="true"></span> -
trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php
r56549 r56665 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" />' . 420 '<label for="requester_%1$s"><span class="screen-reader-text">%2$s</span></label><span class="spinner"></span>', 421 421 esc_attr( $item->ID ), 422 422 /* translators: Hidden accessibility text. %s: Email address. */ -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r56631 r56665 365 365 if ( current_user_can( 'delete_term', $tag->term_id ) ) { 366 366 return sprintf( 367 '< label class="label-covers-full-cell" for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>' .368 '< input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />',367 '<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />' . 368 '<label for="cb-select-%1$s"><span class="screen-reader-text">%2$s</span></label>', 369 369 $tag->term_id, 370 370 /* translators: Hidden accessibility text. %s: Taxonomy term name. */ -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r56547 r56665 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="%2$s" value="%1$s" />' . 528 '<label for="user_%1$s"><span class="screen-reader-text">%3$s</span></label>', 529 529 $user_object->ID, 530 $role_classes, 530 531 /* translators: Hidden accessibility text. %s: User login. */ 531 sprintf( __( 'Select %s' ), $user_object->user_login ), 532 $role_classes 532 sprintf( __( 'Select %s' ), $user_object->user_login ) 533 533 ); 534 534 -
trunk/src/wp-admin/update-core.php
r56600 r56665 583 583 <td class="check-column"> 584 584 <?php if ( $compatible_php ) : ?> 585 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell"> 585 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" /> 586 <label for="<?php echo $checkbox_id; ?>"> 586 587 <span class="screen-reader-text"> 587 588 <?php … … 591 592 </span> 592 593 </label> 593 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" />594 594 <?php endif; ?> 595 595 </td> … … 761 761 <td class="check-column"> 762 762 <?php if ( $compatible_wp && $compatible_php ) : ?> 763 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell"> 763 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" /> 764 <label for="<?php echo $checkbox_id; ?>"> 764 765 <span class="screen-reader-text"> 765 766 <?php … … 769 770 </span> 770 771 </label> 771 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" />772 772 <?php endif; ?> 773 773 </td>
Note: See TracChangeset
for help on using the changeset viewer.