Skip to content

Commit

Permalink
Prepare version 5.2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 17, 2022
1 parent 9c62b45 commit a71d875
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion event-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Event Tickets
Plugin URI: https://evnt.is/1acb
Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
Version: 5.2.4
Version: 5.2.4.1
Author: The Events Calendar
Author URI: https://evnt.is/1aor
License: GPLv2 or later
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: theeventscalendar, brianjessee, camwynsp, paulkim, aguseo, bordoni
Tags: tickets, registration, The Events Calendar, RSVP, ticket sales, attendee management
Requires at least: 5.6
Tested up to: 5.9.0
Stable tag: 5.2.4
Stable tag: 5.2.4.1
Requires PHP: 7.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -179,6 +179,10 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us

== Changelog ==

= [5.2.4.1] 2022-02-17 =

* Fix - Shortcode

= [5.2.4] 2022-02-15 =

* Tweak - Compatibility with the Common Abstract for editor blocks registration.
Expand Down
34 changes: 8 additions & 26 deletions src/Tribe/Editor/Blocks/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,7 @@ public function render( $attributes = [] ) {
* @return void
*/
public function assets() {
global $wp_version;
$plugin = Tribe__Tickets__Main::instance();
$block_object = $this;

tribe_asset(
$plugin,
'wp-util-not-in-footer',
includes_url( '/js/wp-util.js' ),
[ 'jquery', 'underscore' ],
null,
[
'type' => 'js',
]
);

$tickets_block_dependencies = [
'jquery',
'wp-util-not-in-footer',
'tribe-common',
];

if ( version_compare( $wp_version, '5.0', '>=' ) ) {
$tickets_block_dependencies[] = 'wp-i18n';
}

// Check whether we use v1 or v2. We need to update this when we deprecate tickets v1.
$tickets_js = tribe_tickets_new_views_is_enabled() ? 'v2/tickets-block.js' : 'tickets-block.js';
Expand All @@ -80,7 +57,12 @@ public function assets() {
$plugin,
'tribe-tickets-block',
$tickets_js,
$tickets_block_dependencies,
[
'jquery',
'wp-util',
'wp-i18n',
'tribe-common',
],
null,
[
'type' => 'js',
Expand All @@ -96,13 +78,13 @@ public function assets() {
],
[
'name' => 'TribeCartEndpoint',
'data' => static function() {
'data' => static function () {
return [ 'url' => tribe_tickets_rest_url( '/cart/' ) ];
}
],
[
'name' => 'TribeMessages',
'data' => [ $block_object, 'set_messages' ],
'data' => [ $this, 'set_messages' ],
],
[
'name' => 'TribeTicketsURLs',
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Tribe__Tickets__Main {
/**
* Current version of this plugin
*/
const VERSION = '5.2.4';
const VERSION = '5.2.4.1';

/**
* Used to store the version history.
Expand Down

0 comments on commit a71d875

Please sign in to comment.