Skip to content

Commit

Permalink
Merge branch 'release/G22.nodosaurus.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
moraleida committed Jul 13, 2022
2 parents 1e83b33 + 94c16e4 commit 7d58d1c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
== Changelog ==

= [5.4.2.1] 2022-07-12 =

* Fix - Fixes compatibility with Elementor-based themes. [ET-1554]
* Language - 0 new strings added, 1 updated, 0 fuzzied, and 0 obsoleted.

= [5.4.2] 2022-07-05 =

* Fix - Fixed changing of Shared Capacity stock when a single ticket stock is updated. [ETP-800]
Expand Down
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.4.2
Version: 5.4.2.1
Author: The Events Calendar
Author URI: https://evnt.is/1aor
License: GPLv2 or later
Expand Down
7 changes: 6 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, aguseo, bordoni, borkweb
Tags: tickets, registration, event registration, RSVP, ticket sales, attendee management
Requires at least: 5.6
Tested up to: 6.0
Stable tag: 5.4.2
Stable tag: 5.4.2.1
Requires PHP: 7.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -188,6 +188,11 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us

== Changelog ==

= [5.4.2.1] 2022-07-12 =

* Fix - Fixes compatibility with Elementor-based themes. [ET-1554]
* Language - 0 new strings added, 1 updated, 0 fuzzied, and 0 obsoleted.

= [5.4.2] 2022-07-05 =

* Enhancement - Unify CSS class names for many admin elements. [ET-1536]
Expand Down
9 changes: 5 additions & 4 deletions src/Tribe/Editor/Compatibility/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public function include_frontend_form( $content = '' ) {
}

// If edited via Elementor, return.
if ( class_exists( '\Elementor\Plugin' ) && \Elementor\Plugin::$instance->documents->get( get_the_ID() )->is_built_with_elementor() ) {
$post = get_post();
if ( $post instanceof WP_Post
&& class_exists( '\Elementor\Plugin' )
&& \Elementor\Plugin::$instance->documents->get( $post->ID )->is_built_with_elementor()
) {
return $content;
}

Expand All @@ -44,9 +48,6 @@ public function include_frontend_form( $content = '' ) {
return $content;
}

// Fetch the post.
$post = get_post( get_the_ID() );

// Return content if post is empty.
if ( empty( $post ) ) {
return $content;
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tribe__Tickets__Main {
/**
* Current version of this plugin
*/
const VERSION = '5.4.2';
const VERSION = '5.4.2.1';

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

0 comments on commit 7d58d1c

Please sign in to comment.