Ticket #33082: 33082.01.patch
File 33082.01.patch, 3.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/user-edit.php
462 462 <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th> 463 463 <td> 464 464 <input class="hidden" value=" " /><!-- #24364 workaround --> 465 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Generate new password' ); ?></button>465 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Generate Password' ); ?></button> 466 466 <div class="wp-pwd hide-if-js"> 467 467 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" /> 468 468 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> … … 494 494 <?php 495 495 if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?> 496 496 <tr class="user-sessions-wrap hide-if-no-js"> 497 <th> </th>497 <th><?php _e( 'Sessions' ); ?></th> 498 498 <td aria-live="assertive"> 499 <div class="destroy-sessions"><button type="button" disabled class="button button-secondary"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>499 <div class="destroy-sessions"><button type="button" disabled class="button button-secondary"><?php _e( 'Log Out Everywhere' ); ?></button></div> 500 500 <p class="description"> 501 501 <?php _e( 'You are only logged in at this location.' ); ?> 502 502 </p> … … 504 504 </tr> 505 505 <?php elseif ( IS_PROFILE_PAGE && count( $sessions->get_all() ) > 1 ) : ?> 506 506 <tr class="user-sessions-wrap hide-if-no-js"> 507 <th> </th>507 <th><?php _e( 'Sessions' ); ?></th> 508 508 <td aria-live="assertive"> 509 <div class="destroy-sessions"><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>509 <div class="destroy-sessions"><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out Everywhere' ); ?></button></div> 510 510 <p class="description"> 511 <?php _e( ' Left your account logged in at a public computer? Lost your phone? This will log you out everywhere except your current browser.' ); ?>511 <?php _e( 'Did you lose your phone or leave your account logged in at a public computer? You can log out everywhere else, and stay logged in here.' ); ?> 512 512 </p> 513 513 </td> 514 514 </tr> 515 515 <?php elseif ( ! IS_PROFILE_PAGE && $sessions->get_all() ) : ?> 516 516 <tr class="user-sessions-wrap hide-if-no-js"> 517 <th> </th>517 <th><?php _e( 'Sessions' ); ?></th> 518 518 <td> 519 <p><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Sessions' ); ?></button></p>519 <p><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out Everywhere' ); ?></button></p> 520 520 <p class="description"> 521 521 <?php 522 522 /* translators: 1: User's display name. */ 523 printf( __( 'Log %s out of all sessions' ), $profileuser->display_name );523 printf( __( 'Log %s out of all locations.' ), $profileuser->display_name ); 524 524 ?> 525 525 </p> 526 526 </td>