WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:40:16 AM (23 months ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.2.1.

This upgrade fixes quite a few false positives, as well as auto-fixing some indenting issues.

Fixes #45956.

File:
1 edited

Legend:

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

    r44565 r44574  
    229229        <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
    230230                <?php
    231 }
     231    }
    232232        }
    233233        ?>
     
    305305            <?php
    306306endif; // $_wp_admin_css_colors
    307 if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) :
    308     ?>
     307        if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) :
     308            ?>
    309309<tr class="user-comment-shortcuts-wrap">
    310310<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
    311311<td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked( 'true', $profileuser->comment_shortcuts ); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation.' ); ?></label> <?php _e( '<a href="https://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>' ); ?></td>
    312312</tr>
    313 <?php endif; ?>
     313        <?php endif; ?>
    314314<tr class="show-admin-bar user-admin-bar-front-wrap">
    315315<th scope="row"><?php _e( 'Toolbar' ); ?></th>
     
    415415endif; //!IS_PROFILE_PAGE
    416416
    417 if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && ! isset( $super_admins ) ) {
    418     ?>
     417        if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && ! isset( $super_admins ) ) {
     418            ?>
    419419<tr class="user-super-admin-wrap"><th><?php _e( 'Super Admin' ); ?></th>
    420420<td>
    421     <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
     421            <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
    422422<p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p>
    423423<?php else : ?>
     
    425425<?php endif; ?>
    426426</td></tr>
    427 <?php } ?>
     427        <?php } ?>
    428428
    429429<tr class="user-first-name-wrap">
Note: See TracChangeset for help on using the changeset viewer.