From 21ee8da094c9332219dd9f2c98e512b21ccbefa8 Mon Sep 17 00:00:00 2001 From: Andrew Lima Date: Tue, 29 Sep 2020 19:59:34 +0200 Subject: [PATCH] Changelog update. --- pmpro-sponsored-members.php | 4 ++-- readme.txt | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pmpro-sponsored-members.php b/pmpro-sponsored-members.php index b39abf4..c0ebefa 100755 --- a/pmpro-sponsored-members.php +++ b/pmpro-sponsored-members.php @@ -907,9 +907,9 @@ function pmprosm_pmpro_checkout_boxes() if ($max_seats > 1) { if ( isset( $pmprosm_values['seat_cost_text'] ) ) { - printf( __( "Enter a number from %d to %d. %s", "pmpro-sponsored-members" ), $min_seats, $pmprosm_values['max_seats'], $pmprosm_values['seat_cost_text'] ); + printf( esc_html__( "Enter a number from %d to %d. %s", "pmpro-sponsored-members" ), $min_seats, $pmprosm_values['max_seats'], $pmprosm_values['seat_cost_text'] ); } else { - printf( __( "Enter a number from %d to %d. +%s per extra seat.", "pmpro-sponsored-members" ), $min_seats, $pmprosm_values['max_seats'], $pmpro_currency_symbol . $pmprosm_values['seat_cost'] ); + printf( esc_html__( "Enter a number from %d to %d. +%s per extra seat.", "pmpro-sponsored-members" ), $min_seats, $pmprosm_values['max_seats'], $pmpro_currency_symbol . $pmprosm_values['seat_cost'] ); } } ?> diff --git a/readme.txt b/readme.txt index 15def8b..7256aa0 100755 --- a/readme.txt +++ b/readme.txt @@ -37,6 +37,15 @@ Once the plugin is activated with the PMPROSM_MAIN_ACCOUNT_LEVEL and PMPROSM_SPO Please post it in the issues section of GitHub and we'll fix it as soon as we can. Thanks for helping. https://github.com/strangerstudios/pmpro-sponsored-members/issues == Changelog == += 0.8 - 30-09-2020 = +* BUG FIX: Fixed bug where PayPal Express wasn't saving the number of 'child' seats correctly. +* BUG FIX: Fixed a PHP warning when editing non-members in the WordPress dashboard. Thanks @cipriantepes +* BUG FIX: Fixed a warning when child level ID's was an array and tried to output a string value during checkout. +* BUG FIX: Fixed child account heading (numbering) when creating child accounts during checkout. This was out by 1. +* BUG FIX/ENHANCEMENT: Prevent sponsored members for signing up with their own discount codes. +* ENHANCEMENT: New filter added to allow dynamic changes done to code created - 'pmprosm_sponsored_code_settings' +* ENHANCEMENT: Localization and escaping of text on the front-end. Thanks @sebthesun + = .7 = * BUG FIX: Fixed bug where discount codes were not being saved when using PayPal Express. Fixed other PayPal Express-related bugs. * BUG FIX: Fixed bugs with the checkout URL generated for the sponsor code.