diff --git a/plugin.php b/plugin.php index 2bc5a29..ab84a30 100644 --- a/plugin.php +++ b/plugin.php @@ -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 diff --git a/readme.txt b/readme.txt index b597a69..22eb9bc 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 \ No newline at end of file +* Initial release diff --git a/src/Tec/Plugin.php b/src/Tec/Plugin.php index f51c42b..5276e38 100644 --- a/src/Tec/Plugin.php +++ b/src/Tec/Plugin.php @@ -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. @@ -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. * @@ -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} @@ -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. *