mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 09:07:59 +02:00
Don't show delete link for current user. Props johnbillion. fixes #8416
git-svn-id: http://svn.automattic.com/wordpress/trunk@9955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bd78058d90
commit
b52b176111
@ -1792,7 +1792,8 @@ function user_row( $user_object, $style = '', $role = '' ) {
|
||||
$edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />";
|
||||
$actions = array();
|
||||
$actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
|
||||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>";
|
||||
if ( $current_user->ID != $user_object->ID )
|
||||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>";
|
||||
$action_count = count($actions);
|
||||
$i = 0;
|
||||
$edit .= '<div class="row-actions">';
|
||||
|
Loading…
Reference in New Issue
Block a user