Make WordPress Core


Ignore:
Timestamp:
09/22/2023 07:56:48 PM (21 months ago)
Author:
joedolson
Message:

Administration: Switch order of label/checkbox in WP_List_Table.

Move the label after the checkbox in WP_List_Table instances. Resolve a false positive that will be presented by automated accessibility testing tools. Follow up to [55954].

Props dimitrism, joedolson, sabernhardt, oglekler, marybaum, tobiasbg.
Fixes #58703.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r56586 r56665  
    236236        }
    237237        ?>
    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; ?>">
    239240            <span class="screen-reader-text">
    240241            <?php
     
    244245            </span>
    245246        </label>
    246         <input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" />
    247247        <?php
    248248    }
Note: See TracChangeset for help on using the changeset viewer.