Paid Memberships Pro - Version 1.9.5.3

Version Description

  • 2018-06-26 =
  • BUG FIX: The pmpro_ipnhandler_extend_memberships function actually needed use $user_id instead of $current_user.
Download this release

Release Info

Developer strangerstudios
Plugin Icon 128x128 Paid Memberships Pro
Version 1.9.5.3
Comparing to
See all releases

Code changes from version 1.9.5.2 to 1.9.5.3

CHANGELOG.txt CHANGED
@@ -1,4 +1,10 @@
1
== Changelog ==
2
3
= 1.9.5.1 - 2018-06-08 =
4
* BUG FIX: Fixed issue with the PayPal IPN Handler where existing users checking out for a new level would sometimes have their membership and new subscription cancelled.
1
== Changelog ==
2
+ = 1.9.5.3 - 2018-06-26 =
3
+ * BUG FIX: The pmpro_ipnhandler_extend_memberships function actually needed use $user_id instead of $current_user.
4
+
5
+ = 1.9.5.2 - 2018-06-26 =
6
+ * BUG FIX: Fixed compatibility with Theme My Login version 7. (Thanks, Jeff Farthing)
7
+ * BUG FIX: Fixed missing $current_user bug in pmpro_ipnhandler_level_extend_memberships function. (Thanks, Anne)
8
9
= 1.9.5.1 - 2018-06-08 =
10
* BUG FIX: Fixed issue with the PayPal IPN Handler where existing users checking out for a new level would sometimes have their membership and new subscription cancelled.
includes/filters.php CHANGED
@@ -60,8 +60,7 @@ function pmpro_ipnhandler_level_extend_memberships( $level, $user_id ) {
60
// does this level expire? are they an existing user of this level?
61
if ( ! empty( $level ) && ! empty( $level->expiration_number ) && pmpro_hasMembershipLevel( $level->id, $user_id ) ) {
62
// get the current enddate of their membership
63
- global $current_user;
64
- $user_level = pmpro_getSpecificMembershipLevelForUser( $current_user->ID, $level->id );
65
66
// bail if their existing level doesn't have an end date
67
if ( empty( $user_level ) || empty( $user_level->enddate ) ) {
@@ -235,4 +234,3 @@ function pmpro_pmpro_subscribe_order_startdate_limit( $order, $gateway ) {
235
return $order;
236
}
237
add_filter( 'pmpro_subscribe_order', 'pmpro_pmpro_subscribe_order_startdate_limit', 99, 2 );
238
-
60
// does this level expire? are they an existing user of this level?
61
if ( ! empty( $level ) && ! empty( $level->expiration_number ) && pmpro_hasMembershipLevel( $level->id, $user_id ) ) {
62
// get the current enddate of their membership
63
+ $user_level = pmpro_getSpecificMembershipLevelForUser( $user_id, $level->id );
64
65
// bail if their existing level doesn't have an end date
66
if ( empty( $user_level ) || empty( $user_level->enddate ) ) {
234
return $order;
235
}
236
add_filter( 'pmpro_subscribe_order', 'pmpro_pmpro_subscribe_order_startdate_limit', 99, 2 );
paid-memberships-pro.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Paid Memberships Pro
4
Plugin URI: http://www.paidmembershipspro.com
5
Description: Plugin to Handle Memberships
6
- Version: 1.9.5.2
7
Author: Stranger Studios
8
Author URI: http://www.strangerstudios.com
9
Text Domain: paid-memberships-pro
@@ -14,8 +14,8 @@ Domain Path: /languages
14
GPLv2 Full license details in license.txt
15
*/
16
17
- // version constant.1
18
- define( 'PMPRO_VERSION', '1.9.5.2' );
19
define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
20
define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
21
3
Plugin Name: Paid Memberships Pro
4
Plugin URI: http://www.paidmembershipspro.com
5
Description: Plugin to Handle Memberships
6
+ Version: 1.9.5.3
7
Author: Stranger Studios
8
Author URI: http://www.strangerstudios.com
9
Text Domain: paid-memberships-pro
14
GPLv2 Full license details in license.txt
15
*/
16
17
+ // version constant
18
+ define( 'PMPRO_VERSION', '1.9.5.3' );
19
define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
20
define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
21
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: strangerstudios
3
Tags: membership, memberships, member, members, ecommerce, e-commerce, paypal, stripe, braintree, authorize.net, payflow, restrict access, restrict content, directory
4
Requires at least: 4
5
Tested up to: 4.9.6
6
- Stable tag: 1.9.5.2
7
8
Get Paid with Paid Memberships Pro: The most complete member management and membership subscriptions plugin for your WordPress site.
9
@@ -129,6 +129,9 @@ Not sure? You can find out by doing a bit a research.
129
130
== Changelog ==
131
132
= 1.9.5.2 - 2018-06-26 =
133
* BUG FIX: Fixed compatibility with Theme My Login version 7. (Thanks, Jeff Farthing)
134
* BUG FIX: Fixed missing $current_user bug in pmpro_ipnhandler_level_extend_memberships function. (Thanks, Anne)
3
Tags: membership, memberships, member, members, ecommerce, e-commerce, paypal, stripe, braintree, authorize.net, payflow, restrict access, restrict content, directory
4
Requires at least: 4
5
Tested up to: 4.9.6
6
+ Stable tag: 1.9.5.3
7
8
Get Paid with Paid Memberships Pro: The most complete member management and membership subscriptions plugin for your WordPress site.
9
129
130
== Changelog ==
131
132
+ = 1.9.5.3 - 2018-06-26 =
133
+ * BUG FIX: The pmpro_ipnhandler_extend_memberships function actually needed use $user_id instead of $current_user.
134
+
135
= 1.9.5.2 - 2018-06-26 =
136
* BUG FIX: Fixed compatibility with Theme My Login version 7. (Thanks, Jeff Farthing)
137
* BUG FIX: Fixed missing $current_user bug in pmpro_ipnhandler_level_extend_memberships function. (Thanks, Anne)