From b33b5d1a28c2e40b806a8c8c0841e4e6b12e5546 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 26 Feb 2017 22:19:48 +0000 Subject: [PATCH] Mail: Ensure entities in the site title are decoded when used in the body of the new user email. Props ajoah Fixes #39446 git-svn-id: https://develop.svn.wordpress.org/trunk@40127 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php index d962717a0d..479745fe10 100644 --- a/src/wp-admin/includes/user.php +++ b/src/wp-admin/includes/user.php @@ -535,5 +535,5 @@ If you do not want to join this site please ignore this email. This invitation will expire in a few days. Please click the following link to activate your user account: -%%s' ), get_bloginfo( 'name' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ) ); +%%s' ), wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ) ); }