From 2eda4364305155a404d484dd8f3c713d5fd5ea98 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 4 Oct 2016 07:10:31 +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. Built from https://develop.svn.wordpress.org/trunk@38723 git-svn-id: http://core.svn.wordpress.org/trunk@38666 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-edit.php | 4 ++-- wp-admin/user-new.php | 4 ++-- wp-admin/users.php | 6 +++--- wp-admin/widgets.php | 4 ++-- wp-includes/version.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 0e183e71d7..ce86c8b6e6 100644 --- a/wp-admin/user-edit.php +++ b/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/wp-admin/user-new.php b/wp-admin/user-new.php index 10cbdd3a49..38b78dd5af 100644 --- a/wp-admin/user-new.php +++ b/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/wp-admin/users.php b/wp-admin/users.php index e83113386a..bf3799db69 100644 --- a/wp-admin/users.php +++ b/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/wp-admin/widgets.php b/wp-admin/widgets.php index 6919a5d632..e1ae09132f 100644 --- a/wp-admin/widgets.php +++ b/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' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 811af3342a..457ea8e7cb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38722'; +$wp_version = '4.7-alpha-38723'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.