Make WordPress Core

Changeset 52933


Ignore:
Timestamp:
03/14/2022 05:59:20 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [52929].

See #39733.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r52932 r52933  
    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 }
  • trunk/src/wp-includes/l10n.php

    r52394 r52933  
    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 */
     1783function wp_get_list_item_separator() {
     1784    global $wp_locale;
     1785
     1786    return $wp_locale->get_list_item_separator();
     1787}
Note: See TracChangeset for help on using the changeset viewer.