Make WordPress Core


Ignore:
Timestamp:
09/22/2023 07:56:48 PM (3 years 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/update-core.php

    r56600 r56665  
    583583                <td class="check-column">
    584584                        <?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; ?>">
    586587                                        <span class="screen-reader-text">
    587588                                        <?php
    … …  
    591592                                        </span>
    592593                                </label>
    593                                 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" />
    594594                        <?php endif; ?>
    595595                </td>
    … …  
    761761                <td class="check-column">
    762762                        <?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; ?>">
    764765                                        <span class="screen-reader-text">
    765766                                        <?php
    … …  
    769770                                        </span>
    770771                                </label>
    771                                 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" />
    772772                        <?php endif; ?>
    773773                </td>
Note: See TracChangeset for help on using the changeset viewer.