WordPress.org

Make WordPress Core

Ticket #30871: 30871.patch

File 30871.patch, 1.8 KB (added by ocean90, 5 years ago)
  • src/wp-admin/user-edit.php

     
    489489        <tr class="user-sessions-wrap hide-if-no-js">
    490490                <th>&nbsp;</th>
    491491                <td aria-live="assertive">
    492                         <div class="destroy-sessions"><button disabled class="button button-secondary"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
     492                        <div class="destroy-sessions"><button type="button" disabled class="button button-secondary"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
    493493                        <p class="description">
    494494                                <?php _e( 'You are only logged in at this location.' ); ?>
    495495                        </p>
     
    499499        <tr class="user-sessions-wrap hide-if-no-js">
    500500                <th>&nbsp;</th>
    501501                <td aria-live="assertive">
    502                         <div class="destroy-sessions"><button class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
     502                        <div class="destroy-sessions"><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
    503503                        <p class="description">
    504504                                <?php _e( 'Left your account logged in at a public computer? Lost your phone? This will log you out everywhere except your current browser.' ); ?>
    505505                        </p>
     
    509509        <tr class="user-sessions-wrap hide-if-no-js">
    510510                <th>&nbsp;</th>
    511511                <td>
    512                         <p><button class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Sessions' ); ?></button></p>
     512                        <p><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Sessions' ); ?></button></p>
    513513                        <p class="description">
    514514                                <?php
    515515                                /* translators: 1: User's display name. */