diff --git a/CHANGELOG.md b/CHANGELOG.md index f1b3e56..6bf47e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.3.3] - 2024-12-19 +## [0.3.4] - 2024-12-21 * Initial release on WordPress.org diff --git a/README.md b/README.md index 2f7a674..91f11d6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Tags:** events, fediverse, activitypub, calendar **Requires at least:** 6.5 **Tested up to:** 6.7 -**Stable tag:** 0.3.3 +**Stable tag:** 0.3.4 **Requires PHP:** 7.4 **License:** AGPL-3.0-or-later **License URI:** https://www.gnu.org/licenses/agpl-3.0.html @@ -101,7 +101,7 @@ We're always interested in your feedback. Feel free to reach out to us via [E-Ma ## Changelog ## -### [0.3.3] 2024-12-19 ### +### [0.3.4] 2024-12-21 ### * Initial release on https://wordpress.org/ diff --git a/event-bridge-for-activitypub.php b/event-bridge-for-activitypub.php index f1ce6b3..72a0a89 100644 --- a/event-bridge-for-activitypub.php +++ b/event-bridge-for-activitypub.php @@ -3,7 +3,7 @@ * Plugin Name: Event Bridge for ActivityPub * Description: Integrating popular event plugins with the ActivityPub plugin. * Plugin URI: https://event-federation.eu/ - * Version: 0.3.3 + * Version: 0.3.4 * Author: André Menrath * Author URI: https://graz.social/@linos * Text Domain: event-bridge-for-activitypub diff --git a/includes/class-settings.php b/includes/class-settings.php index 3b15a2c..7b05d23 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -14,8 +14,6 @@ namespace Event_Bridge_For_ActivityPub; // Exit if accessed directly. defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore -use Activitypub\Activity\Extended_Object\Event; - /** * Class responsible for the ActivityPui Event Extension related Settings. * @@ -133,7 +131,8 @@ class Settings { * @return bool True if allowed, false otherwise. */ private static function is_allowed_event_category( $event_category ): bool { - $allowed_event_categories = Event::DEFAULT_EVENT_CATEGORIES; + require_once EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR . '/includes/event-categories.php'; + $allowed_event_categories = array_keys( EVENT_BRIDGE_FOR_ACTIVITYPUB_EVENT_CATEGORIES ); return in_array( $event_category, $allowed_event_categories, true ); } } diff --git a/readme.txt b/readme.txt index a2aa34b..1e444dd 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: andremenrath Tags: events, fediverse, activitypub, calendar Requires at least: 6.5 Tested up to: 6.7 -Stable tag: 0.3.3 +Stable tag: 0.3.4 Requires PHP: 7.4 License: AGPL-3.0-or-later License URI: https://www.gnu.org/licenses/agpl-3.0.html @@ -95,6 +95,6 @@ We're always interested in your feedback. Feel free to reach out to us via [E-Ma == Changelog == -= [0.3.3] 2024-12-19 = += [0.3.4] 2024-12-21 = * Initial release on https://wordpress.org/