Fix fatal error in admin-UI when ActivityPub plugin is not installed
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 48s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.4 (push) Successful in 1m7s
/ upload-release (push) Successful in 4s
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 48s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.4 (push) Successful in 1m7s
/ upload-release (push) Successful in 4s
This commit is contained in:
parent
c5578776d9
commit
e8ec7a4ce6
5 changed files with 8 additions and 9 deletions
|
@ -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/),
|
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).
|
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
|
* Initial release on WordPress.org
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
**Tags:** events, fediverse, activitypub, calendar
|
**Tags:** events, fediverse, activitypub, calendar
|
||||||
**Requires at least:** 6.5
|
**Requires at least:** 6.5
|
||||||
**Tested up to:** 6.7
|
**Tested up to:** 6.7
|
||||||
**Stable tag:** 0.3.3
|
**Stable tag:** 0.3.4
|
||||||
**Requires PHP:** 7.4
|
**Requires PHP:** 7.4
|
||||||
**License:** AGPL-3.0-or-later
|
**License:** AGPL-3.0-or-later
|
||||||
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
**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 ##
|
## Changelog ##
|
||||||
|
|
||||||
### [0.3.3] 2024-12-19 ###
|
### [0.3.4] 2024-12-21 ###
|
||||||
|
|
||||||
* Initial release on https://wordpress.org/
|
* Initial release on https://wordpress.org/
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: Event Bridge for ActivityPub
|
* Plugin Name: Event Bridge for ActivityPub
|
||||||
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
||||||
* Plugin URI: https://event-federation.eu/
|
* Plugin URI: https://event-federation.eu/
|
||||||
* Version: 0.3.3
|
* Version: 0.3.4
|
||||||
* Author: André Menrath
|
* Author: André Menrath
|
||||||
* Author URI: https://graz.social/@linos
|
* Author URI: https://graz.social/@linos
|
||||||
* Text Domain: event-bridge-for-activitypub
|
* Text Domain: event-bridge-for-activitypub
|
||||||
|
|
|
@ -14,8 +14,6 @@ namespace Event_Bridge_For_ActivityPub;
|
||||||
// Exit if accessed directly.
|
// Exit if accessed directly.
|
||||||
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
use Activitypub\Activity\Extended_Object\Event;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class responsible for the ActivityPui Event Extension related Settings.
|
* Class responsible for the ActivityPui Event Extension related Settings.
|
||||||
*
|
*
|
||||||
|
@ -133,7 +131,8 @@ class Settings {
|
||||||
* @return bool True if allowed, false otherwise.
|
* @return bool True if allowed, false otherwise.
|
||||||
*/
|
*/
|
||||||
private static function is_allowed_event_category( $event_category ): bool {
|
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 );
|
return in_array( $event_category, $allowed_event_categories, true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ Contributors: andremenrath
|
||||||
Tags: events, fediverse, activitypub, calendar
|
Tags: events, fediverse, activitypub, calendar
|
||||||
Requires at least: 6.5
|
Requires at least: 6.5
|
||||||
Tested up to: 6.7
|
Tested up to: 6.7
|
||||||
Stable tag: 0.3.3
|
Stable tag: 0.3.4
|
||||||
Requires PHP: 7.4
|
Requires PHP: 7.4
|
||||||
License: AGPL-3.0-or-later
|
License: AGPL-3.0-or-later
|
||||||
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
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 ==
|
== Changelog ==
|
||||||
|
|
||||||
= [0.3.3] 2024-12-19 =
|
= [0.3.4] 2024-12-21 =
|
||||||
|
|
||||||
* Initial release on https://wordpress.org/
|
* Initial release on https://wordpress.org/
|
||||||
|
|
Loading…
Reference in a new issue