Removed wbr() (#1387)

This commit is contained in:
Roman Kelesidis 2024-02-08 14:30:22 +07:00 committed by GitHub
commit 80fe5a5e60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 22 additions and 28 deletions

View file

@ -790,11 +790,6 @@ function str_short($text, $max_length, $space = ' ')
return $text ?? '';
}
function wbr($text, $max_word_length = HTML_WBR_LENGTH)
{
return preg_replace("/([\w\->;:.,~!?(){}@#$%^*\/\\\\]{" . $max_word_length . "})/ui", '$1<wbr>', $text);
}
function generate_user_info($row, bool $have_auth = IS_ADMIN): array
{
global $userdata, $lang, $images, $bb_cfg;