Event Tickets - Version 5.3.1

Version Description

Download this release

Release Info

Developer borkweb
Plugin Icon 128x128 Event Tickets
Version 5.3.1
Comparing to
See all releases

Code changes from version 5.3.0.1 to 5.3.1

Files changed (39) hide show
  1. common/lang/tribe-common.pot +31 -30
  2. common/src/Tribe/Admin/Notice/Date_Based.php +1 -1
  3. common/src/Tribe/Admin/Notice/Marketing.php +1 -1
  4. common/src/Tribe/Admin/Troubleshooting.php +1 -1
  5. common/src/Tribe/Assets.php +5 -3
  6. common/src/Tribe/Editor/Configuration.php +1 -1
  7. common/src/Tribe/Main.php +3 -2
  8. common/src/Tribe/Utils/Body_Classes.php +1 -1
  9. common/src/admin-views/tribe-options-general.php +1 -1
  10. common/src/functions/conditionals.php +78 -0
  11. common/vendor/autoload.php +1 -1
  12. common/vendor/autoload_52.php +1 -1
  13. common/vendor/composer/autoload_real.php +4 -4
  14. common/vendor/composer/autoload_real_52.php +3 -3
  15. common/vendor/composer/autoload_static.php +5 -5
  16. event-tickets.php +1 -1
  17. lang/event-tickets-es_ES.mo +0 -0
  18. lang/event-tickets-it_IT.mo +0 -0
  19. lang/event-tickets.pot +37 -37
  20. readme.txt +16 -4
  21. src/Tickets/Commerce/Gateways/Stripe/Webhooks/Payment_Intent_Webhook.php +9 -5
  22. src/Tickets/Commerce/Order.php +1 -1
  23. src/Tickets/Commerce/Status/Pending.php +2 -2
  24. src/Tickets/Commerce/Status/Status_Abstract.php +5 -1
  25. src/Tickets/Commerce/Status/Status_Interface.php +4 -2
  26. src/Tickets/Commerce/Ticket.php +1 -3
  27. src/Tribe/CSV_Importer/RSVP_Importer.php +5 -1
  28. src/Tribe/Commerce/Currency.php +4 -0
  29. src/Tribe/Commerce/PayPal/Main.php +1 -3
  30. src/Tribe/Main.php +4 -3
  31. src/Tribe/Plugin_Register.php +1 -1
  32. src/Tribe/RSVP.php +11 -1
  33. src/Tribe/Theme_Compatibility.php +18 -79
  34. src/Tribe/Tickets.php +1 -1
  35. src/template-tags/commerce.php +38 -0
  36. src/template-tags/tickets.php +6 -1
  37. vendor/autoload.php +1 -1
  38. vendor/composer/autoload_real.php +4 -4
  39. vendor/composer/autoload_static.php +4 -4
common/lang/tribe-common.pot CHANGED
@@ -2,13 +2,13 @@
2
  # This file is distributed under the same license as the Tribe Common package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Tribe Common 4.14.14\n"
6
  "Report-Msgid-Bugs-To: http://m.tri.be/191x\n"
7
- "POT-Creation-Date: 2022-02-23 17:47:45+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: 2022-02-23 17:47\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
 
@@ -58,7 +58,7 @@ msgctxt "Error status label for system info optin"
58
  msgid "Status:"
59
  msgstr ""
60
 
61
- #. #-#-#-#-# tribe-common.pot (Tribe Common 4.14.14) #-#-#-#-#
62
  #. Author of the plugin/theme
63
  #: src/Tribe/Admin/Help_Page.php:82 src/Tribe/Customizer.php:666
64
  #: src/Tribe/Plugins_API.php:25 src/admin-views/help-calendar.php:97
@@ -463,15 +463,11 @@ msgstr ""
463
 
464
  #: src/Tribe/Admin/Troubleshooting.php:65
465
  #: src/Tribe/Admin/Troubleshooting.php:66
 
466
  #: src/admin-views/troubleshooting/introduction.php:21
467
  msgid "Troubleshooting"
468
  msgstr ""
469
 
470
- #: src/Tribe/Admin/Troubleshooting.php:123 src/Tribe/App_Shop.php:50
471
- #: src/Tribe/App_Shop.php:51 src/Tribe/App_Shop.php:82
472
- msgid "Event Add-Ons"
473
- msgstr ""
474
-
475
  #: src/Tribe/Admin/Troubleshooting.php:270
476
  msgid "Site time zone uses UTC"
477
  msgstr ""
@@ -586,6 +582,11 @@ msgstr ""
586
  msgid "The \"%s\" source is invalid and cannot be reached on \"%s\" instance."
587
  msgstr ""
588
 
 
 
 
 
 
589
  #: src/Tribe/App_Shop.php:175
590
  msgid "Events Marketing Bundle"
591
  msgstr ""
@@ -2239,87 +2240,87 @@ msgstr ""
2239
  msgid "Full debug (all events)"
2240
  msgstr ""
2241
 
2242
- #: src/Tribe/Main.php:335
2243
  msgid ": activate to sort column ascending"
2244
  msgstr ""
2245
 
2246
- #: src/Tribe/Main.php:336
2247
  msgid ": activate to sort column descending"
2248
  msgstr ""
2249
 
2250
- #: src/Tribe/Main.php:338
2251
  msgid "Show _MENU_ entries"
2252
  msgstr ""
2253
 
2254
- #: src/Tribe/Main.php:339
2255
  msgid "No data available in table"
2256
  msgstr ""
2257
 
2258
- #: src/Tribe/Main.php:340
2259
  msgid "Showing _START_ to _END_ of _TOTAL_ entries"
2260
  msgstr ""
2261
 
2262
- #: src/Tribe/Main.php:341
2263
  msgid "Showing 0 to 0 of 0 entries"
2264
  msgstr ""
2265
 
2266
- #: src/Tribe/Main.php:342
2267
  msgid "(filtered from _MAX_ total entries)"
2268
  msgstr ""
2269
 
2270
- #: src/Tribe/Main.php:343
2271
  msgid "No matching records found"
2272
  msgstr ""
2273
 
2274
- #: src/Tribe/Main.php:344
2275
  msgid "Search:"
2276
  msgstr ""
2277
 
2278
- #: src/Tribe/Main.php:345
2279
  msgid "All items on this page were selected. "
2280
  msgstr ""
2281
 
2282
- #: src/Tribe/Main.php:346
2283
  msgid "Select all pages"
2284
  msgstr ""
2285
 
2286
- #: src/Tribe/Main.php:347
2287
  msgid "Clear Selection."
2288
  msgstr ""
2289
 
2290
- #: src/Tribe/Main.php:349
2291
  msgid "All"
2292
  msgstr ""
2293
 
2294
- #: src/Tribe/Main.php:350 src/Tribe/Main.php:367
2295
  msgid "Next"
2296
  msgstr ""
2297
 
2298
- #: src/Tribe/Main.php:351
2299
  msgid "Previous"
2300
  msgstr ""
2301
 
2302
- #: src/Tribe/Main.php:356
2303
  msgid ": Selected %d rows"
2304
  msgstr ""
2305
 
2306
- #: src/Tribe/Main.php:357
2307
  msgid ": Selected 1 row"
2308
  msgstr ""
2309
 
2310
- #: src/Tribe/Main.php:368
2311
  msgid "Prev"
2312
  msgstr ""
2313
 
2314
- #: src/Tribe/Main.php:369 src/Tribe/Main.php:371
2315
  msgid "Today"
2316
  msgstr ""
2317
 
2318
- #: src/Tribe/Main.php:370
2319
  msgid "Done"
2320
  msgstr ""
2321
 
2322
- #: src/Tribe/Main.php:372
2323
  msgid "Clear"
2324
  msgstr ""
2325
 
2
  # This file is distributed under the same license as the Tribe Common package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Tribe Common 4.14.16\n"
6
  "Report-Msgid-Bugs-To: http://m.tri.be/191x\n"
7
+ "POT-Creation-Date: 2022-03-15 18:48:04+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: 2022-03-15 18:48\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
 
58
  msgid "Status:"
59
  msgstr ""
60
 
61
+ #. #-#-#-#-# tribe-common.pot (Tribe Common 4.14.16) #-#-#-#-#
62
  #. Author of the plugin/theme
63
  #: src/Tribe/Admin/Help_Page.php:82 src/Tribe/Customizer.php:666
64
  #: src/Tribe/Plugins_API.php:25 src/admin-views/help-calendar.php:97
463
 
464
  #: src/Tribe/Admin/Troubleshooting.php:65
465
  #: src/Tribe/Admin/Troubleshooting.php:66
466
+ #: src/Tribe/Admin/Troubleshooting.php:123
467
  #: src/admin-views/troubleshooting/introduction.php:21
468
  msgid "Troubleshooting"
469
  msgstr ""
