Version Description
- 2021-08-05 =
- Fixed: Fatal PHP error on WP version 5.2 and lower (missing wp_timezone function).
Download this release
Release Info
Developer | capuderg |
Plugin | WP Mail SMTP by WPForms |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- assets/languages/wp-mail-smtp-vue.php +24 -24
- assets/languages/wp-mail-smtp.pot +2 -2
- readme.txt +4 -1
- src/Tasks/Reports/SummaryEmailTask.php +2 -1
- src/WP.php +58 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- wp_mail_smtp.php +2 -2
assets/languages/wp-mail-smtp-vue.php
CHANGED
@@ -73,10 +73,10 @@ $generated_i18n_strings = array(
|
|
73 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepImport.vue:48
|
74 |
__( 'Import Data and Continue', 'wp-mail-smtp' ),
|
75 |
|
76 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
77 |
__( 'Skip this Step', 'wp-mail-smtp' ),
|
78 |
|
79 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
80 |
__( 'Previous Step', 'wp-mail-smtp' ),
|
81 |
|
82 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepImport.vue:54
|
@@ -100,13 +100,13 @@ $generated_i18n_strings = array(
|
|
100 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationFailure.vue:33
|
101 |
__( 'Start Troubleshooting', 'wp-mail-smtp' ),
|
102 |
|
103 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
104 |
__( 'Send us Feedback', 'wp-mail-smtp' ),
|
105 |
|
106 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
107 |
__( 'Finish Setup', 'wp-mail-smtp' ),
|
108 |
|
109 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
110 |
__( 'API Key', 'wp-mail-smtp' ),
|
111 |
|
112 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/SmtpCom.vue:36
|
@@ -120,28 +120,28 @@ $generated_i18n_strings = array(
|
|
120 |
/* Translators: Link to the SMTP.com Senders/Channel settings. */
|
121 |
__( '%1$sFollow this link%2$s to get a Sender Name for SMTP.com.', 'wp-mail-smtp' ),
|
122 |
|
123 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
124 |
__( 'From Name', 'wp-mail-smtp' ),
|
125 |
|
126 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
127 |
__( 'Force From Name', 'wp-mail-smtp' ),
|
128 |
|
129 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
130 |
__( 'From Email', 'wp-mail-smtp' ),
|
131 |
|
132 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
133 |
__( 'Force From Email', 'wp-mail-smtp' ),
|
134 |
|
135 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
136 |
__( 'If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.', 'wp-mail-smtp' ),
|
137 |
|
138 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
139 |
__( 'If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.', 'wp-mail-smtp' ),
|
140 |
|
141 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
142 |
__( 'The name that emails are sent from.', 'wp-mail-smtp' ),
|
143 |
|
144 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
145 |
__( 'The email address that emails are sent from.', 'wp-mail-smtp' ),
|
146 |
|
147 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/SmtpCom.vue:49
|
@@ -183,13 +183,13 @@ $generated_i18n_strings = array(
|
|
183 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:60
|
184 |
__( 'Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is used by over 2,000,000 websites.', 'wp-mail-smtp' ),
|
185 |
|
186 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
187 |
__( 'Multisite Network Settings', 'wp-mail-smtp' ),
|
188 |
|
189 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
190 |
__( 'Manage Default Notifications', 'wp-mail-smtp' ),
|
191 |
|
192 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
193 |
__( 'Detailed Email Logs', 'wp-mail-smtp' ),
|
194 |
|
195 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:64
|
@@ -198,7 +198,7 @@ $generated_i18n_strings = array(
|
|
198 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:65
|
199 |
__( 'Send a Test Email', 'wp-mail-smtp' ),
|
200 |
|
201 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
202 |
/* Translators: Different bold styles and discount value (%5$s). */
|
203 |
__( '%1$sBonus:%2$s You can upgrade to the Pro plan and %3$ssave %5$s today%4$s, automatically applied at checkout.', 'wp-mail-smtp' ),
|
204 |
|
@@ -247,7 +247,7 @@ $generated_i18n_strings = array(
|
|
247 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendgrid.vue:46
|
248 |
__( 'Read how to set up Sendgrid', 'wp-mail-smtp' ),
|
249 |
|
250 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
251 |
__( 'Region', 'wp-mail-smtp' ),
|
252 |
|
253 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Zoho.vue:36
|
@@ -453,7 +453,7 @@ $generated_i18n_strings = array(
|
|
453 |
// Reference: src/modules/plugins/api/index.js:67
|
454 |
__( 'It looks like we can\'t fetch plugins information.', 'wp-mail-smtp' ),
|
455 |
|
456 |
-
// Reference: src/modules/
|
457 |
/* Translators: Error status and error text. */
|
458 |
__( '%1$s, %2$s', 'wp-mail-smtp' ),
|
459 |
|
@@ -515,7 +515,7 @@ $generated_i18n_strings = array(
|
|
515 |
// Reference: src/modules/setup-wizard/api/index.js:37
|
516 |
__( 'It looks like we can\'t send the feedback.', 'wp-mail-smtp' ),
|
517 |
|
518 |
-
// Reference: src/modules/
|
519 |
__( 'You appear to be offline.', 'wp-mail-smtp' ),
|
520 |
|
521 |
// Reference: src/modules/settings/components/input/SettingsAmazonSESIdentities.vue:103
|
@@ -631,13 +631,13 @@ $generated_i18n_strings = array(
|
|
631 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepPluginFeatures.vue:61
|
632 |
__( 'Create beautiful contact forms with just a few clicks.', 'wp-mail-smtp' ),
|
633 |
|
634 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
635 |
__( 'Keep records of every email that\'s sent out from your website.', 'wp-mail-smtp' ),
|
636 |
|
637 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
638 |
__( 'Control which email notifications your WordPress site sends.', 'wp-mail-smtp' ),
|
639 |
|
640 |
-
// Reference: src/modules/setup-wizard/components/steps/
|
641 |
__( 'Save time with powerful WordPress Multisite controls.', 'wp-mail-smtp' ),
|
642 |
|
643 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigureMailer.vue:48
|
@@ -760,7 +760,7 @@ $generated_i18n_strings = array(
|
|
760 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepLicense.vue:85
|
761 |
__( 'Enhanced Weekly Email Summary', 'wp-mail-smtp' ),
|
762 |
|
763 |
-
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/
|
764 |
__( 'Transparency and Disclosure', 'wp-mail-smtp' ),
|
765 |
|
766 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/SmtpCom.vue:53
|
73 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepImport.vue:48
|
74 |
__( 'Import Data and Continue', 'wp-mail-smtp' ),
|
75 |
|
76 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepLicense.vue:78
|
77 |
__( 'Skip this Step', 'wp-mail-smtp' ),
|
78 |
|
79 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigureMailer.vue:51
|
80 |
__( 'Previous Step', 'wp-mail-smtp' ),
|
81 |
|
82 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepImport.vue:54
|
100 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationFailure.vue:33
|
101 |
__( 'Start Troubleshooting', 'wp-mail-smtp' ),
|
102 |
|
103 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:66
|
104 |
__( 'Send us Feedback', 'wp-mail-smtp' ),
|
105 |
|
106 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:67
|
107 |
__( 'Finish Setup', 'wp-mail-smtp' ),
|
108 |
|
109 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:35
|
110 |
__( 'API Key', 'wp-mail-smtp' ),
|
111 |
|
112 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/SmtpCom.vue:36
|
120 |
/* Translators: Link to the SMTP.com Senders/Channel settings. */
|
121 |
__( '%1$sFollow this link%2$s to get a Sender Name for SMTP.com.', 'wp-mail-smtp' ),
|
122 |
|
123 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:41
|
124 |
__( 'From Name', 'wp-mail-smtp' ),
|
125 |
|
126 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:42
|
127 |
__( 'Force From Name', 'wp-mail-smtp' ),
|
128 |
|
129 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:43
|
130 |
__( 'From Email', 'wp-mail-smtp' ),
|
131 |
|
132 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:44
|
133 |
__( 'Force From Email', 'wp-mail-smtp' ),
|
134 |
|
135 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:45
|
136 |
__( 'If enabled, the From Name setting above will be used for all emails, ignoring values set by other plugins.', 'wp-mail-smtp' ),
|
137 |
|
138 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:46
|
139 |
__( 'If enabled, the From Email setting above will be used for all emails, ignoring values set by other plugins.', 'wp-mail-smtp' ),
|
140 |
|
141 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:47
|
142 |
__( 'The name that emails are sent from.', 'wp-mail-smtp' ),
|
143 |
|
144 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:48
|
145 |
__( 'The email address that emails are sent from.', 'wp-mail-smtp' ),
|
146 |
|
147 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/SmtpCom.vue:49
|
183 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:60
|
184 |
__( 'Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is used by over 2,000,000 websites.', 'wp-mail-smtp' ),
|
185 |
|
186 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:61
|
187 |
__( 'Multisite Network Settings', 'wp-mail-smtp' ),
|
188 |
|
189 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:62
|
190 |
__( 'Manage Default Notifications', 'wp-mail-smtp' ),
|
191 |
|
192 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:63
|
193 |
__( 'Detailed Email Logs', 'wp-mail-smtp' ),
|
194 |
|
195 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:64
|
198 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:65
|
199 |
__( 'Send a Test Email', 'wp-mail-smtp' ),
|
200 |
|
201 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigurationSuccess.vue:69
|
202 |
/* Translators: Different bold styles and discount value (%5$s). */
|
203 |
__( '%1$sBonus:%2$s You can upgrade to the Pro plan and %3$ssave %5$s today%4$s, automatically applied at checkout.', 'wp-mail-smtp' ),
|
204 |
|
247 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendgrid.vue:46
|
248 |
__( 'Read how to set up Sendgrid', 'wp-mail-smtp' ),
|
249 |
|
250 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Mailgun.vue:33
|
251 |
__( 'Region', 'wp-mail-smtp' ),
|
252 |
|
253 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Zoho.vue:36
|
453 |
// Reference: src/modules/plugins/api/index.js:67
|
454 |
__( 'It looks like we can\'t fetch plugins information.', 'wp-mail-smtp' ),
|
455 |
|
456 |
+
// Reference: src/modules/settings/api/index.js:234
|
457 |
/* Translators: Error status and error text. */
|
458 |
__( '%1$s, %2$s', 'wp-mail-smtp' ),
|
459 |
|
515 |
// Reference: src/modules/setup-wizard/api/index.js:37
|
516 |
__( 'It looks like we can\'t send the feedback.', 'wp-mail-smtp' ),
|
517 |
|
518 |
+
// Reference: src/modules/settings/api/index.js:238
|
519 |
__( 'You appear to be offline.', 'wp-mail-smtp' ),
|
520 |
|
521 |
// Reference: src/modules/settings/components/input/SettingsAmazonSESIdentities.vue:103
|
631 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepPluginFeatures.vue:61
|
632 |
__( 'Create beautiful contact forms with just a few clicks.', 'wp-mail-smtp' ),
|
633 |
|
634 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepPluginFeatures.vue:63
|
635 |
__( 'Keep records of every email that\'s sent out from your website.', 'wp-mail-smtp' ),
|
636 |
|
637 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepPluginFeatures.vue:67
|
638 |
__( 'Control which email notifications your WordPress site sends.', 'wp-mail-smtp' ),
|
639 |
|
640 |
+
// Reference: src/modules/setup-wizard/components/steps/WizardStepPluginFeatures.vue:69
|
641 |
__( 'Save time with powerful WordPress Multisite controls.', 'wp-mail-smtp' ),
|
642 |
|
643 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepConfigureMailer.vue:48
|
760 |
// Reference: src/modules/setup-wizard/components/steps/WizardStepLicense.vue:85
|
761 |
__( 'Enhanced Weekly Email Summary', 'wp-mail-smtp' ),
|
762 |
|
763 |
+
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/Sendinblue.vue:51
|
764 |
__( 'Transparency and Disclosure', 'wp-mail-smtp' ),
|
765 |
|
766 |
// Reference: src/modules/setup-wizard/components/steps/configure-mailer/SmtpCom.vue:53
|
assets/languages/wp-mail-smtp.pot
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: WP Mail SMTP 3.0.
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-smtp\n"
|
5 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
6 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"POT-Creation-Date: 2021-08-
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.4.0\n"
|
13 |
"X-Domain: wp-mail-smtp\n"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: WP Mail SMTP 3.0.2\n"
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-smtp\n"
|
5 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
6 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"POT-Creation-Date: 2021-08-05T18:56:56+00:00\n"
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.4.0\n"
|
13 |
"X-Domain: wp-mail-smtp\n"
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wpforms, jaredatch, smub, slaFFik
|
|
3 |
Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, sendinblue, wp smtp
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 3.0.
|
7 |
Requires PHP: 5.6.20
|
8 |
|
9 |
Make email delivery easy for WordPress. Connect with SMTP, Gmail, Outlook, SendGrid, Mailgun, Zoho, SES, and more.
|
@@ -280,6 +280,9 @@ By all means please contact us to discuss features or options you'd like to see
|
|
280 |
|
281 |
== Changelog ==
|
282 |
|
|
|
|
|
|
|
283 |
= 3.0.1 - 2021-08-05 =
|
284 |
- Added: Weekly Email Summary - email sending statistics sent to your inbox.
|
285 |
- Added: Debug Events - logging all email sending errors and debug events.
|
3 |
Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, sendinblue, wp smtp
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 3.0.2
|
7 |
Requires PHP: 5.6.20
|
8 |
|
9 |
Make email delivery easy for WordPress. Connect with SMTP, Gmail, Outlook, SendGrid, Mailgun, Zoho, SES, and more.
|
280 |
|
281 |
== Changelog ==
|
282 |
|
283 |
+
= 3.0.2 - 2021-08-05 =
|
284 |
+
- Fixed: Fatal PHP error on WP version 5.2 and lower (missing wp_timezone function).
|
285 |
+
|
286 |
= 3.0.1 - 2021-08-05 =
|
287 |
- Added: Weekly Email Summary - email sending statistics sent to your inbox.
|
288 |
- Added: Debug Events - logging all email sending errors and debug events.
|
src/Tasks/Reports/SummaryEmailTask.php
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
|
3 |
namespace WPMailSMTP\Tasks\Reports;
|
4 |
|
|
|
5 |
use WPMailSMTP\Tasks\Task;
|
6 |
use WPMailSMTP\Reports\Emails\Summary as SummaryReportEmail;
|
7 |
|
@@ -51,7 +52,7 @@ class SummaryEmailTask extends Task {
|
|
51 |
return;
|
52 |
}
|
53 |
|
54 |
-
$date = new \DateTime( 'next monday 2pm', wp_timezone() );
|
55 |
|
56 |
// Schedule the task.
|
57 |
$this->recurring( $date->getTimestamp(), WEEK_IN_SECONDS )->register();
|
2 |
|
3 |
namespace WPMailSMTP\Tasks\Reports;
|
4 |
|
5 |
+
use WPMailSMTP\WP;
|
6 |
use WPMailSMTP\Tasks\Task;
|
7 |
use WPMailSMTP\Reports\Emails\Summary as SummaryReportEmail;
|
8 |
|
52 |
return;
|
53 |
}
|
54 |
|
55 |
+
$date = new \DateTime( 'next monday 2pm', WP::wp_timezone() );
|
56 |
|
57 |
// Schedule the task.
|
58 |
$this->recurring( $date->getTimestamp(), WEEK_IN_SECONDS )->register();
|
src/WP.php
CHANGED
@@ -605,4 +605,62 @@ class WP {
|
|
605 |
|
606 |
return false;
|
607 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
}
|
605 |
|
606 |
return false;
|
607 |
}
|
608 |
+
|
609 |
+
/**
|
610 |
+
* Retrieves the timezone from site settings as a `DateTimeZone` object.
|
611 |
+
*
|
612 |
+
* Timezone can be based on a PHP timezone string or a ±HH:MM offset.
|
613 |
+
*
|
614 |
+
* We use `wp_timezone()` when it's available (WP 5.3+),
|
615 |
+
* otherwise fallback to the same code, copy-pasted.
|
616 |
+
*
|
617 |
+
* @since 3.0.2
|
618 |
+
*
|
619 |
+
* @return \DateTimeZone Timezone object.
|
620 |
+
*/
|
621 |
+
public static function wp_timezone() {
|
622 |
+
|
623 |
+
if ( function_exists( 'wp_timezone' ) ) {
|
624 |
+
return wp_timezone();
|
625 |
+
}
|
626 |
+
|
627 |
+
return new \DateTimeZone( self::wp_timezone_string() );
|
628 |
+
}
|
629 |
+
|
630 |
+
/**
|
631 |
+
* Retrieves the timezone from site settings as a string.
|
632 |
+
*
|
633 |
+
* Uses the `timezone_string` option to get a proper timezone if available,
|
634 |
+
* otherwise falls back to an offset.
|
635 |
+
*
|
636 |
+
* We use `wp_timezone_string()` when it's available (WP 5.3+),
|
637 |
+
* otherwise fallback to the same code, copy-pasted.
|
638 |
+
*
|
639 |
+
* @since 3.0.2
|
640 |
+
*
|
641 |
+
* @return string PHP timezone string or a ±HH:MM offset.
|
642 |
+
*/
|
643 |
+
public static function wp_timezone_string() {
|
644 |
+
|
645 |
+
if ( function_exists( 'wp_timezone_string' ) ) {
|
646 |
+
return wp_timezone_string();
|
647 |
+
}
|
648 |
+
|
649 |
+
$timezone_string = get_option( 'timezone_string' );
|
650 |
+
|
651 |
+
if ( $timezone_string ) {
|
652 |
+
return $timezone_string;
|
653 |
+
}
|
654 |
+
|
655 |
+
$offset = (float) get_option( 'gmt_offset' );
|
656 |
+
$hours = (int) $offset;
|
657 |
+
$minutes = ( $offset - $hours );
|
658 |
+
|
659 |
+
$sign = ( $offset < 0 ) ? '-' : '+';
|
660 |
+
$abs_hour = abs( $hours );
|
661 |
+
$abs_mins = abs( $minutes * 60 );
|
662 |
+
$tz_offset = sprintf( '%s%02d:%02d', $sign, $abs_hour, $abs_mins );
|
663 |
+
|
664 |
+
return $tz_offset;
|
665 |
+
}
|
666 |
}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit490f12e6dab79bdb3b73c0dbc2a4cc78::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit1e3da9297438cc31b8a475b888978a78
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit1e3da9297438cc31b8a475b888978a78
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit490f12e6dab79bdb3b73c0dbc2a4cc78
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit490f12e6dab79bdb3b73c0dbc2a4cc78', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit490f12e6dab79bdb3b73c0dbc2a4cc78', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit490f12e6dab79bdb3b73c0dbc2a4cc78::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit490f12e6dab79bdb3b73c0dbc2a4cc78::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire490f12e6dab79bdb3b73c0dbc2a4cc78($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire490f12e6dab79bdb3b73c0dbc2a4cc78($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
|
@@ -943,9 +943,9 @@ class ComposerStaticInit1e3da9297438cc31b8a475b888978a78
|
|
943 |
public static function getInitializer(ClassLoader $loader)
|
944 |
{
|
945 |
return \Closure::bind(function () use ($loader) {
|
946 |
-
$loader->prefixLengthsPsr4 =
|
947 |
-
$loader->prefixDirsPsr4 =
|
948 |
-
$loader->classMap =
|
949 |
|
950 |
}, null, ClassLoader::class);
|
951 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit490f12e6dab79bdb3b73c0dbc2a4cc78
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
|
943 |
public static function getInitializer(ClassLoader $loader)
|
944 |
{
|
945 |
return \Closure::bind(function () use ($loader) {
|
946 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit490f12e6dab79bdb3b73c0dbc2a4cc78::$prefixLengthsPsr4;
|
947 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit490f12e6dab79bdb3b73c0dbc2a4cc78::$prefixDirsPsr4;
|
948 |
+
$loader->classMap = ComposerStaticInit490f12e6dab79bdb3b73c0dbc2a4cc78::$classMap;
|
949 |
|
950 |
}, null, ClassLoader::class);
|
951 |
}
|
wp_mail_smtp.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP Mail SMTP
|
4 |
-
* Version: 3.0.
|
5 |
* Requires at least: 4.9
|
6 |
* Requires PHP: 5.6.20
|
7 |
* Plugin URI: https://wpmailsmtp.com/
|
@@ -211,7 +211,7 @@ if ( ! function_exists( 'wp_mail_smtp_insecure_php_version_notice' ) ) {
|
|
211 |
}
|
212 |
|
213 |
if ( ! defined( 'WPMS_PLUGIN_VER' ) ) {
|
214 |
-
define( 'WPMS_PLUGIN_VER', '3.0.
|
215 |
}
|
216 |
if ( ! defined( 'WPMS_PHP_VER' ) ) {
|
217 |
define( 'WPMS_PHP_VER', '5.6.20' );
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP Mail SMTP
|
4 |
+
* Version: 3.0.2
|
5 |
* Requires at least: 4.9
|
6 |
* Requires PHP: 5.6.20
|
7 |
* Plugin URI: https://wpmailsmtp.com/
|
211 |
}
|
212 |
|
213 |
if ( ! defined( 'WPMS_PLUGIN_VER' ) ) {
|
214 |
+
define( 'WPMS_PLUGIN_VER', '3.0.2' );
|
215 |
}
|
216 |
if ( ! defined( 'WPMS_PHP_VER' ) ) {
|
217 |
define( 'WPMS_PHP_VER', '5.6.20' );
|