WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2014 03:53:52 PM (5 years ago)
Author:
ocean90
Message:

Improvements to [30333]:

  • Move .hide-if-no-js class to table row
  • Add a wrapper class
  • Add missing translators comment

see #30264.

File:
1 edited

Legend:

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

    r30333 r30334  
    489489
    490490<?php if ( IS_PROFILE_PAGE && ( count( $sessions->get_all() ) > 1 ) ) { ?>
    491     <tr>
     491    <tr class="user-sessions-wrap hide-if-no-js">
    492492        <th>&nbsp;</th>
    493493        <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">
    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>
     
    499499    </tr>
    500500<?php } else if ( ! IS_PROFILE_PAGE && ( count( $sessions->get_all() ) > 0 ) ) { ?>
    501     <tr>
     501    <tr class="user-sessions-wrap hide-if-no-js">
    502502        <th>&nbsp;</th>
    503503        <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                ?>
    507510            </p>
    508511        </td>
Note: See TracChangeset for help on using the changeset viewer.