From ae81d63a2a8f8c7dc27d73862858ffcd75319094 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 26 May 2019 20:43:43 +0000 Subject: [PATCH] I18N: Remove PHP function name from translatable string in `WP_Recovery_Mode_Email_Service`. Props ramiy. Fixes #47255. git-svn-id: https://develop.svn.wordpress.org/trunk@45447 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-recovery-mode-email-service.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-recovery-mode-email-service.php b/src/wp-includes/class-wp-recovery-mode-email-service.php index 24e904277f..193a41483e 100644 --- a/src/wp-includes/class-wp-recovery-mode-email-service.php +++ b/src/wp-includes/class-wp-recovery-mode-email-service.php @@ -62,7 +62,14 @@ final class WP_Recovery_Mode_Email_Service { return true; } - return new WP_Error( 'email_failed', __( 'The email could not be sent. Possible reason: your host may have disabled the mail() function.' ) ); + return new WP_Error( + 'email_failed', + sprintf( + /* translators: %s: mail() */ + __( 'The email could not be sent. Possible reason: your host may have disabled the %s function.' ), + 'mail()' + ) + ); } $err_message = sprintf(