WP Mail: Avoid using HTML tags in translation strings, add translator strings.
Props ramiy. Fixes #31871. git-svn-id: https://develop.svn.wordpress.org/trunk@34343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
067af6b9aa
commit
2161a20a68
@ -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
Block a user