470
 
 
 
 
 
 
471
  #: src/Tribe/Admin/Troubleshooting.php:270
472
  msgid "Site time zone uses UTC"
473
  msgstr ""
582
  msgid "The \"%s\" source is invalid and cannot be reached on \"%s\" instance."
583
  msgstr ""
584
 
585
+ #: src/Tribe/App_Shop.php:50 src/Tribe/App_Shop.php:51
586
+ #: src/Tribe/App_Shop.php:82
587
+ msgid "Event Add-Ons"
588
+ msgstr ""
589
+
590
  #: src/Tribe/App_Shop.php:175
591
  msgid "Events Marketing Bundle"
592
  msgstr ""
2240
  msgid "Full debug (all events)"
2241
  msgstr ""
2242
 
2243
+ #: src/Tribe/Main.php:336
2244
  msgid ": activate to sort column ascending"
2245
  msgstr ""
2246
 
2247
+ #: src/Tribe/Main.php:337
2248
  msgid ": activate to sort column descending"
2249
  msgstr ""
2250
 
2251
+ #: src/Tribe/Main.php:339
2252
  msgid "Show _MENU_ entries"
2253
  msgstr ""
2254
 
2255
+ #: src/Tribe/Main.php:340
2256
  msgid "No data available in table"
2257
  msgstr ""
2258
 
2259
+ #: src/Tribe/Main.php:341
2260
  msgid "Showing _START_ to _END_ of _TOTAL_ entries"
2261
  msgstr ""
2262
 
2263
+ #: src/Tribe/Main.php:342
2264
  msgid "Showing 0 to 0 of 0 entries"
2265
  msgstr ""
2266
 
2267
+ #: src/Tribe/Main.php:343
2268
  msgid "(filtered from _MAX_ total entries)"
2269
  msgstr ""
2270
 
2271
+ #: src/Tribe/Main.php:344
2272
  msgid "No matching records found"
2273
  msgstr ""
2274
 
2275
+ #: src/Tribe/Main.php:345
2276
  msgid "Search:"
2277
  msgstr ""
2278
 
2279
+ #: src/Tribe/Main.php:346
2280
  msgid "All items on this page were selected. "
2281
  msgstr ""
2282
 
2283
+ #: src/Tribe/Main.php:347
2284
  msgid "Select all pages"
2285
  msgstr ""
2286
 
2287
+ #: src/Tribe/Main.php:348
2288
  msgid "Clear Selection."
2289
  msgstr ""
2290
 
2291
+ #: src/Tribe/Main.php:350
2292
  msgid "All"
2293
  msgstr ""
2294
 
2295
+ #: src/Tribe/Main.php:351 src/Tribe/Main.php:368
2296
  msgid "Next"
2297
  msgstr ""
2298
 
2299
+ #: src/Tribe/Main.php:352
2300
  msgid "Previous"
2301
  msgstr ""
2302
 
2303
+ #: src/Tribe/Main.php:357
2304
  msgid ": Selected %d rows"
2305
  msgstr ""
2306
 
2307
+ #: src/Tribe/Main.php:358
2308
  msgid ": Selected 1 row"
2309
  msgstr ""
2310
 
2311
+ #: src/Tribe/Main.php:369
2312
  msgid "Prev"
2313
  msgstr ""
2314
 
2315
+ #: src/Tribe/Main.php:370 src/Tribe/Main.php:372
2316
  msgid "Today"
2317
  msgstr ""
2318
 
2319
+ #: src/Tribe/Main.php:371
2320
  msgid "Done"
2321
  msgstr ""
2322
 
2323
+ #: src/Tribe/Main.php:373
2324
  msgid "Clear"
2325
  msgstr ""
2326
 
