If on a wiki, the beta feature isn't installed, compact language links is a default feature in this wiki.
UniversalLanguageSelector.hooks.php
public static function isCompactLinksEnabled( $user ) { […] if ( $wgULSCompactLanguageLinksBetaFeature === false ) { // Compact language links is a default feature in this wiki. // Check user preference return $user->getBoolOption( 'compact-language-links' ); } […] }
And this compact-language-links preference is currently set by default to 1 in CommonSettings.
And indeed, here what happens in production:
mw1017
$ mwrepl ruwikivoyage $ $user = User::newFromName( 'Dereckson' ); $ var_dump( UniversalLanguageSelectorHooks::isCompactLinksEnabled( $user ) ); bool(true)