Skip to content

Commit abfaf6d

Browse files
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
1 parent f6b39a9 commit abfaf6d

2 files changed

Lines changed: 15 additions & 14 deletions

File tree

src/wp-includes/functions.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8409,17 +8409,3 @@ function is_php_version_compatible( $required ) {
84098409
function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) {
84108410
return abs( (float) $expected - (float) $actual ) <= $precision;
84118411
}
8412-
8413-
/**
8414-
* Retrieves the list item separator based on the locale.
8415-
*
8416-
* @since 6.0.0
8417-
*
8418-
* @global WP_Locale $wp_locale WordPress date and time locale object.
8419-
*
8420-
* @return string Locale specific list item separator.
8421-
*/
8422-
function wp_get_list_item_separator() {
8423-
global $wp_locale;
8424-
return $wp_locale->get_list_item_separator();
8425-
}

src/wp-includes/l10n.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,3 +1770,18 @@ function translate_settings_using_i18n_schema( $i18n_schema, $settings, $textdom
17701770
}
17711771
return $settings;
17721772
}
1773+
1774+
/**
1775+
* Retrieves the list item separator based on the locale.
1776+
*
1777+
* @since 6.0.0
1778+
*
1779+
* @global WP_Locale $wp_locale WordPress date and time locale object.
1780+
*
1781+
* @return string Locale-specific list item separator.
1782+
*/
1783+
function wp_get_list_item_separator() {
1784+
global $wp_locale;
1785+
1786+
return $wp_locale->get_list_item_separator();
1787+
}

0 commit comments

Comments
 (0)