Skip to content

Commit

Permalink
Merge pull request #2 from mt-support/1.1.0
Browse files Browse the repository at this point in the history
1.1.0
  • Loading branch information
andrasguseo authored Jun 20, 2022
2 parents 9257fd6 + cf5e930 commit 6b08553
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://theeventscalendar.com/extensions/remove-past-events
* GitHub Plugin URI: https://github.com/mt-support/tec-labs-remove-past-events
* Description: Additional frequencies to remove past events.
* Version: 1.0.0
* Version: 1.1.0
* Author: The Events Calendar
* Author URI: https://evnt.is/1971
* License: GPL version 3 or any later version
Expand Down
12 changes: 8 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: theeventscalendar
Donate link: https://evnt.is/29
Tags: events, calendar
Requires at least: 4.9
Tested up to: 5.8.3
Requires PHP: 7.4
Stable tag: 1.0.0
Tested up to: 6.0.0
Requires PHP: 7.1
Stable tag: 1.1.0
License: GPL version 3 or any later version
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -32,6 +32,10 @@ We're always interested in your feedback and our [Help Desk](https://support.the

== Changelog ==

= [1.1.0] 2022-06-20 =

* Fix - Added a missing variable declaration, which prevents the accidental deletion of recurring events.

= [1.0.0] 2022-01-20 =

* Initial release
* Initial release
8 changes: 5 additions & 3 deletions src/Tec/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Plugin extends \tad_DI52_ServiceProvider {
*
* @var string
*/
const VERSION = '1.0.0';
const VERSION = '1.1.0';

/**
* Stores the base slug for the plugin.
Expand Down Expand Up @@ -66,7 +66,7 @@ class Plugin extends \tad_DI52_ServiceProvider {
public $plugin_url;

/**
* Setup the Extension's properties.
* Set up the Extension's properties.
*
* This always executes even if the required plugins are not present.
*
Expand Down Expand Up @@ -137,6 +137,8 @@ protected function register_plugin_dependencies() {
public function cleanup_query( $sql ) {
global $wpdb;

$event_post_type = 'tribe_events';

$posts_with_parents_sql = "
SELECT DISTINCT post_parent
FROM {$wpdb->posts}
Expand Down Expand Up @@ -205,7 +207,7 @@ function reschedule_crons() {
}

/**
* Recheduling the crons handling the trashing and deleting.
* Rescheduling the crons handling the trashing and deleting.
*
* @param string $cron The slug of the cron.
*
Expand Down

0 comments on commit 6b08553

Please sign in to comment.