Make WordPress Core


Ignore:
Timestamp:
11/21/2014 04:24:23 PM (9 years ago)
Author:
helen
Message:

Sessions UI: Ensure screen readers provide feedback on action taken.

Also fixes some invalid HTML that occurs on DOM changes.

props joedolson.
fixes #30364.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r30334 r30504  
    491491    <tr class="user-sessions-wrap hide-if-no-js">
    492492        <th>&nbsp;</th>
    493         <td>
    494             <p><button class="button button-secondary" id="destroy-sessions" data-token="<?php echo esc_attr( wp_get_session_token() ); ?>"><?php _e( 'Log Out of All Other Sessions' ); ?></button></p>
     493        <td aria-live="assertive">
     494            <div class="destroy-sessions"><button class="button button-secondary" id="destroy-sessions" data-token="<?php echo esc_attr( wp_get_session_token() ); ?>"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
    495495            <p class="description">
    496496                <?php _e( 'Left your account logged in at a public computer? Lost your phone? This will log you out everywhere except your current browser.' ); ?>
Note: See TracChangeset for help on using the changeset viewer.