mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Coding Standards: Replace alias join() in WP_Font_Utils.
Replaces the alias `join()` with its canonical `implode()`. Using the canonical function name for PHP functions is strongly recommended, as aliases may be deprecated or removed without (much) warning. Follow-up to [57539], [49193]. Props davidbinda. Fixes #60473. git-svn-id: https://develop.svn.wordpress.org/trunk@57567 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -132,7 +132,7 @@ class WP_Font_Utils {
|
||||
$slug_elements
|
||||
);
|
||||
|
||||
return sanitize_text_field( join( ';', $slug_elements ) );
|
||||
return sanitize_text_field( implode( ';', $slug_elements ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user