mirror of
git://develop.git.wordpress.org/
synced 2025-03-19 11:29:48 +01:00
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
This commit is contained in:
parent
f6b39a9d66
commit
abfaf6df00
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user