From 567c9bc2a6a84865b4b145f3e913da043cf1352f Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 16 Dec 2010 23:40:46 +0000 Subject: [PATCH] Use wp_dropdown_users() in the delete confirmation screen. Props duck_. See #15854 git-svn-id: http://svn.automattic.com/wordpress/trunk@17010 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/users.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wp-admin/users.php b/wp-admin/users.php index 84c9605cb..4f4311356 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -172,12 +172,6 @@ case 'delete': $go_delete = true; } } - $all_logins = get_users(); - $user_dropdown = ''; ?> @@ -186,7 +180,8 @@ case 'delete':
  • - '.__('Attribute all posts and links to:')." $user_dropdown"; ?>
  • + '.__('Attribute all posts and links to:').''; + wp_dropdown_users( array( 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?>