From 219321eedcc3e11f1fcd028392f5cc1ea76c8e2a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 22 May 2014 09:41:15 +0000 Subject: [PATCH] Fix inconsistent header underlining and spacing in background update emails. fixes #28306. Built from https://develop.svn.wordpress.org/trunk@28537 git-svn-id: http://core.svn.wordpress.org/trunk@28363 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index d620a70c67..ec39f6ad39 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -2532,7 +2532,7 @@ class WP_Automatic_Updater { $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); if ( $failures ) { - $body[] = __( " + $body[] = trim( __( " BETA TESTING? ============= @@ -2542,16 +2542,17 @@ If you think these failures might be due to a bug in WordPress, could you report * Open a thread in the support forums: https://wordpress.org/support/forum/alphabeta * Or, if you're comfortable writing a bug report: http://core.trac.wordpress.org/ -Thanks! -- The WordPress Team" ); +Thanks! -- The WordPress Team" ) ); + $body[] = ''; $subject = sprintf( __( '[%s] There were failures during background updates' ), $site_title ); } else { $subject = sprintf( __( '[%s] Background updates have finished' ), $site_title ); } - $title = __( 'UPDATE LOG' ); - $body[] = $title; - $body[] = str_repeat( '=', strlen( $title ) ); + $body[] = trim( __( ' +UPDATE LOG +==========' ) ); $body[] = ''; foreach ( array( 'core', 'plugin', 'theme', 'translation' ) as $type ) {