plugin updates

This commit is contained in:
Tony Volpe
2024-11-15 13:53:04 -05:00
parent 1293d604ca
commit 0238f0c4ca
2009 changed files with 163492 additions and 89543 deletions

View File

@@ -3,6 +3,7 @@
namespace WPMailSMTP\Providers\SparkPost;
use WPMailSMTP\ConnectionInterface;
use WPMailSMTP\Helpers\UI;
use WPMailSMTP\Providers\OptionsAbstract;
/**
@@ -93,11 +94,19 @@ class Options extends OptionsAbstract {
/>
<?php $this->display_const_set_message( 'WPMS_SPARKPOST_API_KEY' ); ?>
<?php else : ?>
<input type="password" spellcheck="false"
name="wp-mail-smtp[<?php echo esc_attr( $this->get_slug() ); ?>][api_key]"
value="<?php echo esc_attr( $this->connection_options->get( $this->get_slug(), 'api_key' ) ); ?>"
id="wp-mail-smtp-setting-<?php echo esc_attr( $this->get_slug() ); ?>-api_key"
/>
<?php
$slug = $this->get_slug();
$value = $this->connection_options->get( $this->get_slug(), 'api_key' );
UI::hidden_password_field(
[
'name' => "wp-mail-smtp[{$slug}][api_key]",
'id' => "wp-mail-smtp-setting-{$slug}-api_key",
'value' => $value,
'clear_text' => esc_html__( 'Remove API Key', 'wp-mail-smtp' ),
]
);
?>
<?php endif; ?>
<p class="desc">
<?php