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
This commit is contained in:
parent
630d3db338
commit
beb61ff909
|
@ -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.
|
||||
|
|
16
wp-mail.php
16
wp-mail.php
|
@ -244,15 +244,23 @@ for ( $i = 1; $i <= $count; $i++ ) {
|
|||
*/
|
||||
do_action( 'publish_phone', $post_ID );
|
||||
|
||||
echo "\n<p>" . sprintf(__('<strong>Author:</strong> %s'), esc_html($post_author)) . '</p>';
|
||||
echo "\n<p>" . sprintf(__('<strong>Posted title:</strong> %s'), esc_html($post_title)) . '</p>';
|
||||
echo "\n<p><strong>" . __( 'Author:' ) . '</strong> ' . esc_html( $post_author ) . '</p>';
|
||||
echo "\n<p><strong>" . __( 'Posted title:' ) . '</strong> ' . esc_html( $post_title ) . '</p>';
|
||||
|
||||
if(!$pop3->delete($i)) {
|
||||
echo '<p>' . sprintf(__('Oops: %s'), esc_html($pop3->ERROR)) . '</p>';
|
||||
echo '<p>' . sprintf(
|
||||
/* translators: %s: POP3 error */
|
||||
__( 'Oops: %s' ),
|
||||
esc_html( $pop3->ERROR )
|
||||
) . '</p>';
|
||||
$pop3->reset();
|
||||
exit;
|
||||
} else {
|
||||
echo '<p>' . sprintf(__('Mission complete. Message <strong>%s</strong> deleted.'), $i) . '</p>';
|
||||
echo '<p>' . sprintf(
|
||||
/* translators: %s: the message ID */
|
||||
__( 'Mission complete. Message %s deleted.' ),
|
||||
'<strong>' . $i . '</strong>'
|
||||
) . '</p>';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue