Paid Memberships Pro - Version 2.7.3

Version Description

  • 2022-02-01 =
  • ENHANCEMENT: Added CSS to make sure input fields input fields aren't extra tiny/short, e.g. in the Twenty Twenty Two theme. (@kimcoleman)
  • BUG FIX: Fixed a fatal error for older PHP sites when visiting the page settings in the admin dasboard. (@andrewlimaza)
  • BUG FIX: Fixed issue where license keys were incorrectly flagged as invalid if expiring within 1 month. (@ideadude)
  • BUG FIX: Fixed issue where billing addresses were not added to the Stripe customer at checkout. (@dparker1005)
Download this release

Release Info

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

Code changes from version 2.7.2 to 2.7.3

CHANGELOG.txt CHANGED
@@ -1,4 +1,10 @@
1
  == Changelog ==
 
 
 
 
 
 
2
  = 2.7.2 - 2022-01-17 =
3
  * BUG FIX/ENHANCEMENT: Improved error messages when creating subscriptions with Stripe. (@dparker1005)
4
  * BUG FIX: Fixed issue where certain Stripe trial periods would be sent to the Stripe subscription as longer than intended. #1912 (@dparker1005)
1
  == Changelog ==
2
+ = 2.7.3 - 2022-02-01 =
3
+ * ENHANCEMENT: Added CSS to make sure input fields input fields aren't extra tiny/short, e.g. in the Twenty Twenty Two theme. (@kimcoleman)
4
+ * BUG FIX: Fixed a fatal error for older PHP sites when visiting the page settings in the admin dasboard. (@andrewlimaza)
5
+ * BUG FIX: Fixed issue where license keys were incorrectly flagged as invalid if expiring within 1 month. (@ideadude)
6
+ * BUG FIX: Fixed issue where billing addresses were not added to the Stripe customer at checkout. (@dparker1005)
7
+
8
  = 2.7.2 - 2022-01-17 =
9
  * BUG FIX/ENHANCEMENT: Improved error messages when creating subscriptions with Stripe. (@dparker1005)
10
  * BUG FIX: Fixed issue where certain Stripe trial periods would be sent to the Stripe subscription as longer than intended. #1912 (@dparker1005)
adminpages/pagesettings.php CHANGED
@@ -28,7 +28,11 @@ $extra_pages = apply_filters('pmpro_extra_page_settings', array());
28
  $post_types = apply_filters( 'pmpro_admin_pagesetting_post_type_array', array( 'page' ) );
29
 
30
  // For backward compatibility we extract the first element from the array
31
- $post_type = is_array( $post_types ) ? $post_types[ array_key_first( $post_types ) ] : $post_types;
 
 
 
 
32
 
33
  /**
34
  * Set post type to use for PMPro pages in the page settings dropdown.
28
  $post_types = apply_filters( 'pmpro_admin_pagesetting_post_type_array', array( 'page' ) );
29
 
30
  // For backward compatibility we extract the first element from the array
31
+ if ( is_array( $post_types ) ) {
32
+ $post_type = reset( $post_types );
33
+ } else {
34
+ $post_type = $post_types;
35
+ }
36
 
37
  /**
38
  * Set post type to use for PMPro pages in the page settings dropdown.
classes/gateways/class.pmprogateway_stripe.php CHANGED
@@ -2035,7 +2035,7 @@ class PMProGateway_stripe extends PMProGateway {
2035
  ! empty( $order->billing->street ) &&
2036
  ! empty( $order->billing->city ) &&
2037
  ! empty( $order->billing->state ) &&
2038
- ! empty( $order->billing->postal_code ) &&
2039
  ! empty( $order->billing->country )
2040
  ) {
2041
  // We collected a billing address at checkout.
2035
  ! empty( $order->billing->street ) &&
2036
  ! empty( $order->billing->city ) &&
2037
  ! empty( $order->billing->state ) &&
2038
+ ! empty( $order->billing->zip ) &&
2039
  ! empty( $order->billing->country )
2040
  ) {
2041
  // We collected a billing address at checkout.
css/frontend.css CHANGED
@@ -148,6 +148,7 @@ form.pmpro_form select,
148
  #loginform input[type=password] {
149
  display: inline-block;
150
  max-width: 90%;
 
151
  }
152
  form.pmpro_form .pmpro_checkout-field-bcity_state_zip .input,
153
  form.pmpro_form .pmpro_checkout-field-bcity_state_zip select {
148
  #loginform input[type=password] {
149
  display: inline-block;
150
  max-width: 90%;
151
+ min-height: 1.5rem;
152
  }
153
  form.pmpro_form .pmpro_checkout-field-bcity_state_zip .input,
154
  form.pmpro_form .pmpro_checkout-field-bcity_state_zip select {
includes/license.php CHANGED
@@ -64,7 +64,7 @@ function pmpro_license_isValid($key = NULL, $type = NULL, $force = false) {
64
  }
65
 
66
  // Check if 30 days past the end date. (We only run the cron every 30 days.)
67
- if ( $pmpro_license_check['enddate'] < ( current_time( 'timestamp' ) + 86400*31 ) ) {
68
  return false;
69
  }
70
 
64
  }
65
 
66
  // Check if 30 days past the end date. (We only run the cron every 30 days.)
67
+ if ( $pmpro_license_check['enddate'] < ( current_time( 'timestamp' ) - 86400*31 ) ) {
68
  return false;
69
  }
70
 
paid-memberships-pro.php CHANGED
@@ -3,9 +3,9 @@
3
  * Plugin Name: Paid Memberships Pro
4
  * Plugin URI: https://www.paidmembershipspro.com
5
  * Description: The most complete member management and membership subscriptions plugin for WordPress.
6
- * Version: 2.7.2
7
- * Author: Stranger Studios
8
- * Author URI: https://www.strangerstudios.com
9
  * Text Domain: paid-memberships-pro
10
  * Domain Path: /languages
11
  */
