Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46811 r47122  
    2626add_screen_option( 'per_page' );
    2727
    28 // contextual help - choose Help on the top right of admin panel to preview this.
     28// Contextual help - choose Help on the top right of admin panel to preview this.
    2929get_current_screen()->add_help_tab(
    3030    array(
     
    132132                wp_die( __( 'Sorry, you are not allowed to edit this user.' ), 403 );
    133133            }
    134             // The new role of the current user must also have the promote_users cap or be a multisite super admin
     134
     135            // The new role of the current user must also have the promote_users cap or be a multisite super admin.
    135136            if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap( 'promote_users' )
    136137            && ! ( is_multisite() && current_user_can( 'manage_network_users' ) ) ) {
     
    595596        break;
    596597
    597 } // end of the $doaction switch
     598} // End of the $doaction switch.
    598599
    599600include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.