Skip to content

Commit

Permalink
external_display may be empty in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Dec 12, 2024
1 parent 22b9c81 commit e9a6ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/packages/publicize/src/class-publicize-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public function get_display_name( $service_name, $connection ) {
return $cmeta['external_display'];
}

$connection_display = $cmeta['external_display'];
$connection_display = $cmeta['external_display'] ?? '';

if ( empty( $connection_display ) ) {
$connection_display = $cmeta['external_name'];
Expand Down

0 comments on commit e9a6ae6

Please sign in to comment.