[wp-trac] [WordPress Trac] #39733: List item separator should be a WP_Locale property
WordPress Trac
noreply at wordpress.org
Sun Mar 13 20:01:20 UTC 2022
#39733: List item separator should be a WP_Locale property
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.0
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch commit | Focuses:
has-screenshots |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"52929" 52929]:
{{{
#!CommitTicketReference repository="" revision="52929"
i18n: Define List item separator as a WP_Locale property.
The list item separator is a locale property, and it doesn't make much
sense to translate it separately in multiple projects. This changeset
implements the following modifications:
- Define list item separator as a new WP_Locale property
- Add `wp_get_list_item_separator()` as a wrapper for
`WP_Locale::get_list_item_separator`
- Replace `$wp_locale->get_list_item_separator()` calls with
`wp_get_list_item_separator()`
- Added a compatibility layer for bundled themes
Props SergeyBiryukov, swissspidy, rsiddharth, johnbillion, audrasjb.
Fixes #39733.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39733#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list