Event Tickets - Version 5.0.0.1

Version Description

Download this release

Release Info

Developer sc0ttkclark
Plugin Icon 128x128 Event Tickets
Version 5.0.0.1
Comparing to
See all releases

Code changes from version 5.0.0 to 5.0.0.1

common/vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitfd78e5ecd5e8fc48dee2204bb2f1443e::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit47084eab52b4183d574b68d50137748f::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 ComposerAutoloaderInit53512658225339a67a5b5ee490fed4f7::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInitbeab9af58b3a7cca5437d5ecbaeec725::getLoader();
common/vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitfd78e5ecd5e8fc48dee2204bb2f1443e
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitfd78e5ecd5e8fc48dee2204bb2f1443e
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitfd78e5ecd5e8fc48dee2204bb2f1443e', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitfd78e5ecd5e8fc48dee2204bb2f1443e', '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\ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e::getInitializer($loader));
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 ComposerAutoloaderInit47084eab52b4183d574b68d50137748f
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit47084eab52b4183d574b68d50137748f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit47084eab52b4183d574b68d50137748f', '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\ComposerStaticInit47084eab52b4183d574b68d50137748f::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 ComposerAutoloaderInit53512658225339a67a5b5ee490fed4f7 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit53512658225339a67a5b5ee490fed4f7 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit53512658225339a67a5b5ee490fed4f7', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit53512658225339a67a5b5ee490fed4f7', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInitbeab9af58b3a7cca5437d5ecbaeec725 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitbeab9af58b3a7cca5437d5ecbaeec725', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitbeab9af58b3a7cca5437d5ecbaeec725', '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 ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
@@ -220,10 +220,10 @@ class ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e
220
  public static function getInitializer(ClassLoader $loader)
