updated plugin Event Bridge for ActivityPub version 1.3.0
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
namespace Event_Bridge_For_ActivityPub;
|
||||
|
||||
// Exit if accessed directly.
|
||||
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||
\defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||
|
||||
/**
|
||||
* Class for initializing the custom ActivityPub preview(s).
|
||||
@ -31,7 +31,7 @@ class Preview {
|
||||
public static function maybe_apply_event_preview_template() {
|
||||
$event_post_types = Setup::get_instance()->get_active_event_plugins_post_types();
|
||||
|
||||
if ( in_array( \get_post_type(), $event_post_types, true ) ) {
|
||||
if ( \in_array( \get_post_type(), $event_post_types, true ) ) {
|
||||
return EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR . '/templates/event-preview.php';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user