From 96b68285581b560296137eb62e5f6f5891efdeea Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sun, 7 Feb 2016 13:25:44 +0000 Subject: [PATCH] Users: Use `self_admin_url()` for the email change confirmation link. Prevents sending users to wp-admin/profile.php if they only have access to wp-admin/user/profile.php. Fixes #35766. git-svn-id: https://develop.svn.wordpress.org/trunk@36503 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/ms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index 02461f2d4a..4eef206ee8 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -309,7 +309,7 @@ All at ###SITENAME### $current_user = wp_get_current_user(); $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); - $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'options.php?adminhash='.$hash ) ), $content ); + $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash='.$hash ) ), $content ); $content = str_replace( '###EMAIL###', $value, $content ); $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); $content = str_replace( '###SITEURL###', network_home_url(), $content );