Changeset 30334
- Timestamp:
- 11/13/2014 03:53:52 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/user-profile.js
r30333 r30334 125 125 }); 126 126 127 $( '#destroy-sessions').on('click',function(e){127 $( '#destroy-sessions' ).on( 'click', function( e ) { 128 128 129 129 var $this = $(this); … … 147 147 148 148 e.preventDefault(); 149 150 149 }); 151 150 -
trunk/src/wp-admin/user-edit.php
r30333 r30334 489 489 490 490 <?php if ( IS_PROFILE_PAGE && ( count( $sessions->get_all() ) > 1 ) ) { ?> 491 <tr >491 <tr class="user-sessions-wrap hide-if-no-js"> 492 492 <th> </th> 493 493 <td> 494 <p><button class="button button-secondary hide-if-no-js" id="destroy-sessions" data-token="<?php echo esc_attr( wp_get_session_token() ); ?>"><?php _e( 'Log Out of All Other Sessions' ); ?></button></p>495 <p class="description hide-if-no-js">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> 495 <p class="description"> 496 496 <?php _e( 'Left your account logged in at a public computer? Lost your phone? This will log you out everywhere except your current browser.' ); ?> 497 497 </p> … … 499 499 </tr> 500 500 <?php } else if ( ! IS_PROFILE_PAGE && ( count( $sessions->get_all() ) > 0 ) ) { ?> 501 <tr >501 <tr class="user-sessions-wrap hide-if-no-js"> 502 502 <th> </th> 503 503 <td> 504 <p><button class="button button-secondary hide-if-no-js" id="destroy-sessions"><?php _e( 'Log Out of All Sessions' ); ?></button></p> 505 <p class="description hide-if-no-js"> 506 <?php printf( __( 'Log %s out of all sessions' ), $profileuser->display_name ); ?> 504 <p><button class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Sessions' ); ?></button></p> 505 <p class="description"> 506 <?php 507 /* translators: 1: User's display name. */ 508 printf( __( 'Log %s out of all sessions' ), $profileuser->display_name ); 509 ?> 507 510 </p> 508 511 </td>
Note: See TracChangeset
for help on using the changeset viewer.