@@ -16,7 +16,7 @@
16
  */
17
 
18
  // version constant
19
- define( 'PMPRO_VERSION', '2.7.2' );
20
  define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
21
  define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
22
 
3
  * Plugin Name: Paid Memberships Pro
4
  * Plugin URI: https://www.paidmembershipspro.com
5
  * Description: The most complete member management and membership subscriptions plugin for WordPress.
6
+ * Version: 2.7.3
7
+ * Author: Paid Memberships Pro
8
+ * Author URI: https://www.paidmembershipspro.com
9
  * Text Domain: paid-memberships-pro
10
  * Domain Path: /languages
11
  */
16
  */
17
 
18
  // version constant
19
+ define( 'PMPRO_VERSION', '2.7.3' );
20
  define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
21
  define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
22
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Paid Memberships Pro ===
2
  Contributors: strangerstudios, kimannwall, andrewza, dlparker1005, paidmembershipspro
3
  Tags: memberships, members, subscriptions, ecommerce, user registration, member, membership, e-commerce, paypal, stripe, braintree, authorize.net, payflow, restrict access, restrict content, directory
4
  Requires at least: 5.2
5
  Tested up to: 5.9
6
  Requires PHP: 5.6
7
- Stable tag: 2.7.2
8
 
9
  Get Paid with Paid Memberships Pro: The most complete member management and membership subscriptions plugin for your WordPress site.
10
 
@@ -156,6 +156,12 @@ Not sure? You can find out by doing a bit a research.
156
  9. Membership Account page, display all sections or show specific sections using shortcode attributes.
157
 
158
  == Changelog ==
 
 
 
 
 
 
159
  = 2.7.2 - 2022-01-17 =
160
  * BUG FIX/ENHANCEMENT: Improved error messages when creating subscriptions with Stripe. (@dparker1005)
161
  * BUG FIX: Fixed issue where certain Stripe trial periods would be sent to the Stripe subscription as longer than intended. #1912 (@dparker1005)
1
+ === Paid Memberships Pro - Sell Free or Paid Subscriptions with Stripe & PayPal ===
2
  Contributors: strangerstudios, kimannwall, andrewza, dlparker1005, paidmembershipspro
3
  Tags: memberships, members, subscriptions, ecommerce, user registration, member, membership, e-commerce, paypal, stripe, braintree, authorize.net, payflow, restrict access, restrict content, directory
4
  Requires at least: 5.2
5
  Tested up to: 5.9
6
  Requires PHP: 5.6
7
+ Stable tag: 2.7.3
8
 
9
  Get Paid with Paid Memberships Pro: The most complete member management and membership subscriptions plugin for your WordPress site.
10
 
156
  9. Membership Account page, display all sections or show specific sections using shortcode attributes.
157
 
158
  == Changelog ==
159
+ = 2.7.3 - 2022-02-01 =
160
+ * ENHANCEMENT: Added CSS to make sure input fields input fields aren't extra tiny/short, e.g. in the Twenty Twenty Two theme. (@kimcoleman)
161
+ * BUG FIX: Fixed a fatal error for older PHP sites when visiting the page settings in the admin dasboard. (@andrewlimaza)
162
+ * BUG FIX: Fixed issue where license keys were incorrectly flagged as invalid if expiring within 1 month. (@ideadude)
163
+ * BUG FIX: Fixed issue where billing addresses were not added to the Stripe customer at checkout. (@dparker1005)
164
+
165
  = 2.7.2 - 2022-01-17 =
166
  * BUG FIX/ENHANCEMENT: Improved error messages when creating subscriptions with Stripe. (@dparker1005)
167
  * BUG FIX: Fixed issue where certain Stripe trial periods would be sent to the Stripe subscription as longer than intended. #1912 (@dparker1005)