Merge "Use an empty array instead of the uls-p-lang-dummy list item (PHP)"
This commit is contained in:
@@ -434,12 +434,10 @@ class UniversalLanguageSelectorHooks {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A dummy link, just to make sure that the section appears
|
// Set to an empty array, just to make sure that the section appears
|
||||||
$template->data['language_urls'][] = [
|
if ( $template->get( 'language_urls' ) === false ) {
|
||||||
'href' => '#',
|
$template->set( 'language_urls', [] );
|
||||||
'text' => '',
|
}
|
||||||
'class' => 'uls-p-lang-dummy',
|
|
||||||
];
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user