From 9f6f615dd6f57736642e15c5a2970804da929469 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 7 Dec 2013 01:14:43 +0000 Subject: [PATCH] Use wp_specialchars_decode() in the upgrade debugging email subject, same as the production email. props markoheijnen. fixes #26471. git-svn-id: https://develop.svn.wordpress.org/trunk@26762 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index d88fc7de7b..d3fdf4bfa1 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -2376,6 +2376,7 @@ class WP_Automatic_Updater { $body[] = ''; } + $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); if ( $failures ) { $body[] = __( " BETA TESTING? @@ -2389,9 +2390,9 @@ If you think these failures might be due to a bug in WordPress, could you report Thanks! -- The WordPress Team" ); - $subject = sprintf( __( '[%s] There were failures during background updates' ), get_bloginfo( 'name' ) ); + $subject = sprintf( __( '[%s] There were failures during background updates' ), $site_title ); } else { - $subject = sprintf( __( '[%s] Background updates have finished' ), get_bloginfo( 'name' ) ); + $subject = sprintf( __( '[%s] Background updates have finished' ), $site_title ); } $body[] = __( 'UPDATE LOG' );