Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -34,7 +34,7 @@ function wu_string_to_bool($string) {
|
||||
*/
|
||||
function wu_slug_to_name($slug) {
|
||||
|
||||
$slug = str_replace(array('-', '_'), ' ', $slug);
|
||||
$slug = str_replace(['-', '_'], ' ', $slug);
|
||||
|
||||
return ucwords($slug);
|
||||
}
|
||||
|
Reference in New Issue
Block a user