Plugin Directory

Changeset 1725289


Ignore:
Timestamp:
09/06/2017 02:54:53 AM (9 years ago)
Author:
Cimmo
Message:

Fixed PHP Parse error regression on older PHP 5.x (try #2, thanks to Andrew Bruce)

Location:
cimy-swift-smtp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cimy-swift-smtp/trunk/README_OFFICIAL.txt

    r1725268 r1725289  
    6262
    6363CHANGELOG:
     64v3.0.2 - 06/09/2017
     65- Fixed PHP Parse error regression on older PHP 5.x (try #2, thanks to Andrew Bruce)
     66
    6467v3.0.1 - 06/09/2017
    6568- Fixed PHP Parse error regression on older PHP 5.x (despite they are now unsupported, thanks to Andrew Bruce)
  • cimy-swift-smtp/trunk/cimy_swift_smtp.php

    r1725273 r1725289  
    55Description: Send email via SMTP (Compatible with GMAIL)
    66Author: Marco Cimmino
    7 Version: 3.0.1
     7Version: 3.0.2
    88Author URI: mailto:cimmino.marco@gmail.com
    99
  • cimy-swift-smtp/trunk/swift_engine.php

    r1725268 r1725289  
    171171
    172172    // Create a message
    173     $swift_message = (new Swift_Message($subject))
    174         ->setFrom(array(apply_filters('wp_mail_from', $from_email) => apply_filters('wp_mail_from_name', $from_name)))
     173    $swift_message = new Swift_Message($subject);
     174    $swift_message->setFrom(array(apply_filters('wp_mail_from', $from_email) => apply_filters('wp_mail_from_name', $from_name)))
    175175        ->setBody($message)
    176176    ;
Note: See TracChangeset for help on using the changeset viewer.