Plugin Directory

Changeset 1772320


Ignore:
Timestamp:
11/21/2017 01:24:57 PM (8 years ago)
Author:
iprodev
Message:

Version 1.1.1

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

Legend:

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

    r1772297 r1772320  
    102102== Changelog ==
    103103
     104= 1.1.1 =
     105* Fixed some bugs
     106
    104107= 1.1.0 =
    105108* Supported WordPress version up to 4.9.
  • wp-easy-smtp/trunk/wp-easy-smtp.php

    r1772297 r1772320  
    22/*
    33Plugin Name: WordPress Easy SMTP
    4 Version: 1.1.0
     4Version: 1.1.1
    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.0';
     22    public $VERSION = '1.1.1';
    2323    public $MAIN;
    2424    public $PATH;
     
    724724
    725725        $from_email = trim( $options['from_email_field'] );
     726        $from_email = !empty( $from_email ) ? $from_email : get_option( 'admin_email' );
    726727        $from_name = trim( $options['from_name_field'] );
    727 
    728         if ( !empty( $from_email ) )
    729             $phpmailer->From = $from_email;
    730         if ( !empty( $from_email ) )
    731             $phpmailer->FromName = $from_name;
     728        $from_name = !empty( $from_name ) ? $from_name : wp_specialchars_decode( get_option( 'blogname' ) );
     729        $phpmailer->From = $from_email;
     730        $phpmailer->FromName = $from_name;
    732731
    733732        //set Reply-To option if needed
Note: See TracChangeset for help on using the changeset viewer.