From eb7d4cdbf94da20c988126c9bc1b57c21fcee7b5 Mon Sep 17 00:00:00 2001 From: David Parker Date: Thu, 21 Nov 2024 11:19:53 -0500 Subject: [PATCH] Changelog and version numbers --- CHANGELOG.txt | 13 +++++++++++++ includes/checkout.php | 2 +- includes/reports.php | 2 +- package.json | 2 +- paid-memberships-pro.php | 4 ++-- readme.txt | 15 ++++++++++++++- 6 files changed, 32 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 1a7217691..d8aeac2c0 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,17 @@ == Changelog == += 3.3.2 - 2024-11-21 = +* ENHANCEMENT: Updated the "Checkout Spam Protection" security setting to also check for spam when trying to apply invalid discount codes. #3208 (@ideadude, @dparker1005) +* ENHANCEMENT: Added a new filter `pmpro_registered_reports` for registering reports. #3200 (@mircobabini) +* ENHANCEMENT: Now showing the Stripe API version being used by PMPro in site health instead of on the Payment Gateways settings page. #3204 (@dparker1005) +* BUG FIX/ENHANCEMENT: Fixed an issue where Stripe error messages at checkout would not show at the bottom of the checkout page. #3194 (@andrewlimaza) +* BUG FIX/ENHANCEMENT: Now setting the discount code for an order during the `saveOrder()` method at checkout and when updating an order in the WP admin. #3190 (@dparker1005) +* BUG FIX/ENHANCEMENT: Improved the logic to get random order codes to help prevent duplicate order codes. #3191 (@dparker1005) +* BUG FIX: Fixed `doing_it_wrong` notices for strings that are localized before the `init` hook which started showing after sites updated to WordPress version 6.7. #3200 (@mircobabini) +* BUG FIX: Fixed an issue where the value '0' for a user field would be overwritten with the field's default value when displayed in the checkout form. #3189 (@dparker1005) +* BUG FIX: Fixed an issue where IP addresses may not be detected correctly when using the `pmpro_get_ip()` function. #3192 (@andrewlimaza) +* BUG FIX: Now ensuring that the `SITENAME` constant is not already defined before defining it. #3196 (@dparker1005) +* BUG FIX: Fixed a fatal error that would occur on the confirmation page if an invalid user ID is set on the order object being shown. #3207 (@dparker1005) + = 3.3.1 - 2024-10-24 = * ENHANCEMENT: Added a Subscriptions List Table to allow admins to view, manage, and link subscriptions from the WordPress admin. #2828 (@dparker1005, @kimcoleman) * ENHANCEMENT: Discount codes can now be set to only allow one use per user. #3175 (@dparker1005) diff --git a/includes/checkout.php b/includes/checkout.php index a556e0ef2..f5c03f1fb 100644 --- a/includes/checkout.php +++ b/includes/checkout.php @@ -256,7 +256,7 @@ function pmpro_complete_checkout( $order ) { //add discount code use if ( ! empty( $discount_code_id ) ) { - do_action_deprecated( 'pmpro_discount_code_used', array( $discount_code_id, $order->user_id, $order->id ), 'TBD', 'pmpro_added_order' ); + do_action_deprecated( 'pmpro_discount_code_used', array( $discount_code_id, $order->user_id, $order->id ), '3.3.2', 'pmpro_added_order' ); } //save first and last name fields diff --git a/includes/reports.php b/includes/reports.php index d664358db..466869937 100644 --- a/includes/reports.php +++ b/includes/reports.php @@ -7,7 +7,7 @@ /** * Populate the $pmpro_reports global. * - * @since TBD + * @since 3.3.2 */ function pmpro_populate_reports() { global $pmpro_reports; diff --git a/package.json b/package.json index 4640e8684..507cb8622 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paid-memberships-pro", - "version": "3.3.1", + "version": "3.3.2", "description": "WordPress Membership Plugin", "directories": { "test": "tests" diff --git a/paid-memberships-pro.php b/paid-memberships-pro.php index ada4014dd..38efe602f 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 Trusted Membership Platform That Grows with You - * Version: 3.3.1 + * Version: 3.3.2 * 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.3.1' ); +define( 'PMPRO_VERSION', '3.3.2' ); 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 43bd05287..d007cf2dd 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.6.2 Requires PHP: 5.6 -Stable tag: 3.3.1 +Stable tag: 3.3.2 License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -204,6 +204,19 @@ Not sure? You can find out by doing a bit a research. 4. [Ask using our contact form](https://www.paidmembershipspro.com/contact/) == Changelog == += 3.3.2 - 2024-11-21 = +* ENHANCEMENT: Updated the "Checkout Spam Protection" security setting to also check for spam when trying to apply invalid discount codes. #3208 (@ideadude, @dparker1005) +* ENHANCEMENT: Added a new filter `pmpro_registered_reports` for registering reports. #3200 (@mircobabini) +* ENHANCEMENT: Now showing the Stripe API version being used by PMPro in site health instead of on the Payment Gateways settings page. #3204 (@dparker1005) +* BUG FIX/ENHANCEMENT: Fixed an issue where Stripe error messages at checkout would not show at the bottom of the checkout page. #3194 (@andrewlimaza) +* BUG FIX/ENHANCEMENT: Now setting the discount code for an order during the `saveOrder()` method at checkout and when updating an order in the WP admin. #3190 (@dparker1005) +* BUG FIX/ENHANCEMENT: Improved the logic to get random order codes to help prevent duplicate order codes. #3191 (@dparker1005) +* BUG FIX: Fixed `doing_it_wrong` notices for strings that are localized before the `init` hook which started showing after sites updated to WordPress version 6.7. #3200 (@mircobabini) +* BUG FIX: Fixed an issue where the value '0' for a user field would be overwritten with the field's default value when displayed in the checkout form. #3189 (@dparker1005) +* BUG FIX: Fixed an issue where IP addresses may not be detected correctly when using the `pmpro_get_ip()` function. #3192 (@andrewlimaza) +* BUG FIX: Now ensuring that the `SITENAME` constant is not already defined before defining it. #3196 (@dparker1005) +* BUG FIX: Fixed a fatal error that would occur on the confirmation page if an invalid user ID is set on the order object being shown. #3207 (@dparker1005) + = 3.3.1 - 2024-10-24 = * ENHANCEMENT: Added a Subscriptions List Table to allow admins to view, manage, and link subscriptions from the WordPress admin. #2828 (@dparker1005, @kimcoleman) * ENHANCEMENT: Discount codes can now be set to only allow one use per user. #3175 (@dparker1005)