Plugin Directory

Changeset 1947673


Ignore:
Timestamp:
09/26/2018 09:15:20 PM (8 years ago)
Author:
iprodev
Message:

Update to version 1.1.2

Location:
wp-easy-smtp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-easy-smtp/trunk/readme.txt

    r1772327 r1947673  
    55Requires at least: 4.3
    66Tested up to: 4.9
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl.html
     
    102102== Changelog ==
    103103
     104= 1.1.2 =
     105* Disabled browser autocomplete for username and password fields to prevent them from being replaced by WP login credentials (if those were saved in browser).
     106* Fixed some bugs.
     107
    104108= 1.1.1 =
    105 * Fixed some bugs
     109* Fixed some bugs.
    106110
    107111= 1.1.0 =
     
    115119
    116120= 1.0.3 =
    117 * Added Sending email to users and commenters
    118 * Fixed some bugs
     121* Added Sending email to users and commenters.
     122* Fixed some bugs.
    119123
    120124= 1.0.2 =
    121 * Fixed some bugs
     125* Fixed some bugs.
    122126
    123127= 1.0.1 =
    124 * Added French language
    125 * Added Portuguese language
    126 * Added Spanish language
     128* Added French language.
     129* Added Portuguese language.
     130* Added Spanish language.
    127131
    128132= 1.0.0 =
    129 * First commit of the plugin
     133* First commit of the plugin.
  • wp-easy-smtp/trunk/wp-easy-smtp.php

    r1772320 r1947673  
    22/*
    33Plugin Name: WordPress Easy SMTP
    4 Version: 1.1.1
     4Version: 1.1.2
    55Plugin URI: https://iprodev.com/wordpress-easy-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server
    66Author: iProDev
     
    2020if (!class_exists('WP_Easy_SMTP')):
    2121class WP_Easy_SMTP {
    22     public $VERSION = '1.1.1';
     22    public $VERSION = '1.1.2';
    2323    public $MAIN;
    2424    public $PATH;
     
    197197                <p><?php _e( "You can request your hosting provider for the SMTP details of your site. Use the SMTP details provided by your hosting provider to configure the following settings.", 'wp-easy-smtp' ); ?></p>
    198198               
    199                 <form id="wpesmtp_settings_form" method="post" action="">
     199                <form autocomplete="off" id="wpesmtp_settings_form" method="post" action="">
    200200                    <input type="hidden" name="wpesmtp_task" value="settings">
    201201                    <table class="form-table">
     
    296296                            <th><?php _e( 'Password', 'wp-easy-smtp' ); ?></th>
    297297                            <td>
    298                                 <input type='password' name='wpesmtp_smtp_password' value='<?php echo esc_attr( wpesmtp_get_password() ); ?>' /><br />
     298                                <input type='password' name='wpesmtp_smtp_password' value='<?php echo esc_attr( wpesmtp_get_password() ); ?>' autocomplete='new-password' /><br />
    299299                                <p class="description"><?php _e( "The password to login to your mail server", 'wp-easy-smtp' ); ?></p>
    300300                            </td>
     
    723723        $phpmailer->isSMTP();
    724724
    725         $from_email = trim( $options['from_email_field'] );
    726         $from_email = !empty( $from_email ) ? $from_email : get_option( 'admin_email' );
    727         $from_name = trim( $options['from_name_field'] );
    728         $from_name = !empty( $from_name ) ? $from_name : wp_specialchars_decode( get_option( 'blogname' ) );
    729         $phpmailer->From = $from_email;
    730         $phpmailer->FromName = $from_name;
    731 
    732         //set Reply-To option if needed
    733         if ( !empty( $options['reply_to_email'] ) )
    734             $phpmailer->addReplyTo( $options['reply_to_email'], $phpmailer->FromName );
     725
     726        if ( strtolower( trim( $options['from_email_field'] ) ) === strtolower( $phpmailer->From ) ) {
     727            $from_email = trim( $options['from_email_field'] );
     728            $from_name = trim( $options['from_name_field'] );
     729            $from_email = !empty( $from_email ) ? $from_email : get_option( 'admin_email' );
     730            $from_name = !empty( $from_name ) ? $from_name : wp_specialchars_decode( get_option( 'blogname' ) );
     731
     732            $phpmailer->From = $from_email;
     733            $phpmailer->FromName = $from_name;
     734
     735            //set Reply-To option if needed
     736            if ( !empty( $options['reply_to_email'] ) )
     737                $phpmailer->addReplyTo( $options['reply_to_email'], $phpmailer->FromName );
     738        }
    735739
    736740        $phpmailer->SetFrom( $phpmailer->From, $phpmailer->FromName );
Note: See TracChangeset for help on using the changeset viewer.