common/src/Tribe/Admin/Notice/Date_Based.php CHANGED
@@ -136,7 +136,7 @@ abstract class Date_Based {
136
  */
137
  public function should_display() {
138
  // If upsells have been manually hidden, respect that.
139
- if ( defined( 'TRIBE_HIDE_UPSELL' ) && TRIBE_HIDE_UPSELL ) {
140
  return false;
141
  }
142
 
136
  */
137
  public function should_display() {
138
  // If upsells have been manually hidden, respect that.
139
+ if ( tec_should_hide_upsell() ) {
140
  return false;
141
  }
142
 
common/src/Tribe/Admin/Notice/Marketing.php CHANGED
@@ -121,7 +121,7 @@ class Tribe__Admin__Notice__Marketing {
121
  */
122
  public function black_friday_should_display() {
123
  // If upsells have been manually hidden, respect that.
124
- if ( defined( 'TRIBE_HIDE_UPSELL' ) && TRIBE_HIDE_UPSELL ) {
125
  return false;
126
  }
127
 
121
  */
122
  public function black_friday_should_display() {
123
  // If upsells have been manually hidden, respect that.
124
+ if ( tec_should_hide_upsell() ) {
125
  return false;
126
  }
127
 
common/src/Tribe/Admin/Troubleshooting.php CHANGED
@@ -120,7 +120,7 @@ class Troubleshooting {
120
 
121
  $wp_admin_bar->add_menu( [
122
  'id' => 'tec-troubleshooting',
123
- 'title' => esc_html__( 'Event Add-Ons', 'tribe-common' ),
124
  'href' => Tribe__Settings::instance()->get_url( [ 'page' => static::MENU_SLUG ] ),
125
  'parent' => 'tribe-events-settings-group',
126
  ] );
120
 
121
  $wp_admin_bar->add_menu( [
122
  'id' => 'tec-troubleshooting',
123
+ 'title' => esc_html__( 'Troubleshooting', 'tribe-common' ),
124
  'href' => Tribe__Settings::instance()->get_url( [ 'page' => static::MENU_SLUG ] ),
125
  'parent' => 'tribe-events-settings-group',
126
  ] );
common/src/Tribe/Assets.php CHANGED
@@ -180,9 +180,11 @@ class Tribe__Assets {
180
  return $tag;
181
  }
182
 
183
- // Do not add Module to a Script that already has a type.
184
- if ( false !== strpos( $tag, ' type=' ) ) {
185
- return $tag;
 
 
186
  }
187
 
188
  $replacement = '<script type="module" ';
180
  return $tag;
181
  }
182
 
183
+ // These themes already have the `type='text/javascript'` added by WordPress core.
184
+ if ( ! current_theme_supports( 'html5', 'script' ) ) {
185
+ $replacement = 'type="module"';
186
+
187
+ return str_replace( "type='text/javascript'", $replacement, $tag );
188
  }
189
 
190
  $replacement = '<script type="module" ';
common/src/Tribe/Editor/Configuration.php CHANGED
@@ -39,7 +39,7 @@ class Tribe__Editor__Configuration implements Tribe__Editor__Configuration_Inter
39
  ],
40
  'dateSettings' => $this->get_date_settings(),
41
  'constants' => [
42
- 'hideUpsell' => ( defined( 'TRIBE_HIDE_UPSELL' ) && TRIBE_HIDE_UPSELL ),
43
  ],
44
  'countries' => $languages_locations->get_countries( true ),
45
  'usStates' => Tribe__View_Helpers::loadStates(),
39
  ],
40
  'dateSettings' => $this->get_date_settings(),
41
  'constants' => [
42
+ 'hideUpsell' => tec_should_hide_upsell(),
43
  ],
44
  'countries' => $languages_locations->get_countries( true ),
45
  'usStates' => Tribe__View_Helpers::loadStates(),
common/src/Tribe/Main.php CHANGED
@@ -20,7 +20,7 @@ class Tribe__Main {
20
  const OPTIONNAME = 'tribe_events_calendar_options';
21
  const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
22
 
23
- const VERSION = '4.14.15';
24
 
25
  const FEED_URL = 'https://theeventscalendar.com/feed/';
26
 
@@ -160,6 +160,7 @@ class Tribe__Main {
160
  */
161
  public function init_libraries() {
162
  require_once $this->plugin_path . 'src/functions/utils.php';
 
163
  require_once $this->plugin_path . 'src/functions/url.php';
164
  require_once $this->plugin_path . 'src/functions/query.php';
165
  require_once $this->plugin_path . 'src/functions/multibyte.php';
@@ -217,7 +218,7 @@ class Tribe__Main {
217
  [
218
  [ 'tec-variables-skeleton', 'variables-skeleton.css', ],
219
  [ 'tribe-common-skeleton-style', 'common-skeleton.css', [ 'tec-variables-skeleton' ] ],
220
- [ 'tec-variables-full', 'variables-full.css', ],
221
  [ 'tribe-common-full-style', 'common-full.css', [ 'tec-variables-full', 'tribe-common-skeleton-style' ] ],
222
  ],
223
  null
20
  const OPTIONNAME = 'tribe_events_calendar_options';
21
  const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
22
 
23
+ const VERSION = '4.14.16';
24
 
25
  const FEED_URL = 'https://theeventscalendar.com/feed/';
26
 
160
  */
161
  public function init_libraries() {
162
  require_once $this->plugin_path . 'src/functions/utils.php';
163
+ require_once $this->plugin_path . 'src/functions/conditionals.php';
164
  require_once $this->plugin_path . 'src/functions/url.php';
165
  require_once $this->plugin_path . 'src/functions/query.php';
166
  require_once $this->plugin_path . 'src/functions/multibyte.php';
218
  [
219
  [ 'tec-variables-skeleton', 'variables-skeleton.css', ],
220
  [ 'tribe-common-skeleton-style', 'common-skeleton.css', [ 'tec-variables-skeleton' ] ],
221
+ [ 'tec-variables-full', 'variables-full.css', [ 'tec-variables-skeleton' ] ],
222
  [ 'tribe-common-full-style', 'common-full.css', [ 'tec-variables-full', 'tribe-common-skeleton-style' ] ],
223
  ],
224
  null
common/src/Tribe/Utils/Body_Classes.php CHANGED
@@ -340,9 +340,9 @@ class Body_Classes {
340
  * @since 4.12.6
341
  *
342
  * @param boolean $add Whether to add classes or not.
 
343
  * @param array $add_classes The array of body class names to add.
344
  * @param array $existing_classes An array of existing body class names from WP.
345
- * @param string $queue The queue we want to get 'admin', 'display', 'all'.
346
  *
347
  */
348
  return (bool)apply_filters( 'tribe_body_classes_should_add', false, $queue, $add_classes, $existing_classes );
340
  * @since 4.12.6
341
  *
342
  * @param boolean $add Whether to add classes or not.
343
+ * @param string $queue The queue we want to get 'admin', 'display', 'all'.
344
  * @param array $add_classes The array of body class names to add.
345
  * @param array $existing_classes An array of existing body class names from WP.
 
346
  *
347
  */
348
  return (bool)apply_filters( 'tribe_body_classes_should_add', false, $queue, $add_classes, $existing_classes );
common/src/admin-views/tribe-options-general.php CHANGED
@@ -22,7 +22,7 @@ $generalTabFields = [
22
  'upsell-info' => [
23
  'type' => 'html',
24
  'html' => '<p>' . esc_html__( 'Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'tribe-common' ) . ' <a href="' . Tribe__Main::$tec_url . 'products/?utm_source=generaltab&utm_medium=plugin-tec&utm_campaign=in-app">' . esc_html__( 'Check out the available add-ons', 'tribe-common' ) . '</a>.</p>',
25
- 'conditional' => ( ! defined( 'TRIBE_HIDE_UPSELL' ) || ! TRIBE_HIDE_UPSELL ) && class_exists( 'Tribe__Events__Main' ),
26
  ],
27
  'donate-link-heading' => [
28
  'type' => 'heading',
22
  'upsell-info' => [
23
  'type' => 'html',
24
  'html' => '<p>' . esc_html__( 'Looking for additional functionality including recurring events, custom meta, community events, ticket sales and more?', 'tribe-common' ) . ' <a href="' . Tribe__Main::$tec_url . 'products/?utm_source=generaltab&utm_medium=plugin-tec&utm_campaign=in-app">' . esc_html__( 'Check out the available add-ons', 'tribe-common' ) . '</a>.</p>',
25
+ 'conditional' => ( ! tec_should_hide_upsell() ) && class_exists( 'Tribe__Events__Main' ),
26
  ],
27
  'donate-link-heading' => [
28
  'type' => 'heading',
common/src/functions/conditionals.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Determines if upsells should be hidden.
5
+ *
6
+ * @since 4.14.16
7
+ *
8
+ * @param string $slug Which upsell is this conditional for, if nothing passed it will apply to all.
9
+ *
10
+ * @return bool
11
+ */
12
+ function tec_should_hide_upsell( string $slug = 'all' ): bool {
13
+ $verify = static function( $needle, $haystack ) {
14
+ // In all cases if true or false boolean we return that.
15
+ if ( is_bool( $haystack ) ) {
16
+ return $haystack;
17
+ }
18
+
19
+ if ( is_string( $haystack ) ) {
20
+ // When all just return true to hide.
21
+ if ( 'all' === $haystack ) {
22
+ return true;
23
+ }
24
+
25
+ $truthy = tribe_is_truthy( $haystack );
26
+ if ( $truthy ) {
27
+ return $truthy;
28
+ }
29
+ }
30
+
31
+ // Now allow multiple to be targeted as a string.
32
+ $haystack = explode( '|', $haystack );
33
+
34
+ // If the `all` string is on the haystack
35
+ if ( in_array( 'all', $haystack, true ) ) {
36
+ return true;
37
+ }
38
+
39
+ return in_array( $needle, $haystack, true );
40
+ };
41
+
42
+ // If upsells have been manually hidden, respect that.
43
+ if ( defined( 'TEC_HIDE_UPSELL' ) ) {
44
+ return $verify( $slug, TEC_HIDE_UPSELL );
45
+ }
46
+
47
+ // If upsells have been manually hidden, respect that.
48
+ if ( defined( 'TRIBE_HIDE_UPSELL' ) ) {
49
+ return $verify( $slug, TRIBE_HIDE_UPSELL );
50
+ }
51
+
52
+ $env_var = getenv( 'TEC_HIDE_UPSELL' );
53
+ if ( false !== $env_var ) {
54
+ return $verify( $slug, $env_var );
55
+ }
56
+
57
+ /**
58
+ * Allows filtering of the Upsells for anything using Common.
59
+ *
60
+ * @since 4.14.16
61
+ *
62
+ * @param bool|string $hide Determines if Upsells are hidden.
63
+ * @param bool|string $slug Which slug we are testing against.
64
+ */
65
+ $haystack = apply_filters( 'tec_should_hide_upsell', false, $slug );
66
+
67
+ /**
68
+ * Allows filtering of the Upsells for anything using Common, for one specific slug.
69
+ *
70
+ * @since 4.14.16
71
+ *
72
+ * @param bool|string $hide Determines if Upsells are hidden.
73
+ * @param bool|string $slug Which slug we are testing against.
74
+ */
75
+ $haystack = apply_filters( "tec_should_hide_upsell_{$slug}", $haystack, $slug );
76
+
77
+ return $verify( $slug, $haystack );
78
+ }
common/vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5eb0d65f6bb23ac2fe03a08f4483bcec::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit8dc5a9fdbf62c620f4c568133db7c1b6::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 ComposerAutoloaderInita1e7a01a74a70f41ef2febd73b339c00::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInitb188be7ffda6722adf0aa6f4673cd317::getLoader();
common/vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5eb0d65f6bb23ac2fe03a08f4483bcec
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit5eb0d65f6bb23ac2fe03a08f4483bcec
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit5eb0d65f6bb23ac2fe03a08f4483bcec', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit5eb0d65f6bb23ac2fe03a08f4483bcec', '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\ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec::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 ComposerAutoloaderInit8dc5a9fdbf62c620f4c568133db7c1b6
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit8dc5a9fdbf62c620f4c568133db7c1b6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit8dc5a9fdbf62c620f4c568133db7c1b6', '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\ComposerStaticInit8dc5a9fdbf62c620f4c568133db7c1b6::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 ComposerAutoloaderInita1e7a01a74a70f41ef2febd73b339c00 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInita1e7a01a74a70f41ef2febd73b339c00 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInita1e7a01a74a70f41ef2febd73b339c00', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInita1e7a01a74a70f41ef2febd73b339c00', '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 ComposerAutoloaderInitb188be7ffda6722adf0aa6f4673cd317 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitb188be7ffda6722adf0aa6f4673cd317', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitb188be7ffda6722adf0aa6f4673cd317', '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 ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
@@ -261,10 +261,10 @@ class ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec
261
  public static function getInitializer(ClassLoader $loader)
262
  {
263
  return \Closure::bind(function () use ($loader) {
264
- $loader->prefixLengthsPsr4 = ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec::$prefixLengthsPsr4;
265
- $loader->prefixDirsPsr4 = ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec::$prefixDirsPsr4;
266
- $loader->prefixesPsr0 = ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec::$prefixesPsr0;
267
- $loader->classMap = ComposerStaticInit5eb0d65f6bb23ac2fe03a08f4483bcec::$classMap;
268
 
269
  }, null, ClassLoader::class);
270
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8dc5a9fdbf62c620f4c568133db7c1b6
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
261
  public static function getInitializer(ClassLoader $loader)
262
  {
263
  return \Closure::bind(function () use ($loader) {
264
+ $loader->prefixLengthsPsr4 = ComposerStaticInit8dc5a9fdbf62c620f4c568133db7c1b6::$prefixLengthsPsr4;
265
+ $loader->prefixDirsPsr4 = ComposerStaticInit8dc5a9fdbf62c620f4c568133db7c1b6::$prefixDirsPsr4;
266
+ $loader->prefixesPsr0 = ComposerStaticInit8dc5a9fdbf62c620f4c568133db7c1b6::$prefixesPsr0;
267
+ $loader->classMap = ComposerStaticInit8dc5a9fdbf62c620f4c568133db7c1b6::$classMap;
268
 
269
  }, null, ClassLoader::class);
270
  }
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.0.1
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.1
7
  Author: The Events Calendar
8
  Author URI: https://evnt.is/1aor
9
  License: GPLv2 or later
lang/event-tickets-es_ES.mo CHANGED
Binary file
lang/event-tickets-it_IT.mo CHANGED
Binary file
lang/event-tickets.pot CHANGED
@@ -2,19 +2,19 @@
2
  # This file is distributed under the same license as the Event Tickets package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Event Tickets 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-tickets\n"
7
- "POT-Creation-Date: 2022-02-23 17:47:54+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: 2022-02-23 17:47\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
 
15
- #. #-#-#-#-# event-tickets.pot (Event Tickets 5.3.0) #-#-#-#-#
16
  #. Plugin Name of the plugin/theme
17
- #: event-tickets.php:61 src/Tribe/Admin/Notices.php:92 src/Tribe/Main.php:691
18
  #: src/Tribe/Privacy.php:59 src/admin-views/admin-welcome-message.php:58
19
  msgid "Event Tickets"
20
  msgstr ""
@@ -4578,32 +4578,32 @@ msgid "Reach out to PayPal to resolve the following capabilities:"
4578
  msgstr ""
4579
 
4580
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:77
4581
- #: src/Tribe/Commerce/PayPal/Main.php:1908 src/Tribe/RSVP.php:2355
4582
  msgid "Return to the %1$sAttendees Report%2$s."
4583
  msgstr ""
4584
 
4585
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:84
4586
- #: src/Tribe/Commerce/PayPal/Main.php:1915 src/Tribe/RSVP.php:2362
4587
  msgid "Post updated. %1$s"
4588
  msgstr ""
4589
 
4590
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:88
4591
- #: src/Tribe/Commerce/PayPal/Main.php:1919 src/Tribe/RSVP.php:2366
4592
  msgid "Post published. %1$s"
4593
  msgstr ""
4594
 
4595
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:91
4596
- #: src/Tribe/Commerce/PayPal/Main.php:1922 src/Tribe/RSVP.php:2369
4597
  msgid "Post submitted."
4598
  msgstr ""
4599
 
4600
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:92
4601
- #: src/Tribe/Commerce/PayPal/Main.php:1923 src/Tribe/RSVP.php:2370
4602
  msgid "Post scheduled."
4603
  msgstr ""
4604
 
4605
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:93
4606
- #: src/Tribe/Commerce/PayPal/Main.php:1924 src/Tribe/RSVP.php:2371
4607
  msgid "Post draft updated."
4608
  msgstr ""
4609
 
@@ -4976,7 +4976,7 @@ msgid "Tribe Commerce ( Legacy PayPal, not recommended )"
4976
  msgstr ""
4977
 
4978
  #: src/Tickets/Commerce/Models/Attendee_Model.php:62
4979
- #: src/Tribe/Commerce/PayPal/Main.php:2959 src/Tribe/RSVP.php:2014
4980
  msgid "(deleted)"
4981
  msgstr ""
4982
 
@@ -4995,7 +4995,7 @@ msgid "Payments"
4995
  msgstr ""
4996
 
4997
  #: src/Tickets/Commerce/Payments_Tab.php:281 src/Tribe/Admin/Notices.php:214
4998
- #: src/Tribe/Main.php:666 src/admin-views/admin-welcome-message.php:56
4999
  #: src/admin-views/tribe-commerce-settings.php:4
5000
  msgid "Event Tickets Plus"
5001
  msgstr ""
@@ -5113,12 +5113,12 @@ msgid "Orders Report"
5113
  msgstr ""
5114
 
5115
  #: src/Tickets/Commerce/Reports/Orders.php:91
5116
- #: src/Tribe/Commerce/PayPal/Main.php:1724
5117
  msgid "Sales report"
5118
  msgstr ""
5119
 
5120
  #: src/Tickets/Commerce/Reports/Orders.php:132
5121
- #: src/Tribe/Commerce/PayPal/Main.php:1750
5122
  msgid "Report"
5123
  msgstr ""
5124
 
@@ -5975,7 +5975,7 @@ msgstr ""
5975
  msgid "%s Capacity"
5976
  msgstr ""
5977
 
5978
- #: src/Tribe/CSV_Importer/RSVP_Importer.php:250
5979
  msgid "Recurring event tickets are not supported, event %s."
5980
  msgstr ""
5981
 
@@ -6334,90 +6334,90 @@ msgid ""
6334
  "moving you to a newer version of PHP."
6335
  msgstr ""
6336
 
6337
- #: src/Tribe/Main.php:621
6338
  msgid "Support for Event Tickets"
6339
  msgstr ""
6340
 
6341
- #: src/Tribe/Main.php:623
6342
  msgid "Settings overview"
6343
  msgstr ""
6344
 
6345
- #: src/Tribe/Main.php:624
6346
  msgid "Features overview"
6347
  msgstr ""
6348
 
6349
- #: src/Tribe/Main.php:625
6350
  msgid "Troubleshooting common problems"
6351
  msgstr ""
6352
 
6353
- #: src/Tribe/Main.php:626
6354
  msgid "Customizing Event Tickets"
6355
  msgstr ""
6356
 
6357
- #: src/Tribe/Main.php:643
6358
  msgid "New User Primer"
6359
  msgstr ""
6360
 
6361
- #: src/Tribe/Main.php:645
6362
  msgctxt "help feature box section"
6363
  msgid ""
6364
  "We are committed to helping you sell %1$s for your event. Check out our "
6365
  "handy %2$s to get started."
6366
  msgstr ""
6367
 
6368
- #: src/Tribe/Main.php:662
6369
  msgid "open-source forum on WordPress.org"
6370
  msgstr ""
6371
 
6372
- #: src/Tribe/Main.php:663
6373
  msgid ""
6374
  "If you have tried the above steps and are still having trouble, you can post "
6375
  "a new thread to our %s. Our support staff monitors these forums once a week "
6376
  "and would be happy to assist you there."
6377
  msgstr ""
6378
 
6379
- #: src/Tribe/Main.php:665
6380
  msgid "premium support on our website"
6381
  msgstr ""
6382
 
6383
- #: src/Tribe/Main.php:667
6384
  msgid ""
6385
  "Looking for more immediate support? We offer %1$s with the purchase of any "
6386
  "of our premium plugins (like %2$s). Pick up a license and you can post there "
6387
  "directly and expect a response within 24-48 hours during weekdays."
6388
  msgstr ""
6389
 
6390
- #: src/Tribe/Main.php:669 src/Tribe/Main.php:674
6391
  msgid "post a thread"
6392
  msgstr ""
6393
 
6394
- #: src/Tribe/Main.php:670
6395
  msgid ""
6396
  "Already have Event Tickets Plus? You can %s in our premium support forums. "
6397
  "Our support team monitors the forums and will respond to your thread within "
6398
  "24-48 hours (during the week)."
6399
  msgstr ""
6400
 
6401
- #: src/Tribe/Main.php:675
6402
  msgid ""
6403
  "If you have a valid license for one of our paid plugins, you can %s in our "
6404
  "premium support forums. Our support team monitors the forums and will "
6405
  "respond to your thread within 24-48 hours (during the week)."
6406
  msgstr ""
6407
 
6408
- #: src/Tribe/Main.php:697
6409
  msgid "Event Tickets - Legacy"
6410
  msgstr ""
6411
 
6412
- #: src/Tribe/Main.php:833
6413
  msgid "Welcome to Event Tickets!"
6414
  msgstr ""
6415
 
6416
- #: src/Tribe/Main.php:986
6417
  msgid "Buy"
6418
  msgstr ""
6419
 
6420
- #: src/Tribe/Main.php:1065
6421
  msgid ""
6422
  "When Event Tickets and Event Tickets Plus are both activated, Event Tickets "
6423
  "Plus must be running version %1$s or greater. Please %2$smanually update now"
@@ -7343,16 +7343,16 @@ msgstr ""
7343
  msgid "You confirmed you will not be attending %s"
7344
  msgstr ""
7345
 
7346
- #: src/Tribe/RSVP.php:1723
7347
  msgid ""
7348
  "Your %1$s has been received! Check your email for your %1$s confirmation."
7349
  msgstr ""
7350
 
7351
- #: src/Tribe/RSVP.php:1730
7352
  msgid "You can't %1$s more than the total remaining %2$s."
7353
  msgstr ""
7354
 
7355
- #: src/Tribe/RSVP.php:1738
7356
  msgid "In order to %s, you must enter your name and a valid email address."
7357
  msgstr ""
7358
 
2
  # This file is distributed under the same license as the Event Tickets package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Event Tickets 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/event-tickets\n"
7
+ "POT-Creation-Date: 2022-03-15 18:47:00+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: 2022-03-15 18:47\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
 
15
+ #. #-#-#-#-# event-tickets.pot (Event Tickets 5.3.1) #-#-#-#-#
16
  #. Plugin Name of the plugin/theme
17
+ #: event-tickets.php:61 src/Tribe/Admin/Notices.php:92 src/Tribe/Main.php:692
18
  #: src/Tribe/Privacy.php:59 src/admin-views/admin-welcome-message.php:58
19
  msgid "Event Tickets"
20
  msgstr ""
4578
  msgstr ""
4579
 
4580
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:77
4581
+ #: src/Tribe/Commerce/PayPal/Main.php:1906 src/Tribe/RSVP.php:2361
4582
  msgid "Return to the %1$sAttendees Report%2$s."
4583
  msgstr ""
4584
 
4585
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:84
4586
+ #: src/Tribe/Commerce/PayPal/Main.php:1913 src/Tribe/RSVP.php:2368
4587
  msgid "Post updated. %1$s"
4588
  msgstr ""
4589
 
4590
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:88
4591
+ #: src/Tribe/Commerce/PayPal/Main.php:1917 src/Tribe/RSVP.php:2372
4592
  msgid "Post published. %1$s"
4593
  msgstr ""
4594
 
4595
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:91
4596
+ #: src/Tribe/Commerce/PayPal/Main.php:1920 src/Tribe/RSVP.php:2375
4597
  msgid "Post submitted."
4598
  msgstr ""
4599
 
4600
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:92
4601
+ #: src/Tribe/Commerce/PayPal/Main.php:1921 src/Tribe/RSVP.php:2376
4602
  msgid "Post scheduled."
4603
  msgstr ""
4604
 
4605
  #: src/Tickets/Commerce/Gateways/PayPal/Tickets_Form.php:93
4606
+ #: src/Tribe/Commerce/PayPal/Main.php:1922 src/Tribe/RSVP.php:2377
4607
  msgid "Post draft updated."
4608
  msgstr ""
4609
 
4976
  msgstr ""
4977
 
4978
  #: src/Tickets/Commerce/Models/Attendee_Model.php:62
4979
+ #: src/Tribe/Commerce/PayPal/Main.php:2957 src/Tribe/RSVP.php:2020
4980
  msgid "(deleted)"
4981
  msgstr ""
4982
 
4995
  msgstr ""
4996
 
4997
  #: src/Tickets/Commerce/Payments_Tab.php:281 src/Tribe/Admin/Notices.php:214
4998
+ #: src/Tribe/Main.php:667 src/admin-views/admin-welcome-message.php:56
4999
  #: src/admin-views/tribe-commerce-settings.php:4
5000
  msgid "Event Tickets Plus"
5001
  msgstr ""
5113
  msgstr ""
5114
 
5115
  #: src/Tickets/Commerce/Reports/Orders.php:91
5116
+ #: src/Tribe/Commerce/PayPal/Main.php:1722
5117
  msgid "Sales report"
5118
  msgstr ""
5119
 
5120
  #: src/Tickets/Commerce/Reports/Orders.php:132
5121
+ #: src/Tribe/Commerce/PayPal/Main.php:1748
5122
  msgid "Report"
5123
  msgstr ""
5124
 
5975
  msgid "%s Capacity"
5976
  msgstr ""
5977
 
5978
+ #: src/Tribe/CSV_Importer/RSVP_Importer.php:254
5979
  msgid "Recurring event tickets are not supported, event %s."
5980
  msgstr ""
5981
 
6334
  "moving you to a newer version of PHP."
6335
  msgstr ""
6336
 
6337
+ #: src/Tribe/Main.php:622
6338
  msgid "Support for Event Tickets"
6339
  msgstr ""
6340
 
6341
+ #: src/Tribe/Main.php:624
6342
  msgid "Settings overview"
6343
  msgstr ""
6344
 
6345
+ #: src/Tribe/Main.php:625
6346
  msgid "Features overview"
6347
  msgstr ""
6348
 
6349
+ #: src/Tribe/Main.php:626
6350
  msgid "Troubleshooting common problems"
6351
  msgstr ""
6352
 
6353
+ #: src/Tribe/Main.php:627
6354
  msgid "Customizing Event Tickets"
6355
  msgstr ""
6356
 
6357
+ #: src/Tribe/Main.php:644
6358
  msgid "New User Primer"
6359
  msgstr ""
6360
 
6361
+ #: src/Tribe/Main.php:646
6362
  msgctxt "help feature box section"
6363
  msgid ""
6364
  "We are committed to helping you sell %1$s for your event. Check out our "
6365
  "handy %2$s to get started."
6366
  msgstr ""
6367
 
6368
+ #: src/Tribe/Main.php:663
6369
  msgid "open-source forum on WordPress.org"
6370
  msgstr ""
6371
 
6372
+ #: src/Tribe/Main.php:664
6373
  msgid ""
6374
  "If you have tried the above steps and are still having trouble, you can post "
6375
  "a new thread to our %s. Our support staff monitors these forums once a week "
6376
  "and would be happy to assist you there."
6377
  msgstr ""
6378
 
6379
+ #: src/Tribe/Main.php:666
6380
  msgid "premium support on our website"
6381
  msgstr ""
6382
 
6383
+ #: src/Tribe/Main.php:668
6384
  msgid ""
6385
  "Looking for more immediate support? We offer %1$s with the purchase of any "
6386
  "of our premium plugins (like %2$s). Pick up a license and you can post there "
6387
  "directly and expect a response within 24-48 hours during weekdays."
6388
  msgstr ""
6389
 
6390
+ #: src/Tribe/Main.php:670 src/Tribe/Main.php:675
6391
  msgid "post a thread"
6392
  msgstr ""
6393
 
6394
+ #: src/Tribe/Main.php:671
6395
  msgid ""
6396
  "Already have Event Tickets Plus? You can %s in our premium support forums. "
6397
  "Our support team monitors the forums and will respond to your thread within "
6398
  "24-48 hours (during the week)."
6399
  msgstr ""
6400
 
6401
+ #: src/Tribe/Main.php:676
6402
  msgid ""
6403
  "If you have a valid license for one of our paid plugins, you can %s in our "
6404
  "premium support forums. Our support team monitors the forums and will "
6405
  "respond to your thread within 24-48 hours (during the week)."
6406
  msgstr ""
6407
 
6408
+ #: src/Tribe/Main.php:698
6409
  msgid "Event Tickets - Legacy"
6410
  msgstr ""
6411
 
6412
+ #: src/Tribe/Main.php:834
6413
  msgid "Welcome to Event Tickets!"
6414
  msgstr ""
6415
 
6416
+ #: src/Tribe/Main.php:987
6417
  msgid "Buy"
6418
  msgstr ""
6419
 
6420
+ #: src/Tribe/Main.php:1066
6421
  msgid ""
6422
  "When Event Tickets and Event Tickets Plus are both activated, Event Tickets "
6423
  "Plus must be running version %1$s or greater. Please %2$smanually update now"
7343
  msgid "You confirmed you will not be attending %s"
7344
  msgstr ""
7345
 
7346
+ #: src/Tribe/RSVP.php:1729
7347
  msgid ""
7348
  "Your %1$s has been received! Check your email for your %1$s confirmation."
7349
  msgstr ""
7350
 
7351
+ #: src/Tribe/RSVP.php:1736
7352
  msgid "You can't %1$s more than the total remaining %2$s."
7353
  msgstr ""
7354
 
7355
+ #: src/Tribe/RSVP.php:1744
7356
  msgid "In order to %s, you must enter your name and a valid email address."
7357
  msgstr ""
7358
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Event Tickets ===
2
 
3
  Contributors: theeventscalendar, brianjessee, camwynsp, aguseo, bordoni, borkweb, GeoffBel, jentheo, leahkoerper, lucatume, neillmcshea, vicskf, zbtirrell, juanfra, moraleida.me
4
  Tags: tickets, registration, The Events Calendar, RSVP, ticket sales, attendee management
5
  Requires at least: 5.6
6
- Tested up to: 5.9.1
7
- Stable tag: 5.3.0.1
8
  Requires PHP: 7.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -17,7 +17,7 @@ Sell tickets and collect RSVPs with the free [Event Tickets](https://evnt.is/1ao
17
 
18
  This plugin makes it easy to sell tickets, collect registrations, and manage attendees for your in-person or virtual events. Plus, it comes with features backed by our world-class team of developers and designers. Easily integrate Event Tickets with your Stripe account or PayPal business account.
19
 
20
- Connect to Stripe and take advantage of one of the world’s most popular payment gateways. Our Stripe integration lets you accept credit card payments on your website, along with additional payment methods including AfterPay, ClearPay, AliPay, Giropay, and Klarna.
21
 
22
  https://vimeo.com/480516958
23
 
@@ -192,6 +192,18 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us
192
 
193
  == Changelog ==
194
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  = [5.3.0.1] 2022-03-01 =
196
 
197
  * Tweak - Update version of Freemius to 2.4.3.
1
+ === Event Tickets and Registration ===
2
 
3
  Contributors: theeventscalendar, brianjessee, camwynsp, aguseo, bordoni, borkweb, GeoffBel, jentheo, leahkoerper, lucatume, neillmcshea, vicskf, zbtirrell, juanfra, moraleida.me
4
  Tags: tickets, registration, The Events Calendar, RSVP, ticket sales, attendee management
5
  Requires at least: 5.6
6
+ Tested up to: 5.9.2
7
+ Stable tag: 5.3.1
8
  Requires PHP: 7.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
17
 
18
  This plugin makes it easy to sell tickets, collect registrations, and manage attendees for your in-person or virtual events. Plus, it comes with features backed by our world-class team of developers and designers. Easily integrate Event Tickets with your Stripe account or PayPal business account.
19
 
20
+ Connect to Stripe and take advantage of one of the world’s most popular payment gateways. Our Stripe integration lets you accept credit card payments on your website, along with additional payment methods including AfterPay, ClearPay, AliPay, Giropay, and Klarna.
21
 
22
  https://vimeo.com/480516958
23
 
192
 
193
  == Changelog ==
194
 
195
+ = [5.3.1] 2022-03-15 =
196
+
197
+ * Fix - Fixed a warning message when creating an event via Community Events. [CT-51]
198
+ * Fix - Fixed errors for Tickets Commerce with Stripe during checkout. [ET-1447]
199
+ * Fix - Fixed the default views (v2) for users that are using Event Tickets as standalone, after version `5.3.0`. [ET-1448]
200
+ * Fix - Avoid sending duplicate ticket emails for using Tickets Commerce Stripe Webhooks. [ET-1446]
201
+ * Fix - Respect the selected currency when using Tickets Commerce in the blocks editor. [ET-1450]
202
+ * Enhancement - Updated theme compatibility class to make use of common compatibility classes. Deprecate the `filter_body_class` and `get_body_classes` methods from `Tribe__Tickets__Theme_Compatibility`. [ET-850]
203
+ * Enhancement - Tweaked `get_tickets` method to improve stability and performance around ticket. [ET-1362]
204
+ * Tweak - Removed filters: `tribe_tickets_theme_compatibility_registered`
205
+ * Language - 0 new strings added, 33 updated, 0 fuzzied, and 0 obsoleted
206
+
207
  = [5.3.0.1] 2022-03-01 =
208
 
209
  * Tweak - Update version of Freemius to 2.4.3.
src/Tickets/Commerce/Gateways/Stripe/Webhooks/Payment_Intent_Webhook.php CHANGED
@@ -59,6 +59,8 @@ class Payment_Intent_Webhook implements Webhook_Event_Interface {
59
  esc_html( $payment_intent_id )
60
  )
61
  );
 
 
62
  }
63
 
64
  $meta = [
@@ -114,13 +116,15 @@ class Payment_Intent_Webhook implements Webhook_Event_Interface {
114
  return true;
115
  }
116
 
117
- foreach ( $payment_intents_stored as $intent ) {
118
- // This payment intent has already been processed and updated.
119
- if ( $payment_intent_received['id'] === $intent['id'] ) {
120
- return false;
 
 
121
  }
122
  }
123
 
124
  return true;
125
  }
126
- }
59
  esc_html( $payment_intent_id )
60
  )
61
  );
62
+
63
+ return $response;
64
  }
65
 
66
  $meta = [
116
  return true;
117
  }
118
 
119
+ foreach ( $payment_intents_stored as $status => $intents ) {
120
+ foreach( $intents as $intent ) {
121
+ // This payment intent has already been processed and updated.
122
+ if ( $payment_intent_received['id'] === $intent['id'] ) {
123
+ return false;
124
+ }
125
  }
126
  }
127
 
128
  return true;
129
  }
130
+ }
src/Tickets/Commerce/Order.php CHANGED
@@ -275,7 +275,7 @@ class Order extends Abstract_Order {
275
  return false;
276
  }
277
 
278
- $can_apply = $status->can_apply_to( $order_id );
279
  if ( ! $can_apply ) {
280
  return $can_apply;
281
  }
275
  return false;
276
  }
277
 
278
+ $can_apply = $status->can_apply_to( $order_id, $status );
279
  if ( ! $can_apply ) {
280
  return $can_apply;
281
  }
src/Tickets/Commerce/Status/Pending.php CHANGED
@@ -59,8 +59,8 @@ class Pending extends Status_Abstract {
59
  /**
60
  * {@inheritdoc}
61
  */
62
- public function can_apply_to( $order ) {
63
- $status = parent::can_apply_to( $order );
64
 
65
  // If the parent status is final, don't run.
66
  if ( ! $status ) {
59
  /**
60
  * {@inheritdoc}
61
  */
62
+ public function can_apply_to( $order, $new_status ) {
63
+ $status = parent::can_apply_to( $order, $new_status );
64
 
65
  // If the parent status is final, don't run.
66
  if ( ! $status ) {
src/Tickets/Commerce/Status/Status_Abstract.php CHANGED
@@ -128,10 +128,14 @@ abstract class Status_Abstract implements Status_Interface {
128
  /**
129
  * {@inheritdoc}
130
  */
131
- public function can_apply_to( $order ) {
132
  $order = tec_tc_get_order( $order );
133
  $current_status = tribe( Status_Handler::class )->get_by_wp_slug( $order->post_status );
134
 
 
 
 
 
135
  if ( $current_status->is_final() ) {
136
  return false;
137
  }
128
  /**
129
  * {@inheritdoc}
130
  */
131
+ public function can_apply_to( $order, $new_status ) {
132
  $order = tec_tc_get_order( $order );
133
  $current_status = tribe( Status_Handler::class )->get_by_wp_slug( $order->post_status );
134
 
135
+ if ( $current_status->get_wp_slug() === $new_status->get_wp_slug() ) {
136
+ return false;
137
+ }
138
+
139
  if ( $current_status->is_final() ) {
140
  return false;
141
  }
src/Tickets/Commerce/Status/Status_Interface.php CHANGED
@@ -76,13 +76,15 @@ interface Status_Interface {
76
  /**
77
  * Determines if a given order can be modified to this status.
78
  *
 
79
  * @since 5.1.9
80
  *
81
- * @param int|\WP_Post $order Which order we are testing against.
 
82
  *
83
  * @return boolean|\WP_Error
84
  */
85
- public function can_apply_to( $order );
86
 
87
  /**
88
  * Filters the WP arguments used to register the status.
76
  /**
77
  * Determines if a given order can be modified to this status.
78
  *
79
+ * @since 5.3.1 $new_status parameter introduced
80
  * @since 5.1.9
81
  *
82
+ * @param int|\WP_Post $order Which order we are testing against.
83
+ * @param Status_Abstract $new_status The status to transition to.
84
  *
85
  * @return boolean|\WP_Error
86
  */
87
+ public function can_apply_to( $order, $new_status );
88
 
89
  /**
90
  * Filters the WP arguments used to register the status.
src/Tickets/Commerce/Ticket.php CHANGED
@@ -356,9 +356,7 @@ class Ticket {
356
  * @param int $post_id
357
  * @param int $ticket_id
358
  */
359
- $return = apply_filters( 'tec_tickets_commerce_get_ticket_legacy', $return, $event_id, $ticket_id );
360
-
361
- return $return;
362
  }
363
 
364
  /**
356
  * @param int $post_id
357
  * @param int $ticket_id
358
  */
359
+ return apply_filters( 'tec_tickets_commerce_get_ticket_legacy', $return, $event_id, $ticket_id );
 
 
360
  }
361
 
362
  /**
src/Tribe/CSV_Importer/RSVP_Importer.php CHANGED
@@ -95,7 +95,11 @@ class Tribe__Tickets__CSV_Importer__RSVP_Importer extends Tribe__Events__Importe
95
 
96
  $ticket = $this->rsvp_tickets->get_ticket( $event->ID, $ticket_post->ID );
97
 
98
- $match = $ticket->get_event() == $event ? true : false;
 
 
 
 
99
 
100
  self::$ticket_name_cache[ $cache_key ] = $match;
101
 
95
 
96
  $ticket = $this->rsvp_tickets->get_ticket( $event->ID, $ticket_post->ID );
97
 
98
+ $match = false;
99
+
100
+ if ( $ticket instanceof Tribe__Tickets__Ticket_Object && $ticket->get_event() == $event ) {
101
+ $match = true;
102
+ }
103
 
104
  self::$ticket_name_cache[ $cache_key ] = $match;
105
 
src/Tribe/Commerce/Currency.php CHANGED
@@ -447,6 +447,10 @@ class Tribe__Tickets__Commerce__Currency {
447
  return edd_currency_symbol();
448
  }
449
 
 
 
 
 
450
  /** @var Tribe__Tickets__Commerce__PayPal__Main $tpp */
451
  $tpp = tribe( 'tickets.commerce.paypal' );
452
 
447
  return edd_currency_symbol();
448
  }
449
 
450
+ if ( 'TEC\Tickets\Commerce\Module' === $provider && function_exists( 'tec_tickets_commerce_currency_symbol' ) ) {
451
+ return tec_tickets_commerce_currency_symbol();
452
+ }
453
+
454
  /** @var Tribe__Tickets__Commerce__PayPal__Main $tpp */
455
  $tpp = tribe( 'tickets.commerce.paypal' );
456
 
src/Tribe/Commerce/PayPal/Main.php CHANGED
@@ -1545,9 +1545,7 @@ class Tribe__Tickets__Commerce__PayPal__Main extends Tribe__Tickets__Tickets {
1545
  * @param int $post_id
1546
  * @param int $ticket_id
1547
  */
1548
- $ticket = apply_filters( 'tribe_tickets_tpp_get_ticket', $return, $event_id, $ticket_id );
1549
-
1550
- return $return;
1551
  }
1552
 
1553
  /**
1545
  * @param int $post_id
1546
  * @param int $ticket_id
1547
  */
1548
+ return apply_filters( 'tribe_tickets_tpp_get_ticket', $return, $event_id, $ticket_id );
 
 
1549
  }
1550
 
1551
  /**
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.0.1';
11
 
12
  /**
13
  * Used to store the version history.
@@ -362,7 +362,7 @@ class Tribe__Tickets__Main {
362
  tribe_singleton( 'tickets.commerce.paypal', new Tribe__Tickets__Commerce__PayPal__Main );
363
  tribe_singleton( 'tickets.redirections', 'Tribe__Tickets__Redirections' );
364
 
365
- tribe_singleton( 'tickets.theme-compatibility', 'Tribe__Tickets__Theme_Compatibility' );
366
 
367
  // Event Tickets Provider to manage Events.
368
  tribe_register_provider( Events_Service_Provider::class );
@@ -524,6 +524,7 @@ class Tribe__Tickets__Main {
524
  $this->register_plugin_autoload_paths();
525
 
526
  require_once $this->plugin_path . 'src/template-tags/tickets.php';
 
527
 
528
  // deprecated classes are registered in a class to path fashion
529
  foreach ( glob( $this->plugin_path . 'src/deprecated/*.php' ) as $file ) {
@@ -607,7 +608,7 @@ class Tribe__Tickets__Main {
607
  add_action( 'init', tribe_callback( 'tickets.commerce.cart', 'hook' ) );
608
 
609
  // Theme Compatibility.
610
- add_filter( 'body_class', tribe_callback( 'tickets.theme-compatibility', 'filter_body_class' ) );
611
  }
612
 
613
  /**
7
  /**
8
  * Current version of this plugin
9
  */
10
+ const VERSION = '5.3.1';
11
 
12
  /**
13
  * Used to store the version history.
362
  tribe_singleton( 'tickets.commerce.paypal', new Tribe__Tickets__Commerce__PayPal__Main );
363
  tribe_singleton( 'tickets.redirections', 'Tribe__Tickets__Redirections' );
364
 
365
+ tribe_singleton( Tribe__Tickets__Theme_Compatibility::class, Tribe__Tickets__Theme_Compatibility::class );
366
 
367
  // Event Tickets Provider to manage Events.
368
  tribe_register_provider( Events_Service_Provider::class );
524
  $this->register_plugin_autoload_paths();
525
 
526
  require_once $this->plugin_path . 'src/template-tags/tickets.php';
527
+ require_once $this->plugin_path . 'src/template-tags/commerce.php';
528
 
529
  // deprecated classes are registered in a class to path fashion
530
  foreach ( glob( $this->plugin_path . 'src/deprecated/*.php' ) as $file ) {
608
  add_action( 'init', tribe_callback( 'tickets.commerce.cart', 'hook' ) );
609
 
610
  // Theme Compatibility.
611
+ add_filter( 'body_class', [ tribe( Tribe__Tickets__Theme_Compatibility::class ), 'add_body_classes' ], 55 );
612
  }
613
 
614
  /**
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.0-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.1-dev',
12
  'Tribe__Events__Community__Tickets__Main' => '4.7.2-dev',
13
  ),
14
  );
src/Tribe/RSVP.php CHANGED
@@ -1629,7 +1629,13 @@ class Tribe__Tickets__RSVP extends Tribe__Tickets__Tickets {
1629
  $tickets = [];
1630
 
1631
  foreach ( $ticket_ids as $post ) {
1632
- $tickets[] = $this->get_ticket( $post_id, $post );
 
 
 
 
 
 
1633
  }
1634
 
1635
  return $tickets;
@@ -2573,6 +2579,10 @@ class Tribe__Tickets__RSVP extends Tribe__Tickets__Tickets {
2573
  /** @var Tribe__Tickets__Ticket_Object $ticket_type */
2574
  $ticket_type = $this->get_ticket( $post_id, $product_id );
2575
 
 
 
 
 
2576
  // get the RSVP status `decrease_stock_by` value
2577
  $status_stock_size = $rsvp_options[ $attendee_order_status ]['decrease_stock_by'];
2578
 
1629
  $tickets = [];
1630
 
1631
  foreach ( $ticket_ids as $post ) {
1632
+ $ticket = $this->get_ticket( $post_id, $post );
1633
+
1634
+ if ( ! $ticket instanceof Tribe__Tickets__Ticket_Object ) {
1635
+ continue;
1636
+ }
1637
+
1638
+ $tickets[] = $ticket;
1639
  }
1640
 
1641
  return $tickets;
2579
  /** @var Tribe__Tickets__Ticket_Object $ticket_type */
2580
  $ticket_type = $this->get_ticket( $post_id, $product_id );
2581
 
2582
+ if ( ! $ticket_type instanceof Tribe__Tickets__Ticket_Object ) {
2583
+ return false;
2584
+ }
2585
+
2586
  // get the RSVP status `decrease_stock_by` value
2587
  $status_stock_size = $rsvp_options[ $attendee_order_status ]['decrease_stock_by'];
2588
 
src/Tribe/Theme_Compatibility.php CHANGED
@@ -2,72 +2,34 @@
2
  /**
3
  * Add theme compatibility things here.
4
  *
5
- * @todo This is an implementation to set a body class we can use in the common implementation.
6
- *
7
  * @since 4.11.4
8
  *
 
9
  */
 
 
10
 
11
- class Tribe__Tickets__Theme_Compatibility {
12
- /**
13
- * List of themes which have compatibility.
14
- *
15
- * @since 4.11.4
16
- *
17
- * @var array
18
- */
19
- protected $themes = [
20
- 'avada',
21
- 'divi',
22
- 'enfold',
23
- 'genesis',
24
- 'twentyfifteen',
25
- 'twentysixteen',
26
- 'twentyseventeen',
27
- 'twentynineteen',
28
- 'twentytwenty',
29
- 'twentytwentyone',
30
- ];
31
-
32
- /**
33
- * Checks if theme needs a compatibility fix.
34
- *
35
- * @since 4.11.4
36
- *
37
- * @return boolean Whether compatibility is required.
38
- */
39
- public function is_compatibility_required() {
40
- $template = strtolower( get_template() );
41
- $stylesheet = strtolower( get_stylesheet() );
42
-
43
- // Prevents empty stylesheet or template.
44
- if ( empty( $template ) || empty( $stylesheet ) ) {
45
- return false;
46
- }
47
-
48
- if ( in_array( $template, $this->get_registered_themes() ) ) {
49
- return true;
50
- }
51
-
52
- return false;
53
- }
54
 
55
  /**
56
  * Add the theme to the body class.
57
  *
58
  * @since 4.11.4
59
  *
 
 
60
  * @param array $classes List of body classes.
61
  *
62
  * @return array $classes List of body classes, modified if compatibility is required.
63
  */
64
  public function filter_body_class( array $classes ) {
 
65
 
66
- if ( ! $this->is_compatibility_required() ) {
67
  return $classes;
68
  }
69
 
70
- return array_merge( $classes, $this->get_body_classes() );
71
  }
72
 
73
  /**
@@ -75,46 +37,23 @@ class Tribe__Tickets__Theme_Compatibility {
75
  *
76
  * @since 4.11.4
77
  *
 
 
78
  * @return array $classes List of body classes with parent and child theme classes included.
79
  */
80
  public function get_body_classes() {
81
- $classes = [];
82
- $child_theme = strtolower( get_stylesheet() );
83
- $parent_theme = strtolower( get_template() );
84
-
85
- // Prevents empty stylesheet or template.
86
- if ( empty( $parent_theme ) || empty( $child_theme ) ) {
87
- return $classes;
88
- }
89
-
90
- $classes[] = sanitize_html_class( "tribe-theme-$parent_theme" );
91
-
92
- // if the 2 options are the same, then there is no child theme.
93
- if ( $child_theme !== $parent_theme ) {
94
- $classes[] = sanitize_html_class( "tribe-theme-parent-$parent_theme" );
95
- $classes[] = sanitize_html_class( "tribe-theme-child-$child_theme" );
96
- }
97
-
98
- return $classes;
99
  }
100
 
101
  /**
102
- * Returns a list of themes registered for compatibility with our Views.
103
  *
104
- * @since 4.11.4
105
  *
106
- * @return array An array of the themes registered.
107
  */
108
- public function get_registered_themes() {
109
- /**
110
- * Filters the list of themes that are registered for compatibility.
111
- *
112
- * @since 4.11.4
113
- *
114
- * @param array $registered An associative array of views in the shape `[ <slug> => <class> ]`.
115
- */
116
- $registered = apply_filters( 'tribe_tickets_theme_compatibility_registered', $this->themes );
117
-
118
- return (array) $registered;
119
  }
120
  }
2
  /**
3
  * Add theme compatibility things here.
4
  *
 
 
5
  * @since 4.11.4
6
  *
7
+ * @since 5.3.1 Make use of Common Theme_Compatibility class.
8
  */
9
+ use Tribe\Utils\Body_Classes;
10
+ use Tribe\Utils\Theme_Compatibility as Compat;
11
 
12
+ class Tribe__Tickets__Theme_Compatibility extends Compat {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  /**
15
  * Add the theme to the body class.
16
  *
17
  * @since 4.11.4
18
  *
19
+ * @deprecated 5.3.1
20
+ *
21
  * @param array $classes List of body classes.
22
  *
23
  * @return array $classes List of body classes, modified if compatibility is required.
24
  */
25
  public function filter_body_class( array $classes ) {
26
+ _deprecated_function( __FUNCTION__, '5.3.1', 'Theme_Compatibility::add_body_classes()' );
27
 
28
+ if ( ! static::is_compatibility_required() ) {
29
  return $classes;
30
  }
31
 
32
+ return array_merge( $classes, static::get_compatibility_classes() );
33
  }
34
 
35
  /**
37
  *
38
  * @since 4.11.4
39
  *
40
+ * @deprecated 5.3.1
41
+ *
42
  * @return array $classes List of body classes with parent and child theme classes included.
43
  */
44
  public function get_body_classes() {
45
+ _deprecated_function( __FUNCTION__, '5.3.1', 'Tribe\Utils\Theme_Compatibility::get_compatibility_classes()' );
46
+ return static::get_compatibility_classes();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
 
49
  /**
50
+ * Add body classes.
51
  *
52
+ * @since 5.3.1
53
  *
54
+ * @return array $classes List of body classes.
55
  */
56
+ public function add_body_classes( $classes ) {
57
+ return array_merge( $classes, static::get_compatibility_classes() );
 
 
 
 
 
 
 
 
 
58
  }
59
  }
src/Tribe/Tickets.php CHANGED
@@ -654,7 +654,7 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
654
 
655
  $event_id = get_post_meta( $ticket_product, $this->get_event_key(), true );
656
 
657
- if ( ! $event_id && '' === ( $event_id = get_post_meta( $ticket_product, $this->attendee_event_key, true ) ) ) {
658
  return false;
659
  }
660
 
654
 
655
  $event_id = get_post_meta( $ticket_product, $this->get_event_key(), true );
656
 
657
+ if ( ! empty( $this->attendee_event_key ) && ! $event_id && '' === ( $event_id = get_post_meta( $ticket_product, $this->attendee_event_key, true ) ) ) {
658
  return false;
659
  }
660
 
src/template-tags/commerce.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Tickets Commerce functions.
4
+ *
5
+ * @since 5.3.1
6
+ *
7
+ * Helpers to work with and customize ticketing-related features.
8
+ */
9
+
10
+ use TEC\Tickets\Commerce\Utils\Currency;
11
+
12
+
13
+ // Don't load directly.
14
+ if ( ! defined( 'ABSPATH' ) ) {
15
+ exit( '-1' );
16
+ }
17
+
18
+ /**
19
+ * Returns the Tickets Commerce currency code.
20
+ *
21
+ * @since 5.3.1
22
+ *
23
+ * @return string String containing the Tickets Commerce currency code.
24
+ */
25
+ function tec_tickets_commerce_currency_code() {
26
+ return Currency::get_currency_code();
27
+ }
28
+
29
+ /**
30
+ * Returns the Tickets Commerce currency symbol.
31
+ *
32
+ * @since 5.3.1
33
+ *
34
+ * @return string String containing the Tickets Commerce currency symbol.
35
+ */
36
+ function tec_tickets_commerce_currency_symbol() {
37
+ return Currency::get_currency_symbol( tec_tickets_commerce_currency_code() );
38
+ }
src/template-tags/tickets.php CHANGED
@@ -1795,8 +1795,13 @@ if ( ! function_exists( 'tribe_tickets_new_views_is_enabled' ) ) {
1795
  return (bool) $env_var;
1796
  }
1797
 
 
 
 
1798
  // If ETP was installed on or after version 5.1, default to enabled.
1799
- $should_default_to_on = class_exists( 'Tribe__Tickets_Plus__Main' ) && ! tribe_installed_before( 'Tribe__Tickets_Plus__Main', '5.1' );
 
 
1800
 
1801
  // Check for settings UI option.
1802
  $enabled = (bool) tribe_get_option( 'tickets_use_new_views', $should_default_to_on );
1795
  return (bool) $env_var;
1796
  }
1797
 
1798
+ // If ET was installed on or after version 5.0.3, default to enabled.
1799
+ $should_default_to_on_et = ! tribe_installed_before( 'Tribe__Tickets__Main', '5.0.3' );
1800
+
1801
  // If ETP was installed on or after version 5.1, default to enabled.
1802
+ $should_default_to_on_etp = class_exists( 'Tribe__Tickets_Plus__Main' ) && ! tribe_installed_before( 'Tribe__Tickets_Plus__Main', '5.1' );
1803
+
1804
+ $should_default_to_on = $should_default_to_on_etp || $should_default_to_on_et;
1805
 
1806
  // Check for settings UI option.
1807
  $enabled = (bool) tribe_get_option( 'tickets_use_new_views', $should_default_to_on );
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5d8188dc5d6d443843736f3f627706f3::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3984c88c5542fb513530dd03c098a3b4::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5d8188dc5d6d443843736f3f627706f3
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit5d8188dc5d6d443843736f3f627706f3
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit5d8188dc5d6d443843736f3f627706f3', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit5d8188dc5d6d443843736f3f627706f3', '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\ComposerStaticInit5d8188dc5d6d443843736f3f627706f3::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 ComposerAutoloaderInit3984c88c5542fb513530dd03c098a3b4
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit3984c88c5542fb513530dd03c098a3b4', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit3984c88c5542fb513530dd03c098a3b4', '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\ComposerStaticInit3984c88c5542fb513530dd03c098a3b4::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 ComposerStaticInit5d8188dc5d6d443843736f3f627706f3
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
@@ -199,9 +199,9 @@ class ComposerStaticInit5d8188dc5d6d443843736f3f627706f3
199
  public static function getInitializer(ClassLoader $loader)
200
  {
201
  return \Closure::bind(function () use ($loader) {
202
- $loader->prefixLengthsPsr4 = ComposerStaticInit5d8188dc5d6d443843736f3f627706f3::$prefixLengthsPsr4;
203
- $loader->prefixDirsPsr4 = ComposerStaticInit5d8188dc5d6d443843736f3f627706f3::$prefixDirsPsr4;
204
- $loader->classMap = ComposerStaticInit5d8188dc5d6d443843736f3f627706f3::$classMap;
205
 
206
  }, null, ClassLoader::class);
207
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3984c88c5542fb513530dd03c098a3b4
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
199
  public static function getInitializer(ClassLoader $loader)
200
  {
201
  return \Closure::bind(function () use ($loader) {
202
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3984c88c5542fb513530dd03c098a3b4::$prefixLengthsPsr4;
203
+ $loader->prefixDirsPsr4 = ComposerStaticInit3984c88c5542fb513530dd03c098a3b4::$prefixDirsPsr4;
204
+ $loader->classMap = ComposerStaticInit3984c88c5542fb513530dd03c098a3b4::$classMap;
205
 
206
  }, null, ClassLoader::class);
207
  }