phpcs
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 51s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m18s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m15s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m9s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m13s

This commit is contained in:
André Menrath 2024-12-16 01:15:01 +01:00
parent e12a0734a5
commit c2856a12bd

View file

@ -245,6 +245,7 @@ class Setup {
Event_Sources::init(); Event_Sources::init();
} }
add_filter( 'activitypub_transformer', array( $this, 'register_activitypub_event_transformer' ), 10, 3 ); add_filter( 'activitypub_transformer', array( $this, 'register_activitypub_event_transformer' ), 10, 3 );
self::get_default_integration_class_name_used_for_event_sources_feature();
} }
/** /**
@ -437,7 +438,7 @@ class Setup {
$event_plugin_integrations = $setup->get_active_event_plugins(); $event_plugin_integrations = $setup->get_active_event_plugins();
foreach ( $event_plugin_integrations as $event_plugin_integration ) { foreach ( $event_plugin_integrations as $event_plugin_integration ) {
if ( $event_plugin_integration instanceof Feature_Event_Sources ) { if ( $event_plugin_integration instanceof Feature_Event_Sources ) {
return $event_plugin_integration::class; get_class( $event_plugin_integration );
} }
} }
return ''; return '';