updated plugin WP Mail SMTP
version 2.5.1
This commit is contained in:
@ -295,7 +295,7 @@ class Area {
|
||||
<img src="<?php echo esc_url( wp_mail_smtp()->assets_url . '/images/pro-badge.svg' ); ?>" class="badge" alt="<?php esc_attr_e( 'Pro+ badge icon', 'wp-mail-smtp' ); ?>">
|
||||
</div>
|
||||
<p>
|
||||
<?php esc_html_e( 'Simply enable network-wide settings and every site on your network will inherit the same SMTP settings. Save time and only configure your SMTP provider once.', 'wp-amil-smtp' ); ?>
|
||||
<?php esc_html_e( 'Simply enable network-wide settings and every site on your network will inherit the same SMTP settings. Save time and only configure your SMTP provider once.', 'wp-mail-smtp' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
@ -59,7 +59,7 @@ class Education {
|
||||
|
||||
printf(
|
||||
'<div id="wp-mail-smtp-notice-bar">
|
||||
<div class="wp-amil-smtp-notice-bar-container">
|
||||
<div class="wp-mail-smtp-notice-bar-container">
|
||||
<span class="wp-mail-smtp-notice-bar-message">%s</span>
|
||||
<button type="button" class="dismiss" title="%s" />
|
||||
</div>
|
||||
|
@ -77,18 +77,16 @@ abstract class AuthAbstract implements AuthInterface {
|
||||
protected function update_auth_code( $code ) {
|
||||
|
||||
$options = new PluginOptions();
|
||||
$all = $options->get_all();
|
||||
|
||||
// To save in DB.
|
||||
$updated_settings = [
|
||||
$this->mailer_slug => [
|
||||
'auth_code' => $code,
|
||||
],
|
||||
];
|
||||
$all[ $this->mailer_slug ]['auth_code'] = $code;
|
||||
|
||||
// To save in currently retrieved options array.
|
||||
$this->options['auth_code'] = $code;
|
||||
|
||||
$options->set( $updated_settings, false, false );
|
||||
// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
|
||||
$options->set( $all, false, true );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -101,18 +99,16 @@ abstract class AuthAbstract implements AuthInterface {
|
||||
protected function update_access_token( $token ) {
|
||||
|
||||
$options = new PluginOptions();
|
||||
$all = $options->get_all();
|
||||
|
||||
// To save in DB.
|
||||
$updated_settings = [
|
||||
$this->mailer_slug => [
|
||||
'access_token' => $token,
|
||||
],
|
||||
];
|
||||
$all[ $this->mailer_slug ]['access_token'] = $token;
|
||||
|
||||
// To save in currently retrieved options array.
|
||||
$this->options['access_token'] = $token;
|
||||
|
||||
$options->set( $updated_settings, false, false );
|
||||
// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
|
||||
$options->set( $all, false, true );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -125,18 +121,16 @@ abstract class AuthAbstract implements AuthInterface {
|
||||
protected function update_refresh_token( $token ) {
|
||||
|
||||
$options = new PluginOptions();
|
||||
$all = $options->get_all();
|
||||
|
||||
// To save in DB.
|
||||
$updated_settings = [
|
||||
$this->mailer_slug => [
|
||||
'refresh_token' => $token,
|
||||
],
|
||||
];
|
||||
$all[ $this->mailer_slug ]['refresh_token'] = $token;
|
||||
|
||||
// To save in currently retrieved options array.
|
||||
$this->options['refresh_token'] = $token;
|
||||
|
||||
$options->set( $updated_settings, false, false );
|
||||
// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
|
||||
$options->set( $all, false, true );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user