From 0d747500ba4a948cba764454b3cccb3b31322aec Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Mar 2022 18:01:02 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 14 -------------- wp-includes/l10n.php | 15 +++++++++++++++ wp-includes/version.php | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a93285c5fc..1a9ecfe859 100644 --- a/wp-includes/functions.php +++ b/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/wp-includes/l10n.php b/wp-includes/l10n.php index 794932a41f..d55ef8ff98 100644 --- a/wp-includes/l10n.php +++ b/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(); +} diff --git a/wp-includes/version.php b/wp-includes/version.php index 8dd64b4bb5..c7ec5e5044 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52932'; +$wp_version = '6.0-alpha-52933'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.