From c35126e1b9670b556fa11faabeeb9aa40656f447 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 9 Oct 2020 15:51:34 +0000 Subject: [PATCH] Accessibility: Widgets: Add a "Cancel" link when editing a widget in accessibility mode. This allows the user to go back without saving any changes to the widget. Props garrett-eclipse, audrasjb, afercia. Fixes #49354. git-svn-id: https://develop.svn.wordpress.org/trunk@49113 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/widgets.php | 3 +-- src/wp-admin/widgets.php | 34 +++++++++++++++++-------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/wp-admin/includes/widgets.php b/src/wp-admin/includes/widgets.php index a74896cc54..ac98cdb527 100644 --- a/src/wp-admin/includes/widgets.php +++ b/src/wp-admin/includes/widgets.php @@ -294,8 +294,7 @@ function wp_widget_control( $sidebar_args ) {
- | - + |
diff --git a/src/wp-admin/widgets.php b/src/wp-admin/widgets.php index 9667126b15..ef9c8737eb 100644 --- a/src/wp-admin/widgets.php +++ b/src/wp-admin/widgets.php @@ -346,22 +346,26 @@ if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) {
- - - - - - - -
+
+ + + + | + + + + +
+
+ + + + + +
+
+