From abfaf6df0020ef0df4cded12a1ea27285d2275a9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Mar 2022 17:59:20 +0000 Subject: [PATCH] I18N: Move `wp_get_list_item_separator()` to a more appropriate place. Follow-up to [52929]. See #39733. git-svn-id: https://develop.svn.wordpress.org/trunk@52933 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 14 -------------- src/wp-includes/l10n.php | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index a93285c5fc..1a9ecfe859 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -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(); -} diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php index 794932a41f..d55ef8ff98 100644 --- a/src/wp-includes/l10n.php +++ b/src/wp-includes/l10n.php @@ -1770,3 +1770,18 @@ function translate_settings_using_i18n_schema( $i18n_schema, $settings, $textdom } return $settings; } + +/** + * 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(); +}