Make WordPress Core

Ticket #30364: 30364.patch

File 30364.patch, 994 bytes (added by joedolson, 10 years ago)

Fix HTML validation & aria-live announcement

  • wp-admin/user-edit.php

     
    490490<?php if ( IS_PROFILE_PAGE && ( count( $sessions->get_all() ) > 1 ) ) { ?>
    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.' ); ?>
    497497                        </p>