Version Description
Download this release
Release Info
Developer | jason_the_adams |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 2.21.4 |
Comparing to | |
See all releases |
Code changes from version 2.21.3 to 2.21.4
- give.php +2 -2
- includes/admin/tools/export/class-export-earnings.php +11 -0
- includes/admin/tools/export/class-export.php +1 -1
- languages/give.pot +2 -2
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
give.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
7 |
* Author: GiveWP
|
8 |
* Author URI: https://givewp.com/
|
9 |
-
* Version: 2.21.
|
10 |
* Requires at least: 5.0
|
11 |
* Requires PHP: 7.0
|
12 |
* Text Domain: give
|
@@ -300,7 +300,7 @@ final class Give
|
|
300 |
{
|
301 |
// Plugin version.
|
302 |
if (!defined('GIVE_VERSION')) {
|
303 |
-
define('GIVE_VERSION', '2.21.
|
304 |
}
|
305 |
|
306 |
// Plugin Root File.
|
6 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
7 |
* Author: GiveWP
|
8 |
* Author URI: https://givewp.com/
|
9 |
+
* Version: 2.21.4
|
10 |
* Requires at least: 5.0
|
11 |
* Requires PHP: 7.0
|
12 |
* Text Domain: give
|
300 |
{
|
301 |
// Plugin version.
|
302 |
if (!defined('GIVE_VERSION')) {
|
303 |
+
define('GIVE_VERSION', '2.21.4');
|
304 |
}
|
305 |
|
306 |
// Plugin Root File.
|
includes/admin/tools/export/class-export-earnings.php
CHANGED
@@ -74,6 +74,17 @@ class Give_Earnings_Export extends Give_Export
|
|
74 |
return $cols;
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
/**
|
78 |
* Get the Export Data
|
79 |
*
|
74 |
return $cols;
|
75 |
}
|
76 |
|
77 |
+
/**
|
78 |
+
* Include a nonce check when authenticating
|
79 |
+
*
|
80 |
+
* @since 2.21.4
|
81 |
+
*
|
82 |
+
* @return bool
|
83 |
+
*/
|
84 |
+
public function can_export() {
|
85 |
+
return (bool) apply_filters( 'give_export_capability', current_user_can( 'export_give_reports' ) && wp_verify_nonce($_REQUEST['give-nonce'], 'give_earnings_export'));
|
86 |
+
}
|
87 |
+
|
88 |
/**
|
89 |
* Get the Export Data
|
90 |
*
|
includes/admin/tools/export/class-export.php
CHANGED
@@ -38,7 +38,7 @@ class Give_Export {
|
|
38 |
* @return bool Whether we can export or not
|
39 |
*/
|
40 |
public function can_export() {
|
41 |
-
return (bool) apply_filters( 'give_export_capability', current_user_can( 'export_give_reports' )
|
42 |
}
|
43 |
|
44 |
/**
|
38 |
* @return bool Whether we can export or not
|
39 |
*/
|
40 |
public function can_export() {
|
41 |
+
return (bool) apply_filters( 'give_export_capability', current_user_can( 'export_give_reports' ));
|
42 |
}
|
43 |
|
44 |
/**
|
languages/give.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Give - Donation Plugin plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Give - Donation Plugin 2.21.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-07-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"X-Domain: give\n"
|
2 |
# This file is distributed under the same license as the Give - Donation Plugin plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Give - Donation Plugin 2.21.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-07-08T19:57:32+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"X-Domain: give\n"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 7.0
|
8 |
-
Stable tag: 2.21.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -251,6 +251,9 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
|
|
251 |
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
|
252 |
|
253 |
== Changelog ==
|
|
|
|
|
|
|
254 |
= 2.21.3: July 7th, 2022 =
|
255 |
* Security: Protect against CSRF and DOS attacks against the donation stats exporter
|
256 |
* Security: Protect against XSS attacks for the currency endpoint
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 2.21.4
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
251 |
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
|
252 |
|
253 |
== Changelog ==
|
254 |
+
= 2.21.4: July 8th, 2022 =
|
255 |
+
* Fix: The CSRF patch for the stats exporter was breaking other exporters. The patch is still in place but the other exporters are working again.
|
256 |
+
|
257 |
= 2.21.3: July 7th, 2022 =
|
258 |
* Security: Protect against CSRF and DOS attacks against the donation stats exporter
|
259 |
* Security: Protect against XSS attacks for the currency endpoint
|
vendor/autoload.php
CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
-
return
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
+
return ComposerAutoloaderInitebe3aefe49d19c1b9a1f8f4524105815::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 |
|
@@ -24,18 +24,18 @@ class ComposerAutoloaderInit8cff559fe924c066660cae28c2cb887e
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
-
call_user_func(\Composer\Autoload\
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
36 |
-
$includeFiles = \Composer\Autoload\
|
37 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
38 |
-
|
39 |
}
|
40 |
|
41 |
return $loader;
|
@@ -47,7 +47,7 @@ class ComposerAutoloaderInit8cff559fe924c066660cae28c2cb887e
|
|
47 |
* @param string $file
|
48 |
* @return void
|
49 |
*/
|
50 |
-
function
|
51 |
{
|
52 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
53 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitebe3aefe49d19c1b9a1f8f4524105815
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInitebe3aefe49d19c1b9a1f8f4524105815', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitebe3aefe49d19c1b9a1f8f4524105815', 'loadClassLoader'));
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitebe3aefe49d19c1b9a1f8f4524105815::getInitializer($loader));
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
36 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInitebe3aefe49d19c1b9a1f8f4524105815::$files;
|
37 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
38 |
+
composerRequireebe3aefe49d19c1b9a1f8f4524105815($fileIdentifier, $file);
|
39 |
}
|
40 |
|
41 |
return $loader;
|
47 |
* @param string $file
|
48 |
* @return void
|
49 |
*/
|
50 |
+
function composerRequireebe3aefe49d19c1b9a1f8f4524105815($fileIdentifier, $file)
|
51 |
{
|
52 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
53 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
|
@@ -130,9 +130,9 @@ class ComposerStaticInit8cff559fe924c066660cae28c2cb887e
|
|
130 |
public static function getInitializer(ClassLoader $loader)
|
131 |
{
|
132 |
return \Closure::bind(function () use ($loader) {
|
133 |
-
$loader->prefixLengthsPsr4 =
|
134 |
-
$loader->prefixDirsPsr4 =
|
135 |
-
$loader->classMap =
|
136 |
|
137 |
}, null, ClassLoader::class);
|
138 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitebe3aefe49d19c1b9a1f8f4524105815
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
|
130 |
public static function getInitializer(ClassLoader $loader)
|
131 |
{
|
132 |
return \Closure::bind(function () use ($loader) {
|
133 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitebe3aefe49d19c1b9a1f8f4524105815::$prefixLengthsPsr4;
|
134 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitebe3aefe49d19c1b9a1f8f4524105815::$prefixDirsPsr4;
|
135 |
+
$loader->classMap = ComposerStaticInitebe3aefe49d19c1b9a1f8f4524105815::$classMap;
|
136 |
|
137 |
}, null, ClassLoader::class);
|
138 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'impress-org/give',
|
4 |
-
'pretty_version' => '2.21.
|
5 |
-
'version' => '2.21.
|
6 |
-
'reference' => '
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
@@ -41,9 +41,9 @@
|
|
41 |
),
|
42 |
),
|
43 |
'impress-org/give' => array(
|
44 |
-
'pretty_version' => '2.21.
|
45 |
-
'version' => '2.21.
|
46 |
-
'reference' => '
|
47 |
'type' => 'wordpress-plugin',
|
48 |
'install_path' => __DIR__ . '/../../',
|
49 |
'aliases' => array(),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'impress-org/give',
|
4 |
+
'pretty_version' => '2.21.4',
|
5 |
+
'version' => '2.21.4.0',
|
6 |
+
'reference' => 'cb466824c86a489b3a10086e3d1bfdff419294bc',
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
41 |
),
|
42 |
),
|
43 |
'impress-org/give' => array(
|
44 |
+
'pretty_version' => '2.21.4',
|
45 |
+
'version' => '2.21.4.0',
|
46 |
+
'reference' => 'cb466824c86a489b3a10086e3d1bfdff419294bc',
|
47 |
'type' => 'wordpress-plugin',
|
48 |
'install_path' => __DIR__ . '/../../',
|
49 |
'aliases' => array(),
|