Skip to content

Commit

Permalink
Merge branch 'develop' into epic/campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva authored Dec 10, 2024
2 parents c9c3e4f + de51672 commit a4648f6
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 13 deletions.
8 changes: 4 additions & 4 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
* Author: GiveWP
* Author URI: https://givewp.com/
* Version: 3.18.0
* Version: 3.19.0
* Requires at least: 6.5
* Requires PHP: 7.2
* Text Domain: give
Expand Down Expand Up @@ -271,7 +271,7 @@ public function __construct()
/**
* Init Give when WordPress Initializes.
*
* @unreleased Move the loading of the `give` textdomain to the `init` action hook.
* @since 3.19.0 Move the loading of the `give` textdomain to the `init` action hook.
* @since 1.8.9
*/
public function init()
Expand Down Expand Up @@ -380,7 +380,7 @@ private function loadServiceProviders()
/**
* Bootstraps the Give Plugin
*
* @unreleased Load the `give` textdomain on the `init` action hook.
* @since 3.19.0 Load the `give` textdomain on the `init` action hook.
* @since 2.8.0
*/
public function boot()
Expand Down Expand Up @@ -414,7 +414,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '3.18.0');
define('GIVE_VERSION', '3.19.0');
}

// Plugin Root File.
Expand Down
8 changes: 6 additions & 2 deletions includes/country-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2108,8 +2108,12 @@ function give_get_indonesian_states_list() {
/**
* Get Indian States
*
* @since 1.0
* @link https://en.wikipedia.org/wiki/ISO_3166-2:IN
* @link https://www.iso.org/obp/ui/#iso:code:3166:IN
*
* @unreleased Changed subdivision code for Odisha (OD)
* @since 2.11.0 Renamed Indian state of Orissa to Odisha (#5826)
* @since 1.0
*
* @return array $states A list of states
*/
Expand All @@ -2135,7 +2139,7 @@ function give_get_indian_states_list() {
'ML' => 'Meghalaya',
'MZ' => 'Mizoram',
'NL' => 'Nagaland',
'OR' => 'Odisha',
'OD' => 'Odisha',
'PB' => 'Punjab',
'RJ' => 'Rajasthan',
'SK' => 'Sikkim',
Expand Down
3 changes: 2 additions & 1 deletion includes/payments/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ function give_refresh_thismonth_stat_transients( $payment_ID ) {
* Add support to get all payment meta.
* Note: only use for internal purpose
*
* @unreleased change $donor_data['address'] to array instead of false
* @since 2.0
*
* @param $check
Expand Down Expand Up @@ -362,7 +363,7 @@ function ( &$meta, $key ) {
// User ID.
$donor_data['id'] = $donation->user_id;

$donor_data['address'] = false;
$donor_data['address'] = [];

// Address1.
$address1 = ! empty( $payment_meta['_give_donor_billing_address1'] ) ? $payment_meta['_give_donor_billing_address1'] : '';
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.2
Stable tag: 3.18.0
Stable tag: 3.19.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -266,6 +266,12 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
10. Use almost any payment gateway integration with GiveWP through our add-ons or by creating your own add-on.

== Changelog ==
= 3.19.0: December 5th, 2024 =
* New: Added support to the donor dashboard for managing recurring donations from our Blink Payment Gateway add-on
* Fix: Resolved a compatability issue with loading translations on WordPress 6.7
* Security: Added sanitization to the manual migrations parameters


= 3.18.0: November 20th, 2024 =
* New: Added support to our form migration process for our upcoming Constant Contact add-on 3.0.0 version
* New: The donor wall now shows the donor's uploaded image avatar when available
Expand Down
2 changes: 1 addition & 1 deletion src/DonorDashboards/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function getLoaderTemplatePath()
/**
* Enqueue assets for front-end donor dashboards
*
* @unreleased Add action to allow enqueueing additional assets.
* @since 3.19.0 Add action to allow enqueueing additional assets.
* @since 2.11.0 Set script translations.
* @since 2.10.0
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import SubscriptionCancelModal from '../subscription-cancel-modal';
const normalizeAmount = (float, decimals) => Number.parseFloat(float).toFixed(decimals);

/**
* @unreleased Add support for hiding amount controls via filter
* @since 3.19.0 Add support for hiding amount controls via filter
*/
const SubscriptionManager = ({id, subscription}) => {
const gatewayRef = useRef();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import CardControl from './card-control';
import './style.scss';

/**
* @unreleased Add controller for Blink payment method.
* @since 3.19.0 Add controller for Blink payment method.
*/
const PaymentMethodControl = (props) => {
switch (props.gateway.id) {
Expand Down
5 changes: 3 additions & 2 deletions src/Framework/Migrations/Controllers/ManualMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ public function __construct(MigrationsRegister $migrationsRegister)
}

/**
* @since 3.19.0 sanitize params
* @since 2.9.2
*/
public function __invoke()
{
if ( ! empty($_GET['give-run-migration'])) {
$migrationToRun = $_GET['give-run-migration'];
$migrationToRun = give_clean($_GET['give-run-migration']);
}

if ( ! empty($_GET['give-clear-update'])) {
$migrationToClear = $_GET['give-clear-update'];
$migrationToClear = give_clean($_GET['give-clear-update']);
}

$hasMigration = isset($migrationToRun) || isset($migrationToClear);
Expand Down

0 comments on commit a4648f6

Please sign in to comment.