Changeset 14176 for trunk/wp-admin/includes/template.php
- Timestamp:
- 04/21/2010 05:43:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r14168 r14176 1824 1824 1825 1825 // Set up the hover actions for this user 1826 $del_cap_type = 'remove';1827 if ( !is_multisite() && current_user_can('delete_users') )1828 $del_cap_type = 'delete';1829 1830 1826 $actions = array(); 1831 1827 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 1832 if ( $current_user->ID != $user_object->ID && current_user_can( $del_cap_type . '_user', $user_object->ID) )1828 if ( !is_multisite() && $current_user->ID != $user_object->ID && current_user_can('delete_user', $user_object->ID) ) 1833 1829 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>"; 1830 if ( is_multisite() && $current_user->ID != $user_object->ID && current_user_can('remove_user', $user_object->ID) ) 1831 $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=remove&user=$user_object->ID", 'bulk-users') . "'>" . __('Remove') . "</a>"; 1834 1832 $actions = apply_filters('user_row_actions', $actions, $user_object); 1835 1833 $action_count = count($actions);
Note: See TracChangeset
for help on using the changeset viewer.