Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-01-29 00:43:23 +00:00
parent bd2cd572aa
commit cfc3b57488
810 changed files with 9893 additions and 8384 deletions
+4 -3
View File
@@ -25,7 +25,7 @@ $parent_file = 'users.php';
add_screen_option( 'per_page' );
// contextual help - choose Help on the top right of admin panel to preview this.
// Contextual help - choose Help on the top right of admin panel to preview this.
get_current_screen()->add_help_tab(
array(
'id' => 'overview',
@@ -131,7 +131,8 @@ switch ( $wp_list_table->current_action() ) {
if ( ! current_user_can( 'promote_user', $id ) ) {
wp_die( __( 'Sorry, you are not allowed to edit this user.' ), 403 );
}
// The new role of the current user must also have the promote_users cap or be a multisite super admin
// The new role of the current user must also have the promote_users cap or be a multisite super admin.
if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap( 'promote_users' )
&& ! ( is_multisite() && current_user_can( 'manage_network_users' ) ) ) {
$update = 'err_admin_role';
@@ -594,6 +595,6 @@ if ( strlen( $usersearch ) ) {
<?php
break;
} // end of the $doaction switch
} // End of the $doaction switch.
include( ABSPATH . 'wp-admin/admin-footer.php' );