Event Tickets - Version 4.5.0.1

Version Description

Download this release

Release Info

Developer bordoni
Plugin Icon 128x128 Event Tickets
Version 4.5.0.1
Comparing to
See all releases

Code changes from version 4.5 to 4.5.0.1

common/src/resources/images/spirit-animal.png CHANGED
Binary file
event-tickets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Event Tickets
4
  Description: Event Tickets allows your guests to RSVP from any post, page, or event.
5
- Version: 4.5
6
  Author: Modern Tribe, Inc.
7
  Author URI: http://m.tri.be/28
8
  License: GPLv2 or later
2
  /*
3
  Plugin Name: Event Tickets
4
  Description: Event Tickets allows your guests to RSVP from any post, page, or event.
5
+ Version: 4.5.0.1
6
  Author: Modern Tribe, Inc.
7
  Author URI: http://m.tri.be/28
8
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,7 +3,7 @@
3
  Contributors: ModernTribe, aguseo, borkweb, barry.hughes, bordoni, brianjessee, brook-tribe, courane01, faction23, GeoffBel, geoffgraham, ggwicz, jbrinley, leahkoerper, lucatume, mastromktg, mat-lipe, MZAWeb, neillmcshea, nicosantos, patriciahillebrandt, peterchester, reid.peifer, roblagatta, ryancurban, shane.pearlman, shelbelliott, tribecari, vicskf, zbtirrell
4
  Tags: RSVP, events, tickets, event management, calendar, ticket sales, community, registration, api, dates, date, posts, workshop, conference, meeting, seminar, concert, summit, ticket integration, event ticketing
5
  Requires at least: 3.9
6
- Stable tag: 4.5
7
  Tested up to: 4.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -233,6 +233,10 @@ The plugin is produced by [Modern Tribe Inc](http://m.tri.be/18uc).
233
 
234
  == Changelog ==
235
 
 
 
 
 
236
  = [4.5] 2017-06-22 =
237
 
238
  * Feature - Show remaining ticket count, buy now or rsvp now buttons in list views of The Events Calendar [71092 & 71094]
3
  Contributors: ModernTribe, aguseo, borkweb, barry.hughes, bordoni, brianjessee, brook-tribe, courane01, faction23, GeoffBel, geoffgraham, ggwicz, jbrinley, leahkoerper, lucatume, mastromktg, mat-lipe, MZAWeb, neillmcshea, nicosantos, patriciahillebrandt, peterchester, reid.peifer, roblagatta, ryancurban, shane.pearlman, shelbelliott, tribecari, vicskf, zbtirrell
4
  Tags: RSVP, events, tickets, event management, calendar, ticket sales, community, registration, api, dates, date, posts, workshop, conference, meeting, seminar, concert, summit, ticket integration, event ticketing
5
  Requires at least: 3.9
6
+ Stable tag: 4.5.0.1
7
  Tested up to: 4.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
233
 
234
  == Changelog ==
235
 
236
+ = [4.5.0.1] 2017-06-22 =
237
+
238
+ * Fix - Prevent fatals involving Commerce Classes and Tribe__Tickets__Tickets
239
+
240
  = [4.5] 2017-06-22 =
241
 
242
  * Feature - Show remaining ticket count, buy now or rsvp now buttons in list views of The Events Calendar [71092 & 71094]
src/Tribe/Main.php CHANGED
@@ -5,7 +5,7 @@ class Tribe__Tickets__Main {
5
  /**
6
  * Current version of this plugin
7
  */
8
- const VERSION = '4.5';
9
 
10
  /**
11
  * Min required The Events Calendar version
5
  /**
6
  * Current version of this plugin
7
  */
8
+ const VERSION = '4.5.0.1';
9
 
10
  /**
11
  * Min required The Events Calendar version
src/Tribe/Tickets.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
4
  /**
5
- * Abstract class with the API definition and common functionality
6
  * for Tribe Tickets Pro. Providers for this functionality need to
7
  * extend this class. For a functional example of how this works
8
  * see Tribe WooTickets.
@@ -20,8 +20,12 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
20
  * made available via:
21
  *
22
  * ATTENDEE_OBJECT
 
 
 
 
23
  */
