Skip to content

Commit 3c8dad3

Browse files
gzioloclaude
andcommitted
Connectors: Remove method_exists check for getDescription.
getDescription() is now part of the provider metadata API contract, so the defensive method_exists() guard is no longer needed. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent db1140f commit 3c8dad3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/connectors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function _wp_connectors_get_connector_settings(): array {
185185
}
186186

187187
$name = $provider_metadata->getName();
188-
$description = method_exists( $provider_metadata, 'getDescription' ) ? $provider_metadata->getDescription() : null;
188+
$description = $provider_metadata->getDescription();
189189

190190
if ( isset( $connectors[ $connector_id ] ) ) {
191191
// Override fields with non-empty registry values.

0 commit comments

Comments
 (0)