From beb61ff909f75d3c0826880198ae6ae3b0ba6639 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 20 Sep 2015 02:53:25 +0000 Subject: [PATCH] WP Mail: Avoid using HTML tags in translation strings, add translator strings. Props ramiy. Fixes #31871. Built from https://develop.svn.wordpress.org/trunk@34343 git-svn-id: http://core.svn.wordpress.org/trunk@34307 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-mail.php | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b7f3c873a..acc287328a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34342'; +$wp_version = '4.4-alpha-34343'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-mail.php b/wp-mail.php index 6775de8a27..e1e9f863e6 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -244,15 +244,23 @@ for ( $i = 1; $i <= $count; $i++ ) { */ do_action( 'publish_phone', $post_ID ); - echo "\n

" . sprintf(__('Author: %s'), esc_html($post_author)) . '

'; - echo "\n

" . sprintf(__('Posted title: %s'), esc_html($post_title)) . '

'; + echo "\n

" . __( 'Author:' ) . ' ' . esc_html( $post_author ) . '

'; + echo "\n

" . __( 'Posted title:' ) . ' ' . esc_html( $post_title ) . '

'; if(!$pop3->delete($i)) { - echo '

' . sprintf(__('Oops: %s'), esc_html($pop3->ERROR)) . '

'; + echo '

' . sprintf( + /* translators: %s: POP3 error */ + __( 'Oops: %s' ), + esc_html( $pop3->ERROR ) + ) . '

'; $pop3->reset(); exit; } else { - echo '

' . sprintf(__('Mission complete. Message %s deleted.'), $i) . '

'; + echo '

' . sprintf( + /* translators: %s: the message ID */ + __( 'Mission complete. Message %s deleted.' ), + '' . $i . '' + ) . '

'; } }