diff --git a/includes/Components/VectorComponentUserLinks.php b/includes/Components/VectorComponentUserLinks.php index 3a9702fbe..1cc851a56 100644 --- a/includes/Components/VectorComponentUserLinks.php +++ b/includes/Components/VectorComponentUserLinks.php @@ -320,13 +320,9 @@ class VectorComponentUserLinks implements VectorComponent { ] ); return [ - 'is-wide' => array_reduce( - [ $overflow, $notifications, $userPage, $userInterfacePreferences ], - static function ( $carry, $list ) { - return count( $list ) + $carry; - }, - 0 - ), + 'is-wide' => array_filter( + [ $overflow, $notifications, $userPage, $userInterfacePreferences ] + ) !== [], 'data-user-links-notifications' => $notificationsMenu->getTemplateData(), 'data-user-links-overflow' => $overflowMenu->getTemplateData(), 'data-user-links-preferences' => $preferencesMenu->getTemplateData(),