Event Tickets - Version 4.10.0.1

Version Description

Download this release

Release Info

Developer brianjessee
Plugin Icon 128x128 Event Tickets
Version 4.10.0.1
Comparing to
See all releases

Code changes from version 4.10 to 4.10.0.1

common/readme.txt CHANGED
@@ -2,6 +2,10 @@
2
 
3
  == Changelog ==
4
 
 
 
 
 
5
  = [4.9] 2019-02-05 =
6
 
7
  * Feature - Add system to check plugin versions to inform you to update and prevent site breaking errors [116841]
2
 
3
  == Changelog ==
4
 
5
+ = [4.9.0.1] 2019-02-07 =
6
+
7
+ * Fix - Modify extension dependency checking with new system to determine if it can load [122368]
8
+
9
  = [4.9] 2019-02-05 =
10
 
11
  * Feature - Add system to check plugin versions to inform you to update and prevent site breaking errors [116841]
common/src/Tribe/Extension.php CHANGED
@@ -160,16 +160,25 @@ abstract class Tribe__Extension {
160
  * Checks if the extension has permission to run, if so runs init() in child class
161
  */
162
  final public function register() {
163
- $is_plugin_authorized = tribe_register_plugin(
164
  $this->get_plugin_file(),
165
  $this->get( 'class' ),
166
  $this->get_version(),
167
  $this->get( 'requires', array() )
168
  );
169
 
 
 
 
 
 
170
  if ( $is_plugin_authorized ) {
171
  $this->init();
 
 
 
172
  }
 
173
  }
174
 
175
  /**
160
  * Checks if the extension has permission to run, if so runs init() in child class
161
  */
162
  final public function register() {
163
+ tribe_register_plugin(
164
  $this->get_plugin_file(),
165
  $this->get( 'class' ),
166
  $this->get_version(),
167
  $this->get( 'requires', array() )
168
  );
169
 
170
+ $dependency = Tribe__Dependency::instance();
171
+
172
+ // check requisite plugins are active for this extension
173
+ $is_plugin_authorized = $dependency->has_requisite_plugins( $this->get( 'requires', array() ) );
174
+
175
  if ( $is_plugin_authorized ) {
176
  $this->init();
177
+
178
+ //add extension as active to dependency checker
179
+ $dependency->add_active_plugin( $this->get( 'class' ), $this->get_version(), $this->get_plugin_file() );
180
  }
181
+
182
  }
183
 
184
  /**
common/src/Tribe/Main.php CHANGED
@@ -17,7 +17,7 @@ class Tribe__Main {
17
  const OPTIONNAME = 'tribe_events_calendar_options';
18
  const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
19
 
20
- const VERSION = '4.9';
21
 
22
  const FEED_URL = 'https://theeventscalendar.com/feed/';
23
 
17
  const OPTIONNAME = 'tribe_events_calendar_options';
18
  const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
19
 
20
+ const VERSION = '4.9.0.1';
21
 
22
  const FEED_URL = 'https://theeventscalendar.com/feed/';
23
 
common/tribe-common.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Description: An event settings framework for managing shared options
4
- Version: 4.9
5
  Author: Modern Tribe, Inc.
6
  Author URI: http://m.tri.be/1x
7
  Text Domain: tribe-common
1
  <?php
2
  /*
3
  Description: An event settings framework for managing shared options
4
+ Version: 4.9.0.1
5
  Author: Modern Tribe, Inc.
6
  Author URI: http://m.tri.be/1x
7
  Text Domain: tribe-common
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: 4.10
7
  * Author: Modern Tribe, Inc.
8
  * Author URI: http://m.tri.be/28
9
  * Text Domain: event-tickets
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: 4.10.0.1
7
  * Author: Modern Tribe, Inc.
8
  * Author URI: http://m.tri.be/28
9
  * Text Domain: event-tickets
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: ModernTribe, brianjessee, camwynsp, sc0ttkclark
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: 4.7
6
  Tested up to: 5.0.3
7
- Stable tag: 4.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -122,6 +122,10 @@ Currently, the following add-ons are available for Event Tickets:
122
 
123
  == Changelog ==
124
 
 
 
 
 
125
  = [4.10] 2019-02-05 =
126
 
127
  * Feature - Add check and enforce PHP 5.6 as the minimum version [116283]
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: 4.7
6
  Tested up to: 5.0.3
7
+ Stable tag: 4.10.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
122
 
123
  == Changelog ==
124
 
125
+ = [4.10.0.1] 2019-02-07 =
126
+
127
+ * Fix - Modify extension dependency checking with new system to determine if it can load [122368]
128
+
129
  = [4.10] 2019-02-05 =
130
 
131
  * Feature - Add check and enforce PHP 5.6 as the minimum version [116283]
src/Tribe/Main.php CHANGED
@@ -4,7 +4,7 @@ class Tribe__Tickets__Main {
4
  /**
5
  * Current version of this plugin
6
  */
7
- const VERSION = '4.10';
8
 
9
  /**
10
  * Min required The Events Calendar version
@@ -196,7 +196,7 @@ class Tribe__Tickets__Main {
196
  ) {
197
  add_action( 'admin_notices', array( $this, 'tec_compatibility_notice' ) );
198
  add_action( 'network_admin_notices', array( $this, 'tec_compatibility_notice' ) );
199
- add_action( 'tribe_plugins_loaded', array( $this, 'remove_pdf_tickets_ext' ), 0 );
200
 
201
  return;
202
  }
@@ -337,18 +337,15 @@ class Tribe__Tickets__Main {
337
  }
338
 
339
  /**
340
- * Prevents PDF Tickets Ext from Running if TEC is on an Older Version
341
  *
342
- * @since 4.10
343
  *
344
  */
345
- public function remove_pdf_tickets_ext() {
346
 
347
- if ( ! class_exists( 'Tribe__Extension__PDF_Tickets' ) ) {
348
- return;
349
- }
350
 
351
- remove_action( 'tribe_plugins_loaded', array( Tribe__Extension__PDF_Tickets::instance(), 'register' ) );
352
  }
353
 
354
  /**
4
  /**
5
  * Current version of this plugin
6
  */
7
+ const VERSION = '4.10.0.1';
8
 
9
  /**
10
  * Min required The Events Calendar version
196
  ) {
197
  add_action( 'admin_notices', array( $this, 'tec_compatibility_notice' ) );
198
  add_action( 'network_admin_notices', array( $this, 'tec_compatibility_notice' ) );
199
+ add_action( 'tribe_plugins_loaded', array( $this, 'remove_exts' ), 0 );
200
 
201
  return;
202
  }
337
  }
338
 
339
  /**
340
+ * Prevents Extensions from running if TEC is on an Older Version
341
  *
342
+ * @since 4.10.0.1
343
  *
344
  */
345
+ public function remove_exts() {
346
 
347
+ remove_all_actions( 'tribe_plugins_loaded', 10 );
 
 
348
 
 
349
  }
350
 
351
  /**