Changeset 14191
- Timestamp:
- 04/22/2010 10:53:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r14189 r14191 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 … … 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>";
Note: See TracChangeset
for help on using the changeset viewer.