Plugin Directory

Changeset 2721586

Timestamp:
05/10/2022 11:03:37 PM (2 years ago)
Author:
MyThemeShop
Message:

Update to version 1.2.16 from GitHub

Location:
wp-subscribe
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-subscribe/tags/1.2.16/includes/subscription/class-wps-aweber.php

    r2717363 r2721586  
    137137                'name' => $name,
    138138                'email' => $identity['email'],
    139                 'ip_address' => $_SERVER['REMOTE_ADDR'],
     139                // Sanitize IP:
     140                'ip_address' => filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP ),
    140141                'ad_tracking' => 'mythemeshop'
    141142            );
     
    150151
    151152            // already waiting confirmation:
    152             // "Subscriber already subscribed and has not confirmed."
    153             if ( strpos( $e->getMessage(), 'has not confirmed' ) ) {
    154                 return array( 'status' => 'pending' );
    155             }
    156 
    157             // already waiting confirmation:
    158             // "Subscriber already subscribed."
    159             if ( strpos( $e->getMessage(), 'already subscribed' ) ) {
    160                 return array( 'status' => 'pending' );
    161             }
     153// "Subscriber already subscribed and has not confirmed."
     154if ( strpos( $e->getMessage(), 'has not confirmed' ) ) {
     155return array( 'status' => 'pending' );
     156}
     157
     158// already waiting confirmation:
     159// "Subscriber already subscribed."
     160if ( strpos( $e->getMessage(), 'already subscribed' ) ) {
     161return array( 'status' => 'pending' );
     162}
    162163
    163164            throw new Exception ( '[subscribe]: ' . $e->getMessage() );
  • wp-subscribe/tags/1.2.16/readme.txt

    r2718956 r2721586  
    55Requires at least: 4.0
    66Tested up to: 5.9.3
    7 Stable tag: 1.2.15
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8282
    8383== Changelog ==
     84
     85
     86
    8487
    8588= 1.2.15 =
  • wp-subscribe/tags/1.2.16/wp-subscribe.php

    r2718956 r2721586  
    44 * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/
    55 * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
    6  * Version: 1.2.15
     6 * Version: 1.2.1
    77 * Author: MyThemeShop
    88 * Author URI: http://mythemeshop.com/
     
    2828         * @var string
    2929         */
    30         private $version = '1.2.15';
     30        private $version = '1.2.1';
    3131
    3232        /**
  • wp-subscribe/trunk/includes/subscription/class-wps-aweber.php

    r2717363 r2721586  
    137137                'name' => $name,
    138138                'email' => $identity['email'],
    139                 'ip_address' => $_SERVER['REMOTE_ADDR'],
     139                // Sanitize IP:
     140                'ip_address' => filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP ),
    140141                'ad_tracking' => 'mythemeshop'
    141142            );
     
    150151
    151152            // already waiting confirmation:
    152             // "Subscriber already subscribed and has not confirmed."
    153             if ( strpos( $e->getMessage(), 'has not confirmed' ) ) {
    154                 return array( 'status' => 'pending' );
    155             }
    156 
    157             // already waiting confirmation:
    158             // "Subscriber already subscribed."
    159             if ( strpos( $e->getMessage(), 'already subscribed' ) ) {
    160                 return array( 'status' => 'pending' );
    161             }
     153// "Subscriber already subscribed and has not confirmed."
     154if ( strpos( $e->getMessage(), 'has not confirmed' ) ) {
     155return array( 'status' => 'pending' );
     156}
     157
     158// already waiting confirmation:
     159// "Subscriber already subscribed."
     160if ( strpos( $e->getMessage(), 'already subscribed' ) ) {
     161return array( 'status' => 'pending' );
     162}
    162163
    163164            throw new Exception ( '[subscribe]: ' . $e->getMessage() );
  • wp-subscribe/trunk/readme.txt

    r2718956 r2721586  
    55Requires at least: 4.0
    66Tested up to: 5.9.3
    7 Stable tag: 1.2.15
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8282
    8383== Changelog ==
     84
     85
     86
    8487
    8588= 1.2.15 =
  • wp-subscribe/trunk/wp-subscribe.php

    r2718956 r2721586  
    44 * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/
    55 * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
    6  * Version: 1.2.15
     6 * Version: 1.2.1
    77 * Author: MyThemeShop
    88 * Author URI: http://mythemeshop.com/
     
    2828         * @var string
    2929         */
    30         private $version = '1.2.15';
     30        private $version = '1.2.1';
    3131
    3232        /**
Note: See TracChangeset for help on using the changeset viewer.