Version Description
Download this release
Release Info
Developer | dlocc |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 2.5.8 |
Comparing to | |
See all releases |
Code changes from version 2.5.7 to 2.5.8
- give.php +2 -2
- includes/admin/upgrades/upgrade-functions.php +51 -1
- languages/give.pot +2 -2
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
-
* Version: 2.5.
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
@@ -439,7 +439,7 @@ if ( ! class_exists( 'Give' ) ) :
|
|
439 |
|
440 |
// Plugin version.
|
441 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
442 |
-
define( 'GIVE_VERSION', '2.5.
|
443 |
}
|
444 |
|
445 |
// Plugin Root File.
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
+
* Version: 2.5.8
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
439 |
|
440 |
// Plugin version.
|
441 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
442 |
+
define( 'GIVE_VERSION', '2.5.8' );
|
443 |
}
|
444 |
|
445 |
// Plugin Root File.
|
includes/admin/upgrades/upgrade-functions.php
CHANGED
@@ -134,6 +134,10 @@ function give_do_automatic_upgrades() {
|
|
134 |
case version_compare( $give_version, '2.5.0', '<' ):
|
135 |
give_v250_upgrades();
|
136 |
$did_upgrade = true;
|
|
|
|
|
|
|
|
|
137 |
}
|
138 |
|
139 |
if ( $did_upgrade || version_compare( $give_version, GIVE_VERSION, '<' ) ) {
|
@@ -3414,7 +3418,7 @@ function give_v241_remove_sale_logs_callback() {
|
|
3414 |
/**
|
3415 |
* DB upgrades for Give 2.5.0
|
3416 |
*
|
3417 |
-
*
|
3418 |
*/
|
3419 |
function give_v250_upgrades() {
|
3420 |
global $wpdb;
|
@@ -3507,3 +3511,49 @@ function give_v250_upgrades() {
|
|
3507 |
|
3508 |
give_refresh_licenses();
|
3509 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
case version_compare( $give_version, '2.5.0', '<' ):
|
135 |
give_v250_upgrades();
|
136 |
$did_upgrade = true;
|
137 |
+
|
138 |
+
case version_compare( $give_version, '2.5.8', '<' ):
|
139 |
+
give_v258_upgrades();
|
140 |
+
$did_upgrade = true;
|
141 |
}
|
142 |
|
143 |
if ( $did_upgrade || version_compare( $give_version, GIVE_VERSION, '<' ) ) {
|
3418 |
/**
|
3419 |
* DB upgrades for Give 2.5.0
|
3420 |
*
|
3421 |
+
* @since 2.5.0
|
3422 |
*/
|
3423 |
function give_v250_upgrades() {
|
3424 |
global $wpdb;
|
3511 |
|
3512 |
give_refresh_licenses();
|
3513 |
}
|
3514 |
+
|
3515 |
+
/**
|
3516 |
+
* DB upgrades for Give 2.5.8
|
3517 |
+
*
|
3518 |
+
* @since 2.5.8
|
3519 |
+
*/
|
3520 |
+
function give_v258_upgrades() {
|
3521 |
+
|
3522 |
+
$is_checkout_enabled = give_is_setting_enabled( give_get_option( 'stripe_checkout_enabled', 'disabled' ) );
|
3523 |
+
|
3524 |
+
// Bailout, if stripe checkout is not active as a gateway.
|
3525 |
+
if ( ! $is_checkout_enabled ) {
|
3526 |
+
return;
|
3527 |
+
}
|
3528 |
+
|
3529 |
+
$enabled_gateways = give_get_option( 'gateways', array() );
|
3530 |
+
|
3531 |
+
// Bailout, if Stripe Checkout is already enabled.
|
3532 |
+
if ( ! empty( $enabled_gateways['stripe_checkout'] ) ) {
|
3533 |
+
return;
|
3534 |
+
}
|
3535 |
+
|
3536 |
+
$gateways_label = give_get_option( 'gateways_label', array() );
|
3537 |
+
$default_gateway = give_get_option( 'default_gateway' );
|
3538 |
+
|
3539 |
+
// Set Stripe Checkout as active gateway.
|
3540 |
+
$enabled_gateways['stripe_checkout'] = 1;
|
3541 |
+
|
3542 |
+
// Unset Stripe - Credit Card as an active gateway.
|
3543 |
+
unset( $enabled_gateways['stripe'] );
|
3544 |
+
|
3545 |
+
// Set Stripe Checkout same as Stripe as they have enabled Stripe Checkout under Stripe using same label.
|
3546 |
+
$gateways_label['stripe_checkout'] = $gateways_label['stripe'];
|
3547 |
+
give_update_option( 'gateways_label', $gateways_label );
|
3548 |
+
|
3549 |
+
// If default gateway selected is `stripe` then set `stripe checkout` as default.
|
3550 |
+
if ( 'stripe' === $default_gateway ) {
|
3551 |
+
give_update_option( 'default_gateway', 'stripe_checkout' );
|
3552 |
+
}
|
3553 |
+
|
3554 |
+
// Update the enabled gateways in database.
|
3555 |
+
give_update_option( 'gateways', $enabled_gateways );
|
3556 |
+
|
3557 |
+
// Delete the old legacy settings.
|
3558 |
+
give_delete_option( 'stripe_checkout_enabled' );
|
3559 |
+
}
|
languages/give.pot
CHANGED
@@ -523,7 +523,7 @@ msgstr ""
|
|
523 |
msgid "Ok"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: includes/class-give-scripts.php:280, includes/class-notices.php:632, includes/formatting.php:755, includes/api/class-give-api.php:1872, includes/api/class-give-api.php:1878, includes/api/class-give-api.php:1893, includes/api/class-give-api.php:1898, includes/forms/functions.php:330, includes/gateways/manual.php:38, includes/admin/donors/donor-actions.php:31, includes/admin/donors/donor-actions.php:52, includes/admin/donors/donor-actions.php:187, includes/admin/donors/donor-actions.php:201, includes/admin/donors/donor-actions.php:270, includes/admin/donors/donor-actions.php:284, includes/admin/donors/donor-actions.php:371, includes/admin/donors/donor-actions.php:467, includes/admin/donors/donor-actions.php:514, includes/admin/donors/donor-actions.php:558, includes/admin/emails/class-donation-receipt-email.php:299, includes/admin/forms/dashboard-columns.php:266, includes/admin/payments/actions.php:31, includes/admin/payments/actions.php:87, includes/admin/payments/actions.php:100, includes/admin/payments/actions.php:379, includes/admin/payments/actions.php:399, includes/admin/payments/actions.php:457, includes/admin/payments/actions.php:479, includes/admin/payments/view-payment-details.php:19, includes/admin/payments/view-payment-details.php:32, includes/admin/payments/view-payment-details.php:42, includes/admin/reports/reports.php:143, includes/admin/upgrades/upgrade-functions.php:
|
527 |
msgid "Error"
|
528 |
msgstr ""
|
529 |
|
@@ -11502,7 +11502,7 @@ msgstr ""
|
|
11502 |
msgid "Updates Completed."
|
11503 |
msgstr ""
|
11504 |
|
11505 |
-
#: includes/admin/upgrades/upgrade-functions.php:
|
11506 |
msgid "You do not have permission to do GiveWP upgrades."
|
11507 |
msgstr ""
|
11508 |
|
523 |
msgid "Ok"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/class-give-scripts.php:280, includes/class-notices.php:632, includes/formatting.php:755, includes/api/class-give-api.php:1872, includes/api/class-give-api.php:1878, includes/api/class-give-api.php:1893, includes/api/class-give-api.php:1898, includes/forms/functions.php:330, includes/gateways/manual.php:38, includes/admin/donors/donor-actions.php:31, includes/admin/donors/donor-actions.php:52, includes/admin/donors/donor-actions.php:187, includes/admin/donors/donor-actions.php:201, includes/admin/donors/donor-actions.php:270, includes/admin/donors/donor-actions.php:284, includes/admin/donors/donor-actions.php:371, includes/admin/donors/donor-actions.php:467, includes/admin/donors/donor-actions.php:514, includes/admin/donors/donor-actions.php:558, includes/admin/emails/class-donation-receipt-email.php:299, includes/admin/forms/dashboard-columns.php:266, includes/admin/payments/actions.php:31, includes/admin/payments/actions.php:87, includes/admin/payments/actions.php:100, includes/admin/payments/actions.php:379, includes/admin/payments/actions.php:399, includes/admin/payments/actions.php:457, includes/admin/payments/actions.php:479, includes/admin/payments/view-payment-details.php:19, includes/admin/payments/view-payment-details.php:32, includes/admin/payments/view-payment-details.php:42, includes/admin/reports/reports.php:143, includes/admin/upgrades/upgrade-functions.php:502, includes/admin/tools/data/class-give-tools-delete-donations.php:156, includes/admin/tools/data/class-give-tools-delete-import-donors.php:309, includes/admin/tools/data/class-give-tools-delete-test-donors.php:248, includes/admin/tools/data/class-give-tools-delete-test-transactions.php:129, includes/admin/tools/data/class-give-tools-recount-all-stats.php:248, includes/admin/tools/data/class-give-tools-recount-donor-stats.php:204, includes/admin/tools/data/class-give-tools-recount-form-stats.php:204, includes/admin/tools/data/class-give-tools-recount-income.php:177, includes/admin/tools/data/class-give-tools-recount-single-donor-stats.php:160, includes/admin/tools/data/class-give-tools-reset-stats.php:241, includes/admin/tools/export/class-batch-export.php:145, includes/admin/tools/export/class-core-settings-export.php:81, includes/admin/tools/export/class-export.php:185, includes/admin/tools/export/export-actions.php:26, includes/admin/tools/export/pdf-reports.php:31, includes/admin/tools/export/pdf-reports.php:35, includes/admin/tools/export/pdf-reports.php:39, includes/admin/tools/logs/class-api-requests-logs-list-table.php:154, includes/admin/tools/logs/class-gateway-error-logs-list-table.php:136, includes/gateways/stripe/includes/admin/admin-actions.php:205, includes/gateways/stripe/includes/admin/class-give-stripe-logs-list-table.php:87
|
527 |
msgid "Error"
|
528 |
msgstr ""
|
529 |
|
11502 |
msgid "Updates Completed."
|
11503 |
msgstr ""
|
11504 |
|
11505 |
+
#: includes/admin/upgrades/upgrade-functions.php:502
|
11506 |
msgid "You do not have permission to do GiveWP upgrades."
|
11507 |
msgstr ""
|
11508 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donations, donation plugin, wordpress donation plugin, givewp, g
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.5.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -223,6 +223,9 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
|
|
223 |
|
224 |
== Changelog ==
|
225 |
|
|
|
|
|
|
|
226 |
= 2.5.7: September 20th, 2019 =
|
227 |
* Fix: Resolved issues with the notice added in the previous version displaying incorrectly for sites that do not have Recurring Donations installed or activated. [#4257](https://github.com/impress-org/givewp/pull/4257)
|
228 |
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.5.8
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
223 |
|
224 |
== Changelog ==
|
225 |
|
226 |
+
= 2.5.8: September 26th, 2019 =
|
227 |
+
* Fix: Resolved an upgrade issue for customers who had enabled the Stripe Credit Card option in GiveWP 2.5.4 and below and Stripe 2.2.0 and below. After upgrading existing donors were not able to change their credit card info and new donors were not able make donations.
|
228 |
+
|
229 |
= 2.5.7: September 20th, 2019 =
|
230 |
* Fix: Resolved issues with the notice added in the previous version displaying incorrectly for sites that do not have Recurring Donations installed or activated. [#4257](https://github.com/impress-org/givewp/pull/4257)
|
231 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitfe58689b62d6a02a8844ec927a0525ae::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit61f7dc731ce8523d797f4ea06cd94b6b
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitfe58689b62d6a02a8844ec927a0525ae
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitfe58689b62d6a02a8844ec927a0525ae', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitfe58689b62d6a02a8844ec927a0525ae', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitfe58689b62d6a02a8844ec927a0525ae::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
@@ -48,9 +48,9 @@ class ComposerStaticInit61f7dc731ce8523d797f4ea06cd94b6b
|
|
48 |
public static function getInitializer(ClassLoader $loader)
|
49 |
{
|
50 |
return \Closure::bind(function () use ($loader) {
|
51 |
-
$loader->prefixLengthsPsr4 =
|
52 |
-
$loader->prefixDirsPsr4 =
|
53 |
-
$loader->classMap =
|
54 |
|
55 |
}, null, ClassLoader::class);
|
56 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitfe58689b62d6a02a8844ec927a0525ae
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
48 |
public static function getInitializer(ClassLoader $loader)
|
49 |
{
|
50 |
return \Closure::bind(function () use ($loader) {
|
51 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitfe58689b62d6a02a8844ec927a0525ae::$prefixLengthsPsr4;
|
52 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitfe58689b62d6a02a8844ec927a0525ae::$prefixDirsPsr4;
|
53 |
+
$loader->classMap = ComposerStaticInitfe58689b62d6a02a8844ec927a0525ae::$classMap;
|
54 |
|
55 |
}, null, ClassLoader::class);
|
56 |
}
|