Plugin Directory

Changeset 2366554


Ignore:
Timestamp:
08/21/2020 01:27:26 PM (6 years ago)
Author:
brewlabs
Message:

Update for WordPress 5.5

Location:
sendpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sendpress/trunk/classes/class-sendpress-phpmailer.php

    r1598832 r2366554  
    88}   
    99
    10 if(!class_exists('PHPMailer')){
    11     require( ABSPATH . WPINC . '/class-phpmailer.php');
     10
     11
     12
     13global $wp_version;
     14if ( version_compare( $wp_version, '5.5', '>=' ) ) {
     15    if(!class_exists('PHPMailer\PHPMailer\PHPMailer')) {
     16        require(ABSPATH . WPINC .'/PHPMailer/PHPMailer.php');
     17        require(ABSPATH . WPINC . '/PHPMailer/SMTP.php');
     18        require(ABSPATH . WPINC . '/PHPMailer/Exception.php');
     19    }
     20
     21    class SendPress_PHPMailer extends PHPMailer\PHPMailer\PHPMailer {
     22
     23    }
     24} else {
     25    if(!class_exists('PHPMailer')) {
     26        require(ABSPATH . WPINC . '/class-phpmailer.php');
     27    }
     28    class SendPress_PHPMailer extends PHPMailer {
     29
     30    }
    1231}
    1332
    14 class SendPress_PHPMailer extends PHPMailer {
    1533
    16 }
  • sendpress/trunk/readme.txt

    r2339909 r2366554  
    44Tags: newsletter, newsletters, manager newsletter, newsletter signup, newsletter widget, subscribers, subscription, email marketing, email, emailing, smtp, sendpress, sendgrid, mandrill, mailchimp
    55Requires at least: 4.4
    6 Tested up to: 5.4
    7 Stable tag: 1.20.7.13
     6Tested up to: 5.5
     7Stable tag: 1.20.8.21
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    119119Previous releases can be downloaded from [GitHub](https://github.com/brewlabs/sendpress/releases)
    120120
     121= 1.20.8.21 - 2020.8.21 =
     122* Update for WP 5.5
     123
    121124= 1.20.7.13 - 2020.7.13 =
    122125* Security fixes for settings page
  • sendpress/trunk/sendpress.php

    r2339909 r2366554  
    22/*
    33Plugin Name: SendPress Newsletters
    4 Version: 1.20.7.13
     4Version: 1.20.8.21
    55Plugin URI: https://sendpress.com
    66Description: Easy to manage Newsletters for WordPress.
     
    2020define( 'SENDPRESS_API_VERSION', 1 );
    2121define( 'SENDPRESS_MINIMUM_WP_VERSION', '3.6' );
    22 define( 'SENDPRESS_VERSION', '1.20.7.13' );
     22define( 'SENDPRESS_VERSION', '1.20.8.21' );
    2323define( 'SENDPRESS_URL', plugin_dir_url( __FILE__ ) );
    2424define( 'SENDPRESS_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.