Ticket #13074: list-users.2.diff
| File list-users.2.diff, 1.4 KB (added by , 16 years ago) |
|---|
-
wp-admin/includes/template.php
1812 1812 $short_url = substr( $short_url, 0, 32 ).'...'; 1813 1813 $checkbox = ''; 1814 1814 // Check if the user for this row is editable 1815 if ( current_user_can( 'list_users' , $user_object->ID) ) {1815 if ( current_user_can( 'list_users' ) ) { 1816 1816 // Set up the user editing link 1817 1817 // TODO: make profile/user-edit determination a separate function 1818 1818 if ($current_user->ID == $user_object->ID) { … … 1825 1825 // Set up the hover actions for this user 1826 1826 $actions = array(); 1827 1827 1828 if ( current_user_can('edit_user', $user_object->ID) ) 1828 if ( current_user_can('edit_user', $user_object->ID) ) { 1829 $edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />"; 1829 1830 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 1831 } else { 1832 $edit = "<strong>$user_object->user_login</strong><br />"; 1833 } 1834 1830 1835 if ( !is_multisite() && $current_user->ID != $user_object->ID && current_user_can('delete_user', $user_object->ID) ) 1831 1836 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>"; 1832 1837 if ( is_multisite() && $current_user->ID != $user_object->ID && current_user_can('remove_user', $user_object->ID) )