221
  {
222
  return \Closure::bind(function () use ($loader) {
223
- $loader->prefixLengthsPsr4 = ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e::$prefixLengthsPsr4;
224
- $loader->prefixDirsPsr4 = ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e::$prefixDirsPsr4;
225
- $loader->prefixesPsr0 = ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e::$prefixesPsr0;
226
- $loader->classMap = ComposerStaticInitfd78e5ecd5e8fc48dee2204bb2f1443e::$classMap;
227
 
228
  }, null, ClassLoader::class);
229
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit47084eab52b4183d574b68d50137748f
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
220
  public static function getInitializer(ClassLoader $loader)
221
  {
222
  return \Closure::bind(function () use ($loader) {
223
+ $loader->prefixLengthsPsr4 = ComposerStaticInit47084eab52b4183d574b68d50137748f::$prefixLengthsPsr4;
224
+ $loader->prefixDirsPsr4 = ComposerStaticInit47084eab52b4183d574b68d50137748f::$prefixDirsPsr4;
225
+ $loader->prefixesPsr0 = ComposerStaticInit47084eab52b4183d574b68d50137748f::$prefixesPsr0;
226
+ $loader->classMap = ComposerStaticInit47084eab52b4183d574b68d50137748f::$classMap;
227
 
228
  }, null, ClassLoader::class);
229
  }
event-tickets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Event Tickets
4
  Plugin URI: http://m.tri.be/1acb
5
  Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
6
- Version: 5.0.0
7
  Author: Modern Tribe, Inc.
8
  Author URI: http://m.tri.be/28
9
  License: GPLv2 or later
@@ -11,6 +11,7 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Text Domain: event-tickets
12
  Domain Path: /lang/
13
  */
 
14
  /*
15
  Copyright 2010-2012 by Modern Tribe Inc and the contributors
16
 
3
  Plugin Name: Event Tickets
4
  Plugin URI: http://m.tri.be/1acb
5
  Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
6
+ Version: 5.0.0.1
7
  Author: Modern Tribe, Inc.
8
  Author URI: http://m.tri.be/28
9
  License: GPLv2 or later
11
  Text Domain: event-tickets
12
  Domain Path: /lang/
13
  */
14
+
15
  /*
16
  Copyright 2010-2012 by Modern Tribe Inc and the contributors
17
 
lang/event-tickets-cs_CZ.mo CHANGED
Binary file
lang/event-tickets-de_DE.mo CHANGED
Binary file
lang/event-tickets-es_ES.mo CHANGED
Binary file
lang/event-tickets-nl_NL.mo CHANGED
Binary file
lang/event-tickets.pot CHANGED
@@ -4,11 +4,11 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Event Tickets 5.0.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-tickets\n"
7
- "POT-Creation-Date: 2020-08-26 01:22:12+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2020-08-26 01:22\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
 
4
  msgstr ""
5
  "Project-Id-Version: Event Tickets 5.0.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-tickets\n"
7
+ "POT-Creation-Date: 2020-08-24 01:22:12+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2020-08-24 01:22\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: ModernTribe, brianjessee, camwynsp, paulkim, sc0ttkclark, aguseo,
4
  Tags: tickets, registration, The Events Calendar, RSVP, ticket sales, attendee management
5
  Requires at least: 4.9.14
6
  Tested up to: 5.5
7
- Stable tag: 5.0.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -118,6 +118,10 @@ Currently, the following add-ons are available for Event Tickets:
118
 
119
  == Changelog ==
120
 
 
 
 
 
121
  = [5.0.0] 2020-08-26 =
122
 
123
  * Feature - We've introduced a refined look and experience for RSVPs! New installations of Event Tickets will gain the new look right away. Existing Event Tickets installations can opt-in upon upgrade from our previous version(s). This new design is consistent in both the Classic and Block modes so you have a better visual when creating RSVPs in either WordPress editor. [ET-866]
4
  Tags: tickets, registration, The Events Calendar, RSVP, ticket sales, attendee management
5
  Requires at least: 4.9.14
6
  Tested up to: 5.5
7
+ Stable tag: 5.0.0.1
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
118
 
119
  == Changelog ==
120
 
121
+ = [5.0.0.1] 2020-08-31 =
122
+
123
+ * Fix - Prevent the Attendee Registration modal from incorrectly setting RSVP as the provider class. [ET-901]
124
+
125
  = [5.0.0] 2020-08-26 =
126
 
127
  * Feature - We've introduced a refined look and experience for RSVPs! New installations of Event Tickets will gain the new look right away. Existing Event Tickets installations can opt-in upon upgrade from our previous version(s). This new design is consistent in both the Classic and Block modes so you have a better visual when creating RSVPs in either WordPress editor. [ET-866]
src/Tribe/Editor/Blocks/Tickets.php CHANGED
@@ -60,6 +60,7 @@ extends Tribe__Editor__Blocks__Abstract {
60
  $args['provider'] = $provider;
61
  $args['provider_id'] = $provider_id;
62
  $args['cart_url'] = 'tpp' !== $provider_id ? $provider->get_cart_url() : '';
 
63
  $args['tickets_on_sale'] = $this->get_tickets_on_sale( $tickets );
64
  $args['has_tickets_on_sale'] = ! empty( $args['tickets_on_sale'] );
65
  $args['is_sale_past'] = $this->get_is_sale_past( $tickets );
60
  $args['provider'] = $provider;
61
  $args['provider_id'] = $provider_id;
62
  $args['cart_url'] = 'tpp' !== $provider_id ? $provider->get_cart_url() : '';
63
+ $args['tickets'] = $tickets;
64
  $args['tickets_on_sale'] = $this->get_tickets_on_sale( $tickets );
65
  $args['has_tickets_on_sale'] = ! empty( $args['tickets_on_sale'] );
66
  $args['is_sale_past'] = $this->get_is_sale_past( $tickets );
src/Tribe/Editor/Blocks/Tickets_Item.php CHANGED
@@ -26,49 +26,7 @@ class Tribe__Tickets__Editor__Blocks__Tickets_Item extends Tribe__Editor__Blocks
26
  * @return string
27
  */
28
  public function render( $attributes = array() ) {
29
- /** @var Tribe__Tickets__Editor__Template $template */
30
- $template = tribe( 'tickets.editor.template' );
31
-
32
- if (
33
- empty( $attributes['ticketId'] )
34
- || empty( $attributes['hasBeenCreated'] )
35
- || $attributes['hasBeenCreated'] === false
36
- ) {
37
- return;
38
- }
39
-
40
- $ticket_post = get_post( $attributes['ticketId'] );
41
-
42
- // Prevent to attach blocks with tickets removed or under trash
43
- if ( ! $ticket_post instanceof WP_Post || 'publish' !== $ticket_post->post_status ) {
44
- return;
45
- }
46
-
47
- $tickets = $template->get( 'tickets', array(), false );
48
- $ticket = Tribe__Tickets__Tickets::load_ticket_object( $attributes['ticketId'] );
49
-
50
- // Bail if for some reason there was an RSVP here
51
- if ( null === $ticket || 'Tribe__Tickets__RSVP' === $ticket->provider_class ) {
52
- return;
53
- }
54
-
55
- // Bail if the ticket dates are not in range
56
- if ( ! $ticket->date_in_range() ) {
57
- return;
58
- }
59
-
60
- $existing_tickets = wp_list_pluck( $tickets, 'ID' );
61
-
62
- // Prevent adding tickets that are already in the list
63
- if ( in_array( $ticket->ID, $existing_tickets ) ) {
64
- return;
65
- }
66
-
67
- $args = array(
68
- 'tickets' => array_merge( $tickets, array( $ticket ) ),
69
- );
70
-
71
- // Add the rendering attributes into global context
72
- $template->add_template_globals( $args );
73
  }
74
  }
