From ba3285ade8a60daa029b2a3bde66b131d50eaef5 Mon Sep 17 00:00:00 2001 From: David Parker Date: Thu, 18 Apr 2024 11:51:47 -0400 Subject: [PATCH] Changelog and version numbers --- CHANGELOG.txt | 14 ++++++++++++++ classes/class-pmpro-subscription.php | 2 +- classes/class.memberorder.php | 2 +- includes/checkout.php | 2 +- package.json | 2 +- paid-memberships-pro.php | 4 ++-- readme.txt | 16 +++++++++++++++- services/stripe-webhook.php | 2 +- 8 files changed, 36 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d80ad48062..8f212fdf36 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,18 @@ == Changelog == += 3.0.3 - 2024-04-18 = +* ENHANCEMENT: No longer making API calls to pull subscription data from Stripe or PayPal Express when we do not have gateway credentials. #2956 (@mircobabini) +* ENHANCEMENT: Added new filters `pmpro_subscription_gateway_object` and `pmpro_order_gateway_object` to allow developers to modify gateway objects before they are used. #2962 (@mircobabini) +* ENHANCEMENT: Added a new filter `pmpro_stripe_before_retrieve_webhook_event` to allow developers to modify the Stripe API key before retrieving a webhook event. #2962 (@mircobabini) +* BUG FIX: Fixed an issue where nonce verification checks may fail when creating a new user at checkout. #2963 (@dparker1005) +* BUG FIX: Fixed issues where users' roles could be unintentionally changed on the Edit Member page by making the "Role" field read-only. #2961 (@dparker1005) +* BUG FIX: Fixed an issue where the status for an old membership level would be `changed` instead of `admin_changed` when an admin modified a user's membership. #2965 (@dparker1005) +* BUG FIX: Fixed PHP errors in the PMPro "Recent Members" Dashboard widget when a user that would be shown on that list was deleted. #2964 (@andrewlimaza) +* BUG FIX: Added some missing global variables on admin pages. #2955 (@mircobabini) +* BUG FIX: Fixed missing CSS color variable. #2955 (@kimcoleman) +* BUG FIX: Fixed variable name when generating an error message in the Stripe webhook. #2955 (@mircobabini) +* BUG FIX: Fixed an issue where the Braintree webhook log may not include transaction details. #2955 (@mircobabini) +* REFACTOR: Removed duplicate array elements throughout the codebase. #2955 (@mircobabini) + = 3.0.2 - 2024-04-11 = * ENHANCEMENT: Added settings to disable custom page templates when they are out of date. #2923 (@dparker1005, @kimcoleman) * ENHANCEMENT: Now defaulting the "View: My Access" setting to "View with my access". #2938 (@andrewlimaza) diff --git a/classes/class-pmpro-subscription.php b/classes/class-pmpro-subscription.php index 5f80abb645..f6344f12f2 100644 --- a/classes/class-pmpro-subscription.php +++ b/classes/class-pmpro-subscription.php @@ -826,7 +826,7 @@ public function get_gateway_object() { * @param PMProGateway $gateway_object Gateway object. * @param PMPro_Subscription $this Subscription object. * - * @since TBD + * @since 3.0.3 */ $gateway_object = apply_filters( 'pmpro_subscription_gateway_object', $gateway_object, $this ); diff --git a/classes/class.memberorder.php b/classes/class.memberorder.php index fd5c94f40c..cb83247966 100644 --- a/classes/class.memberorder.php +++ b/classes/class.memberorder.php @@ -916,7 +916,7 @@ function setGateway($gateway = NULL) { * @param PMProGateway $gateway_object Gateway object. * @param MemberOrder $this Member order object. * - * @since TBD + * @since 3.0.3 */ $this->Gateway = apply_filters( 'pmpro_order_gateway_object', $this->Gateway, $this ); diff --git a/includes/checkout.php b/includes/checkout.php index 6e0e2a8e83..ad71d8be2f 100644 --- a/includes/checkout.php +++ b/includes/checkout.php @@ -277,7 +277,7 @@ function pmpro_complete_async_checkout( $order ) { * AJAX method to get the checkout nonce. * Important for correcting the nonce value at checkout if the user is logged in during the same page load. * - * @since TBD + * @since 3.0.3 */ function pmpro_get_checkout_nonce() { // Output the checkout nonce. diff --git a/package.json b/package.json index 3e4a42f8fe..b41a759da8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paid-memberships-pro", - "version": "3.0.2", + "version": "3.0.3", "description": "WordPress Membership Plugin", "directories": { "test": "tests" diff --git a/paid-memberships-pro.php b/paid-memberships-pro.php index d8b40b0fb9..506f8ceadc 100644 --- a/paid-memberships-pro.php +++ b/paid-memberships-pro.php @@ -3,7 +3,7 @@ * Plugin Name: Paid Memberships Pro * Plugin URI: https://www.paidmembershipspro.com * Description: The most complete member management and membership subscriptions plugin for WordPress. - * Version: 3.0.2 + * Version: 3.0.3 * Author: Paid Memberships Pro * Author URI: https://www.paidmembershipspro.com * Text Domain: paid-memberships-pro @@ -16,7 +16,7 @@ */ // version constant -define( 'PMPRO_VERSION', '3.0.2' ); +define( 'PMPRO_VERSION', '3.0.3' ); define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() ); define( 'PMPRO_MIN_PHP_VERSION', '5.6' ); diff --git a/readme.txt b/readme.txt index cfc5a99db2..ddd41dc6fa 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: memberships, member, community, user profile, user registration Requires at least: 5.2 Tested up to: 6.5 Requires PHP: 5.6 -Stable tag: 3.0.2 +Stable tag: 3.0.3 Build a membership site that grows with you: user registration, member profiles, 28 protected content types, free or paid subscriptions. @@ -214,6 +214,20 @@ Not sure? You can find out by doing a bit a research. 10. Advanced settings for updating non-member messages, optionally show excerpts or filter content, use reCAPTCHA, and a Terms of Service checkbox. == Changelog == += 3.0.3 - 2024-04-18 = +* ENHANCEMENT: No longer making API calls to pull subscription data from Stripe or PayPal Express when we do not have gateway credentials. #2956 (@mircobabini) +* ENHANCEMENT: Added new filters `pmpro_subscription_gateway_object` and `pmpro_order_gateway_object` to allow developers to modify gateway objects before they are used. #2962 (@mircobabini) +* ENHANCEMENT: Added a new filter `pmpro_stripe_before_retrieve_webhook_event` to allow developers to modify the Stripe API key before retrieving a webhook event. #2962 (@mircobabini) +* BUG FIX: Fixed an issue where nonce verification checks may fail when creating a new user at checkout. #2963 (@dparker1005) +* BUG FIX: Fixed issues where users' roles could be unintentionally changed on the Edit Member page by making the "Role" field read-only. #2961 (@dparker1005) +* BUG FIX: Fixed an issue where the status for an old membership level would be `changed` instead of `admin_changed` when an admin modified a user's membership. #2965 (@dparker1005) +* BUG FIX: Fixed PHP errors in the PMPro "Recent Members" Dashboard widget when a user that would be shown on that list was deleted. #2964 (@andrewlimaza) +* BUG FIX: Added some missing global variables on admin pages. #2955 (@mircobabini) +* BUG FIX: Fixed missing CSS color variable. #2955 (@kimcoleman) +* BUG FIX: Fixed variable name when generating an error message in the Stripe webhook. #2955 (@mircobabini) +* BUG FIX: Fixed an issue where the Braintree webhook log may not include transaction details. #2955 (@mircobabini) +* REFACTOR: Removed duplicate array elements throughout the codebase. #2955 (@mircobabini) + = 3.0.2 - 2024-04-11 = * ENHANCEMENT: Added settings to disable custom page templates when they are out of date. #2923 (@dparker1005, @kimcoleman) * ENHANCEMENT: Now defaulting the "View: My Access" setting to "View with my access". #2938 (@andrewlimaza) diff --git a/services/stripe-webhook.php b/services/stripe-webhook.php index 603f9227e0..67ceb2f684 100644 --- a/services/stripe-webhook.php +++ b/services/stripe-webhook.php @@ -62,7 +62,7 @@ /** * Allow adding other content after the Order Settings table. * - * @since TBD + * @since 3.0.3 */ do_action( 'pmpro_stripe_before_retrieve_webhook_event' );