I18N: Move wp_get_list_item_separator() to a more appropriate place.

Follow-up to [52929].

See #39733.
Built from https://develop.svn.wordpress.org/trunk@52933


git-svn-id: http://core.svn.wordpress.org/trunk@52522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2022-03-14 18:01:02 +00:00
parent 316aa2544f
commit 0d747500ba
3 changed files with 16 additions and 15 deletions

View File

@@ -8409,17 +8409,3 @@ function is_php_version_compatible( $required ) {
function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) {
return abs( (float) $expected - (float) $actual ) <= $precision;
}
/**
* Retrieves the list item separator based on the locale.
*
* @since 6.0.0
*
* @global WP_Locale $wp_locale WordPress date and time locale object.
*
* @return string Locale specific list item separator.
*/
function wp_get_list_item_separator() {
global $wp_locale;
return $wp_locale->get_list_item_separator();
}