Version Description
Download this release
Release Info
Developer | bordoni |
Plugin | Event Tickets |
Version | 5.3.4.1 |
Comparing to | |
See all releases |
Code changes from version 5.3.4 to 5.3.4.1
- common/src/Tribe/Main.php +1 -1
- common/src/Tribe/PUE/Checker.php +27 -0
- common/vendor/autoload.php +1 -1
- common/vendor/autoload_52.php +1 -1
- common/vendor/composer/autoload_real.php +4 -4
- common/vendor/composer/autoload_real_52.php +3 -3
- common/vendor/composer/autoload_static.php +5 -5
- event-tickets.php +1 -1
- readme.txt +6 -1
- src/Tickets/Commerce/Gateways/Stripe/Application_Fee.php +1 -2
- src/Tickets/Commerce/Settings.php +6 -2
- src/Tribe/Main.php +1 -1
- src/Tribe/Plugin_Register.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
common/src/Tribe/Main.php
CHANGED
@@ -19,7 +19,7 @@ class Tribe__Main {
|
|
19 |
const EVENTSERROROPT = '_tribe_events_errors';
|
20 |
const OPTIONNAME = 'tribe_events_calendar_options';
|
21 |
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
|
22 |
-
const VERSION = '4.14.20';
|
23 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
24 |
|
25 |
protected $plugin_context;
|
19 |
const EVENTSERROROPT = '_tribe_events_errors';
|
20 |
const OPTIONNAME = 'tribe_events_calendar_options';
|
21 |
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
|
22 |
+
const VERSION = '4.14.20.1';
|
23 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
24 |
|
25 |
protected $plugin_context;
|
common/src/Tribe/PUE/Checker.php
CHANGED
@@ -1880,5 +1880,32 @@ if ( ! class_exists( 'Tribe__PUE__Checker' ) ) {
|
|
1880 |
public function should_show_network_editable_license() {
|
1881 |
return is_network_admin() && is_super_admin();
|
1882 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1883 |
}
|
1884 |
}
|
1880 |
public function should_show_network_editable_license() {
|
1881 |
return is_network_admin() && is_super_admin();
|
1882 |
}
|
1883 |
+
|
1884 |
+
/**
|
1885 |
+
* Determines if the value on the DB is the correct format.
|
1886 |
+
*
|
1887 |
+
* @since TBD
|
1888 |
+
*
|
1889 |
+
* @return bool
|
1890 |
+
*/
|
1891 |
+
public function is_valid_key_format() {
|
1892 |
+
$license_opt = (string) get_option( $this->get_license_option_key() );
|
1893 |
+
if ( empty( $license_opt ) ) {
|
1894 |
+
return false;
|
1895 |
+
}
|
1896 |
+
|
1897 |
+
if ( ! preg_match( "/([0-9a-z]+)/i", $license_opt, $matches ) ) {
|
1898 |
+
return false;
|
1899 |
+
}
|
1900 |
+
|
1901 |
+
// Pull the matching string into a variable
|
1902 |
+
$license = $matches[1];
|
1903 |
+
|
1904 |
+
if ( 40 !== strlen( $license ) ) {
|
1905 |
+
return false;
|
1906 |
+
}
|
1907 |
+
|
1908 |
+
return true;
|
1909 |
+
}
|
1910 |
}
|
1911 |
}
|
common/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 ComposerAutoloaderInit98835c9d9df775e25a15a8b7d1c6b56f::getLoader();
|
common/vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitc83ef58e1df9bc99b62a5c9a54944a1f::getLoader();
|
common/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 ComposerAutoloaderInit7604c51caf037979b38c328e3dd5a72a
|
|
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 ComposerAutoloaderInit98835c9d9df775e25a15a8b7d1c6b56f
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit98835c9d9df775e25a15a8b7d1c6b56f', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit98835c9d9df775e25a15a8b7d1c6b56f', '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\ComposerStaticInit98835c9d9df775e25a15a8b7d1c6b56f::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
common/vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitb27115ad8bcd59c549423e0ddc5317b2 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInitc83ef58e1df9bc99b62a5c9a54944a1f {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitc83ef58e1df9bc99b62a5c9a54944a1f', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc83ef58e1df9bc99b62a5c9a54944a1f', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
common/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 |
'T' =>
|
@@ -268,10 +268,10 @@ class ComposerStaticInit7604c51caf037979b38c328e3dd5a72a
|
|
268 |
public static function getInitializer(ClassLoader $loader)
|
269 |
{
|
270 |
return \Closure::bind(function () use ($loader) {
|
271 |
-
$loader->prefixLengthsPsr4 =
|
272 |
-
$loader->prefixDirsPsr4 =
|
273 |
-
$loader->prefixesPsr0 =
|
274 |
-
$loader->classMap =
|
275 |
|
276 |
}, null, ClassLoader::class);
|
277 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit98835c9d9df775e25a15a8b7d1c6b56f
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
268 |
public static function getInitializer(ClassLoader $loader)
|
269 |
{
|
270 |
return \Closure::bind(function () use ($loader) {
|
271 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit98835c9d9df775e25a15a8b7d1c6b56f::$prefixLengthsPsr4;
|
272 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit98835c9d9df775e25a15a8b7d1c6b56f::$prefixDirsPsr4;
|
273 |
+
$loader->prefixesPsr0 = ComposerStaticInit98835c9d9df775e25a15a8b7d1c6b56f::$prefixesPsr0;
|
274 |
+
$loader->classMap = ComposerStaticInit98835c9d9df775e25a15a8b7d1c6b56f::$classMap;
|
275 |
|
276 |
}, null, ClassLoader::class);
|
277 |
}
|
event-tickets.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Event Tickets
|
4 |
Plugin URI: https://evnt.is/1acb
|
5 |
Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
|
6 |
-
Version: 5.3.4
|
7 |
Author: The Events Calendar
|
8 |
Author URI: https://evnt.is/1aor
|
9 |
License: GPLv2 or later
|
3 |
Plugin Name: Event Tickets
|
4 |
Plugin URI: https://evnt.is/1acb
|
5 |
Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
|
6 |
+
Version: 5.3.4.1
|
7 |
Author: The Events Calendar
|
8 |
Author URI: https://evnt.is/1aor
|
9 |
License: GPLv2 or later
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: theeventscalendar, brianjessee, camwynsp, aguseo, bordoni, borkweb
|
|
4 |
Tags: tickets, registration, event registration, RSVP, ticket sales, attendee management
|
5 |
Requires at least: 5.6
|
6 |
Tested up to: 5.9.3
|
7 |
-
Stable tag: 5.3.4
|
8 |
Requires PHP: 7.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -188,6 +188,11 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
|
|
|
|
191 |
= [5.3.4] 2022-05-11 =
|
192 |
|
193 |
* Fix - Typo was causing a JS `setAttribute` error in `vue.min.js`. [ET-1504]
|
4 |
Tags: tickets, registration, event registration, RSVP, ticket sales, attendee management
|
5 |
Requires at least: 5.6
|
6 |
Tested up to: 5.9.3
|
7 |
+
Stable tag: 5.3.4.1
|
8 |
Requires PHP: 7.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= [5.3.4.1] 2022-05-12 =
|
192 |
+
|
193 |
+
* Version - Event Tickets 5.3.4.1 is only compatible with Event Tickets Plus 5.4.4.1 and higher
|
194 |
+
* Fix - Ensure that Event Tickets Plus customers never encounter application fees on Stripe for Tickets Commerce purchases. [ET-1513]
|
195 |
+
|
196 |
= [5.3.4] 2022-05-11 =
|
197 |
|
198 |
* Fix - Typo was causing a JS `setAttribute` error in `vue.min.js`. [ET-1504]
|
src/Tickets/Commerce/Gateways/Stripe/Application_Fee.php
CHANGED
@@ -31,8 +31,7 @@ class Application_Fee {
|
|
31 |
* @return Value;
|
32 |
*/
|
33 |
public static function calculate( Value $value ) {
|
34 |
-
|
35 |
-
if ( Settings::is_licensed_plugin() ) {
|
36 |
return Value::create();
|
37 |
}
|
38 |
|
31 |
* @return Value;
|
32 |
*/
|
33 |
public static function calculate( Value $value ) {
|
34 |
+
if ( Settings::is_licensed_plugin( true ) ) {
|
|
|
35 |
return Value::create();
|
36 |
}
|
37 |
|
src/Tickets/Commerce/Settings.php
CHANGED
@@ -482,11 +482,15 @@ class Settings {
|
|
482 |
* @return bool
|
483 |
*/
|
484 |
public static function is_licensed_plugin( $revalidate = false ) {
|
485 |
-
|
486 |
if ( ! class_exists( 'Tribe__Tickets_Plus__PUE' ) ) {
|
487 |
return false;
|
488 |
}
|
489 |
|
490 |
-
|
|
|
|
|
|
|
|
|
|
|
491 |
}
|
492 |
}
|
482 |
* @return bool
|
483 |
*/
|
484 |
public static function is_licensed_plugin( $revalidate = false ) {
|
|
|
485 |
if ( ! class_exists( 'Tribe__Tickets_Plus__PUE' ) ) {
|
486 |
return false;
|
487 |
}
|
488 |
|
489 |
+
$pue = tribe( \Tribe__Tickets_Plus__PUE::class );
|
490 |
+
|
491 |
+
/**
|
492 |
+
* @todo we need to make sure we actually validate the PUE key.
|
493 |
+
*/
|
494 |
+
return $pue->get_pue()->is_valid_key_format() ;
|
495 |
}
|
496 |
}
|
src/Tribe/Main.php
CHANGED
@@ -7,7 +7,7 @@ class Tribe__Tickets__Main {
|
|
7 |
/**
|
8 |
* Current version of this plugin
|
9 |
*/
|
10 |
-
const VERSION = '5.3.4';
|
11 |
|
12 |
/**
|
13 |
* Used to store the version history.
|
7 |
/**
|
8 |
* Current version of this plugin
|
9 |
*/
|
10 |
+
const VERSION = '5.3.4.1';
|
11 |
|
12 |
/**
|
13 |
* Used to store the version history.
|
src/Tribe/Plugin_Register.php
CHANGED
@@ -8,7 +8,7 @@ class Tribe__Tickets__Plugin_Register extends Tribe__Abstract_Plugin_Register {
|
|
8 |
protected $main_class = 'Tribe__Tickets__Main';
|
9 |
protected $dependencies = array(
|
10 |
'addon-dependencies' => array(
|
11 |
-
'Tribe__Tickets_Plus__Main' => '5.4.1-dev',
|
12 |
'Tribe__Events__Community__Tickets__Main' => '4.7.2-dev',
|
13 |
),
|
14 |
);
|
8 |
protected $main_class = 'Tribe__Tickets__Main';
|
9 |
protected $dependencies = array(
|
10 |
'addon-dependencies' => array(
|
11 |
+
'Tribe__Tickets_Plus__Main' => '5.4.3.1-dev',
|
12 |
'Tribe__Events__Community__Tickets__Main' => '4.7.2-dev',
|
13 |
),
|
14 |
);
|
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 ComposerAutoloaderInitcf5a2348fe269bbfd8e04c322236b8bb::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 ComposerAutoloaderInita481e07ac0c8d8cc087a6e5da89421d2
|
|
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 ComposerAutoloaderInitcf5a2348fe269bbfd8e04c322236b8bb
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitcf5a2348fe269bbfd8e04c322236b8bb', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitcf5a2348fe269bbfd8e04c322236b8bb', '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\ComposerStaticInitcf5a2348fe269bbfd8e04c322236b8bb::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 |
'T' =>
|
@@ -203,9 +203,9 @@ class ComposerStaticInita481e07ac0c8d8cc087a6e5da89421d2
|
|
203 |
public static function getInitializer(ClassLoader $loader)
|
204 |
{
|
205 |
return \Closure::bind(function () use ($loader) {
|
206 |
-
$loader->prefixLengthsPsr4 =
|
207 |
-
$loader->prefixDirsPsr4 =
|
208 |
-
$loader->classMap =
|
209 |
|
210 |
}, null, ClassLoader::class);
|
211 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitcf5a2348fe269bbfd8e04c322236b8bb
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
203 |
public static function getInitializer(ClassLoader $loader)
|
204 |
{
|
205 |
return \Closure::bind(function () use ($loader) {
|
206 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitcf5a2348fe269bbfd8e04c322236b8bb::$prefixLengthsPsr4;
|
207 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitcf5a2348fe269bbfd8e04c322236b8bb::$prefixDirsPsr4;
|
208 |
+
$loader->classMap = ComposerStaticInitcf5a2348fe269bbfd8e04c322236b8bb::$classMap;
|
209 |
|
210 |
}, null, ClassLoader::class);
|
211 |
}
|