Changeset 56450
- Timestamp:
- 08/24/2023 04:12:01 PM (16 months ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r56449 r56450 571 571 } 572 572 573 .check-column label {573 .check-column .label-covers-full-cell { 574 574 width: 100%; 575 575 height: 100%; … … 580 580 } 581 581 582 .check-column input {582 .check-column .label-covers-full-cell + input { 583 583 position: relative; 584 584 z-index: 1; 585 585 } 586 586 587 .check-column :hoverinput {587 .check-column .label-covers-full-cell:hover + input { 588 588 box-shadow: 0 0 0 1px #2271b1; 589 589 } -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r56449 r56450 896 896 if ( $this->user_can ) { 897 897 ?> 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; ?>"> 898 <label class="label-covers-full-cell" for="cb-select-<?php echo $comment->comment_ID; ?>"> 900 899 <span class="screen-reader-text"> 901 900 <?php … … 905 904 </span> 906 905 </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 } -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r56449 r56450 175 175 176 176 ?> 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; ?>"> 177 <label class="label-covers-full-cell" for="cb-select-<?php echo $link->link_id; ?>"> 179 178 <span class="screen-reader-text"> 180 179 <?php … … 184 183 </span> 185 184 </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
r56449 r56450 1400 1400 if ( ! empty( $columns['cb'] ) ) { 1401 1401 static $cb_counter = 1; 1402 $columns['cb'] = '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" /> 1403 <label for="cb-select-all-' . $cb_counter . '">' . 1402 $columns['cb'] = '<label class="label-covers-full-cell" for="cb-select-all-' . $cb_counter . '">' . 1404 1403 '<span class="screen-reader-text">' . 1405 1404 /* translators: Hidden accessibility text. */ 1406 1405 __( 'Select All' ) . 1407 1406 '</span>' . 1408 '</label>'; 1407 '</label>' . 1408 '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />'; 1409 1409 $cb_counter++; 1410 1410 } -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r56449 r56450 420 420 if ( current_user_can( 'edit_post', $post->ID ) ) { 421 421 ?> 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; ?>"> 422 <label class="label-covers-full-cell" for="cb-select-<?php echo $post->ID; ?>"> 424 423 <span class="screen-reader-text"> 425 424 <?php … … 429 428 </span> 430 429 </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
r56449 r56450 421 421 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 422 422 ?> 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']; ?>"> 423 <label class="label-covers-full-cell" for="blog_<?php echo $blog['blog_id']; ?>"> 426 424 <span class="screen-reader-text"> 427 425 <?php … … 431 429 </span> 432 430 </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; -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r56449 r56450 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 for="<?php echo $checkbox_id; ?>" > 515 <label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" > 517 516 <span class="screen-reader-text"> 518 517 <?php … … 525 524 </span> 526 525 </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 } -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r56449 r56450 236 236 } 237 237 ?> 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; ?>"> 238 <label class="label-covers-full-cell" for="blog_<?php echo $user->ID; ?>"> 240 239 <span class="screen-reader-text"> 241 240 <?php … … 245 244 </span> 246 245 </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
r56449 r56450 994 994 } else { 995 995 $checkbox = sprintf( 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>',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" />', 998 998 $checkbox_id, 999 999 /* translators: Hidden accessibility text. %s: Plugin name. */ -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r56449 r56450 1034 1034 if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : 1035 1035 ?> 1036 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> 1037 <label for="cb-select-<?php the_ID(); ?>"> 1036 <label class="label-covers-full-cell" for="cb-select-<?php the_ID(); ?>"> 1038 1037 <span class="screen-reader-text"> 1039 1038 <?php … … 1043 1042 </span> 1044 1043 </label> 1044 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> 1045 1045 <div class="locked-indicator"> 1046 1046 <span class="locked-indicator-icon" aria-hidden="true"></span> -
trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php
r56449 r56450 417 417 public function column_cb( $item ) { 418 418 return sprintf( 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>',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 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
r56449 r56450 366 366 if ( current_user_can( 'delete_term', $tag->term_id ) ) { 367 367 return sprintf( 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>',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" />', 370 370 $tag->term_id, 371 371 /* translators: Hidden accessibility text. %s: Taxonomy term name. */ -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r56449 r56450 525 525 // Set up the checkbox (because the user is editable, otherwise it's empty). 526 526 $checkbox = sprintf( 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>',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" />', 529 529 $user_object->ID, 530 530 /* translators: Hidden accessibility text. %s: User login. */ -
trunk/src/wp-admin/update-core.php
r56449 r56450 572 572 <td class="check-column"> 573 573 <?php if ( $compatible_php ) : ?> 574 <label for="<?php echo $checkbox_id; ?>" >574 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell"> 575 575 <span class="screen-reader-text"> 576 576 <?php … … 750 750 <td class="check-column"> 751 751 <?php if ( $compatible_wp && $compatible_php ) : ?> 752 <label for="<?php echo $checkbox_id; ?>" >752 <label for="<?php echo $checkbox_id; ?>" class="label-covers-full-cell"> 753 753 <span class="screen-reader-text"> 754 754 <?php
Note: See TracChangeset
for help on using the changeset viewer.