24
- abstract class Tribe__Tickets__Tickets {
25
 
26
  /**
27
  * Flag used to track if the registration form link has been displayed or not.
@@ -123,13 +127,16 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
123
  /**
124
  * Returns link to the report interface for sales for an event or
125
  * null if the provider doesn't have reporting capabilities.
 
126
  * @abstract
127
  *
128
  * @param $event_id
129
  *
130
  * @return mixed
131
  */
132
- abstract public function get_event_reports_link( $event_id );
 
 
133
 
134
  /**
135
  * Returns link to the report interface for sales for a single ticket or
@@ -142,7 +149,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
142
  *
143
  * @return mixed
144
  */
145
- abstract public function get_ticket_reports_link( $event_id, $ticket_id );
 
 
146
 
147
  /**
148
  * Returns a single ticket
@@ -154,7 +163,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
154
  *
155
  * @return mixed
156
  */
157
- abstract public function get_ticket( $event_id, $ticket_id );
 
 
158
 
159
  /**
160
  * Attempts to load the specified ticket type post object.
@@ -212,7 +223,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
212
  *
213
  * @return mixed
214
  */
215
- abstract public function delete_ticket( $event_id, $ticket_id );
 
 
216
 
217
  /**
218
  * Saves a ticket
@@ -225,7 +238,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
225
  *
226
  * @return mixed
227
  */
228
- abstract public function save_ticket( $event_id, $ticket, $raw_data = array() );
 
 
229
 
230
  /**
231
  * Get all the tickets for an event
@@ -236,7 +251,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
236
  *
237
  * @return array mixed
238
  */
239
- abstract protected function get_tickets( $event_id );
 
 
240
 
241
  /**
242
  * Get attendees by id and associated post type
@@ -247,7 +264,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
247
  *
248
  * @return array|mixed
249
  */
250
- abstract public function get_attendees_by_id( $post_id );
 
 
251
 
252
  /**
253
  * Get all the attendees (sold tickets) for an event
@@ -258,7 +277,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
258
  *
259
  * @return mixed
260
  */
261
- abstract protected function get_attendees_by_post_id( $post_id );
 
 
262
 
263
  /**
264
  * Get Attendees by ticket/attendee ID
@@ -267,7 +288,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
267
  *
268
  * @return array
269
  */
270
- abstract protected function get_attendees_by_attendee_id( $attendee_id );
 
 
271
 
272
  /**
273
  * Get attendees by order id
@@ -276,8 +299,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
276
  *
277
  * @return array
278
  */
279
- abstract protected function get_attendees_by_order_id( $order_id );
280
 
 
281
 
282
  /**
283
  * Get attendees from provided query
@@ -287,7 +311,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
287
  *
288
  * @return mixed
289
  */
290
- abstract protected function get_attendees( WP_Query $attendees_query, $post_id );
 
 
291
 
292
  /**
293
  * Mark an attendee as checked in
@@ -299,7 +325,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
299
  *
300
  * @return mixed
301
  */
302
- abstract public function checkin( $attendee_id );
 
 
303
 
304
  /**
305
  * Mark an attendee as not checked in
@@ -310,8 +338,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
310
  *
311
  * @return mixed
312
  */
313
- abstract public function uncheckin( $attendee_id );
314
 
 
315
 
316
  /**
317
  * Renders the advanced fields in the new/edit ticket form.
@@ -325,7 +354,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
325
  *
326
  * @return mixed
327
  */
328
- abstract public function do_metabox_advanced_options( $event_id, $ticket_id );
 
 
329
 
330
  /**
331
  * Renders the front end form for selling tickets in the event single page
@@ -336,7 +367,9 @@ if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
336
  *
337
  * @return mixed
338
  */
339
- abstract public function front_end_tickets_form( $content );
 
 
340
 
341
  /**
342
  * Returns the markup for the price field
2
 
3
  if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) {
4
  /**
5
+ * Class with the API definition and common functionality
6
  * for Tribe Tickets Pro. Providers for this functionality need to
7
  * extend this class. For a functional example of how this works
8
  * see Tribe WooTickets.
20
  * made available via:
21
  *
22
  * ATTENDEE_OBJECT
23
+ *
24
+ *
25
+ * @since 4.5.0.1 Due to a fatal between Event Ticket Plus extending commerces and this class,
26
+ * we changed this from an Abstract to a normal parent Class
27
  */
28
+ class Tribe__Tickets__Tickets {
29
 
30
  /**
31
  * Flag used to track if the registration form link has been displayed or not.
127
  /**
128
  * Returns link to the report interface for sales for an event or
129
  * null if the provider doesn't have reporting capabilities.
130
+ *
131
  * @abstract
132
  *
133
  * @param $event_id
134
  *
135
  * @return mixed
136
  */
137
+ public function get_event_reports_link( $event_id ) {
138
+
139
+ }
140
 
141
  /**
142
  * Returns link to the report interface for sales for a single ticket or
149
  *
150
  * @return mixed
151
  */
152
+ public function get_ticket_reports_link( $event_id, $ticket_id ) {
153
+
154
+ }
155
 
156
  /**
157
  * Returns a single ticket
163
  *
164
  * @return mixed
165
  */
166
+ public function get_ticket( $event_id, $ticket_id ) {
167
+
168
+ }
169
 
170
  /**
171
  * Attempts to load the specified ticket type post object.
223
  *
224
  * @return mixed
225
  */
226
+ public function delete_ticket( $event_id, $ticket_id ) {
227
+
228
+ }
229
 
230
  /**
231
  * Saves a ticket
238
  *
239
  * @return mixed
240
  */
241
+ public function save_ticket( $event_id, $ticket, $raw_data = array() ) {
242
+
243
+ }
244
 
245
  /**
246
  * Get all the tickets for an event
251
  *
252
  * @return array mixed
253
  */
254
+ protected function get_tickets( $event_id ) {
255
+
256
+ }
257
 
258
  /**
259
  * Get attendees by id and associated post type
264
  *
265
  * @return array|mixed
266
  */
267
+ public function get_attendees_by_id( $post_id ) {
268
+
269
+ }
270
 
271
  /**
272
  * Get all the attendees (sold tickets) for an event
277
  *
278
  * @return mixed
279
  */
280
+ protected function get_attendees_by_post_id( $post_id ) {
281
+
282
+ }
283
 
284
  /**
285
  * Get Attendees by ticket/attendee ID
288
  *
289
  * @return array
290
  */
291
+ protected function get_attendees_by_attendee_id( $attendee_id ) {
292
+
293
+ }
294
 
295
  /**
296
  * Get attendees by order id
299
  *
300
  * @return array
301
  */
302
+ protected function get_attendees_by_order_id( $order_id ) {
303
 
304
+ }
305
 
306
  /**
307
  * Get attendees from provided query
311
  *
312
  * @return mixed
313
  */
314
+ protected function get_attendees( $attendees_query, $post_id ) {
315
+
316
+ }
317
 
318
  /**
319
  * Mark an attendee as checked in
325
  *
326
  * @return mixed
327
  */
328
+ public function checkin( $attendee_id ) {
329
+
330
+ }
331
 
332
  /**
333
  * Mark an attendee as not checked in
338
  *
339
  * @return mixed
340
  */
341
+ public function uncheckin( $attendee_id ) {
342
 
343
+ }
344
 
345
  /**
346
  * Renders the advanced fields in the new/edit ticket form.
354
  *
355
  * @return mixed
356
  */
357
+ public function do_metabox_advanced_options( $event_id, $ticket_id ) {
358
+
359
+ }
360
 
361
  /**
362
  * Renders the front end form for selling tickets in the event single page
367
  *
368
  * @return mixed
369
  */
370
+ public function front_end_tickets_form( $content ) {
371
+
372
+ }
373
 
374
  /**
375
  * Returns the markup for the price field