[wp-trac] [WordPress Trac] #39733: List item separator should be a WP_Locale property

WordPress Trac noreply at wordpress.org
Sun Sep 19 19:53:40 UTC 2021


#39733: List item separator should be a WP_Locale property
--------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Thanks for the patch! The `WP_Locale` part looks good at a glance.

 For the usage though, I think we'd want to avoid using the `$wp_locale`
 global in all those instances, and just wrap this in a function like
 `wp_get_list_item_separator()` that would still call
 `$wp_locale->get_list_item_separator()` internally.

 As noted above, we should also think about backward compatibility for
 bundled themes.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39733#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list