From 050d2d9a255f7da2b54b3d3b33c3d6a1d2e25489 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 4 Oct 2016 07:09:12 +0000 Subject: [PATCH] Accessibility: Remove target=_blank from the Users and Widgets screens help tabs links. Stop taking control of users' browsers. Props rianrietveld. Fixes #38217. See #23432. git-svn-id: https://develop.svn.wordpress.org/trunk@38723 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-edit.php | 4 ++-- src/wp-admin/user-new.php | 4 ++-- src/wp-admin/users.php | 6 +++--- src/wp-admin/widgets.php | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 0e183e71d7..ce86c8b6e6 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -51,8 +51,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on User Profiles') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on User Profiles') . '

' . + '

' . __('Support Forums') . '

' ); $wp_http_referer = remove_query_arg( array( 'update', 'delete_count', 'user_id' ), $wp_http_referer ); diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php index 10cbdd3a49..38b78dd5af 100644 --- a/src/wp-admin/user-new.php +++ b/src/wp-admin/user-new.php @@ -203,8 +203,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Adding New Users') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Adding New Users') . '

' . + '

' . __('Support Forums') . '

' ); wp_enqueue_script('wp-ajax-response'); diff --git a/src/wp-admin/users.php b/src/wp-admin/users.php index e83113386a..bf3799db69 100644 --- a/src/wp-admin/users.php +++ b/src/wp-admin/users.php @@ -64,9 +64,9 @@ unset( $help ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Managing Users') . '

' . - '

' . __('Descriptions of Roles and Capabilities') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Managing Users') . '

' . + '

' . __('Descriptions of Roles and Capabilities') . '

' . + '

' . __('Support Forums') . '

' ); get_current_screen()->set_screen_reader_content( array( diff --git a/src/wp-admin/widgets.php b/src/wp-admin/widgets.php index 6919a5d632..e1ae09132f 100644 --- a/src/wp-admin/widgets.php +++ b/src/wp-admin/widgets.php @@ -71,8 +71,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Widgets') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Widgets') . '

' . + '

' . __('Support Forums') . '

' ); if ( ! current_theme_supports( 'widgets' ) ) {