26
  * @return string
27
  */
28
  public function render( $attributes = array() ) {
29
+ // This block has no render.
30
+ return '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
  }
src/Tribe/Main.php CHANGED
@@ -8,7 +8,7 @@ class Tribe__Tickets__Main {
8
  /**
9
  * Current version of this plugin
10
  */
11
- const VERSION = '5.0.0';
12
 
13
  /**
14
  * Used to store the version history.
8
  /**
9
  * Current version of this plugin
10
  */
11
+ const VERSION = '5.0.0.1';
12
 
13
  /**
14
  * Used to store the version history.
src/Tribe/RSVP.php CHANGED
@@ -1569,7 +1569,7 @@ class Tribe__Tickets__RSVP extends Tribe__Tickets__Tickets {
1569
  public function delete_ticket( $event_id, $ticket_id ) {
1570
  // Ensure we know the event and product IDs (the event ID may not have been passed in)
1571
  if ( empty( $event_id ) ) {
1572
- $event_id = get_post_meta( $ticket_id, $this->get_event_key(), true );
1573
  }
1574
 
1575
  // Additional check (in case we were passed an invalid ticket ID and still can't determine the event)
@@ -1860,7 +1860,7 @@ class Tribe__Tickets__RSVP extends Tribe__Tickets__Tickets {
1860
  $event_id = (int) get_post_meta( $ticket_product, $this->get_event_key(), true );
1861
 
1862
  if ( 0 === $event_id ) {
1863
- $event_id = get_post_meta( $ticket_product, self::ATTENDEE_EVENT_KEY, true );
1864
  }
1865
 
1866
  if ( 0 === $event_id ) {
1569
  public function delete_ticket( $event_id, $ticket_id ) {
1570
  // Ensure we know the event and product IDs (the event ID may not have been passed in)
1571
  if ( empty( $event_id ) ) {
1572
+ $event_id = get_post_meta( $ticket_id, self::ATTENDEE_EVENT_KEY, true );
1573
  }
1574
 
1575
  // Additional check (in case we were passed an invalid ticket ID and still can't determine the event)
1860
  $event_id = (int) get_post_meta( $ticket_product, $this->get_event_key(), true );
1861
 
1862
  if ( 0 === $event_id ) {
1863
+ $event_id = (int) get_post_meta( $ticket_product, self::ATTENDEE_EVENT_KEY, true );
1864
  }
1865
 
1866
  if ( 0 === $event_id ) {
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit79a46d72b1266cbdf62dd500316ca581::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6a95792be62f07d5f3d52d24c0c9705a::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit79a46d72b1266cbdf62dd500316ca581
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit79a46d72b1266cbdf62dd500316ca581
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit79a46d72b1266cbdf62dd500316ca581', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit79a46d72b1266cbdf62dd500316ca581', '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\ComposerStaticInit79a46d72b1266cbdf62dd500316ca581::getInitializer($loader));
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 ComposerAutoloaderInit6a95792be62f07d5f3d52d24c0c9705a
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit6a95792be62f07d5f3d52d24c0c9705a', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit6a95792be62f07d5f3d52d24c0c9705a', '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\ComposerStaticInit6a95792be62f07d5f3d52d24c0c9705a::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 ComposerStaticInit79a46d72b1266cbdf62dd500316ca581
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
@@ -49,9 +49,9 @@ class ComposerStaticInit79a46d72b1266cbdf62dd500316ca581
49
  public static function getInitializer(ClassLoader $loader)
50
  {
51
  return \Closure::bind(function () use ($loader) {
52
- $loader->prefixLengthsPsr4 = ComposerStaticInit79a46d72b1266cbdf62dd500316ca581::$prefixLengthsPsr4;
53
- $loader->prefixDirsPsr4 = ComposerStaticInit79a46d72b1266cbdf62dd500316ca581::$prefixDirsPsr4;
54
- $loader->classMap = ComposerStaticInit79a46d72b1266cbdf62dd500316ca581::$classMap;
55
 
56
  }, null, ClassLoader::class);
57
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6a95792be62f07d5f3d52d24c0c9705a
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
49
  public static function getInitializer(ClassLoader $loader)
50
  {
51
  return \Closure::bind(function () use ($loader) {
52
+ $loader->prefixLengthsPsr4 = ComposerStaticInit6a95792be62f07d5f3d52d24c0c9705a::$prefixLengthsPsr4;
53
+ $loader->prefixDirsPsr4 = ComposerStaticInit6a95792be62f07d5f3d52d24c0c9705a::$prefixDirsPsr4;
54
+ $loader->classMap = ComposerStaticInit6a95792be62f07d5f3d52d24c0c9705a::$classMap;
55
 
56
  }, null, ClassLoader::class);
57
  }