This commit is contained in:
Javier Casares 2026-02-07 10:11:58 +00:00
commit 7929462680

View file

@ -3871,6 +3871,11 @@ class Settings_Page {
$clean['reply_to_name'] = sanitize_text_field( $options['reply_to_name'] );
}
// Clear password if both host and username are empty.
if ( empty( $clean['host'] ) && empty( $clean['username'] ) ) {
$clean['password'] = '';
}
// Only process Amazon SES fields if Amazon SES integration is NOT active (the add-on will handle it).
if ( ! Plugin::is_amazon_ses_integration_active() ) {
if ( isset( $options['amazon_ses_access_key'] ) ) {