summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/class-wp-phpmailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-includes/class-wp-phpmailer.php')
-rw-r--r--src/wp-includes/class-wp-phpmailer.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wp-includes/class-wp-phpmailer.php b/src/wp-includes/class-wp-phpmailer.php
index b3c976d13d..c3f9f3088e 100644
--- a/src/wp-includes/class-wp-phpmailer.php
+++ b/src/wp-includes/class-wp-phpmailer.php
@@ -24,7 +24,7 @@ class WP_PHPMailer extends PHPMailer\PHPMailer\PHPMailer {
*/
public function __construct( $exceptions = false ) {
parent::__construct( $exceptions );
- $this->SetLanguage();
+ $this->setLanguage();
}
/**
@@ -32,10 +32,12 @@ class WP_PHPMailer extends PHPMailer\PHPMailer\PHPMailer {
*
* @since 6.8.0
*
+ * @param string $langcode Optional. Unused. ISO 639-1 2-character language code. Default 'en'.
+ * @param string $lang_path Optional. Unused. Path to the language file directory. Default empty string.
* @return true Always returns true.
*/
- public function SetLanguage( $langcode = 'en', $lang_path = '' ) {
- $error_strings = array(
+ public function setLanguage( $langcode = 'en', $lang_path = '' ) {
+ $this->language = array(
'authenticate' => __( 'SMTP Error: Could not authenticate.' ),
'buggy_php' => sprintf(
/* translators: 1: mail.add_x_header. 2: php.ini */
@@ -87,7 +89,7 @@ class WP_PHPMailer extends PHPMailer\PHPMailer\PHPMailer {
/* translators: There is a space after the colon. */
'variable_set' => __( 'Cannot set or reset variable: ' ),
);
- $this->language = $error_strings;
+
return true;
}
}