From 43edd17097a1ae8a50d78d32b8dd21e2c618acf6 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 31 Dec 2014 17:32:39 +0000 Subject: [PATCH] Set the type attribute of the buttons for logging out of all sessions to buttons By not setting this attribute, the buttons default to submit and as the first submit button on the page, it causes pressing the enter key to log you out of all sessions. This change restores the pre 4.1 behavior where pressing enter while focused on a form field submits the form. props ocean90 fixes #30871 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@31010 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index e97dfc5836..fb614cbd43 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -489,7 +489,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?>   -
+

@@ -499,7 +499,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?>   -
+

@@ -509,7 +509,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?>   -

+