Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/wp-includes/connectors.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@
foreach ( $registry->getRegisteredProviderIds() as $connector_id ) {
$provider_class_name = $registry->getProviderClassName( $connector_id );
$provider_metadata = $provider_class_name::metadata();
$authentication_method = null;

$auth_method = $provider_metadata->getAuthenticationMethod();
if ( method_exists( $provider_metadata, 'getAuthenticationMethod' ) ) {
$authentication_method = $provider_metadata->getAuthenticationMethod();

Check failure on line 166 in src/wp-includes/connectors.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 168 in src/wp-includes/connectors.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Whitespace found at end of line
$is_api_key = null !== $auth_method && $auth_method->isApiKey();

if ( $is_api_key ) {
Expand Down
Loading