[wp-trac] [WordPress Trac] #56698: Define 'Word count type' as a WP_Locale property

WordPress Trac noreply at wordpress.org
Wed Feb 15 23:35:48 UTC 2023


#56698: Define 'Word count type' as a WP_Locale property
-------------------------------------------------+-------------------------
 Reporter:  pedromendonca                        |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  I18N                                 |     Version:  4.3
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing-info needs-  |     Focuses:
  testing has-unit-tests                         |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55351" 55351]:
 {{{
 #!CommitTicketReference repository="" revision="55351"
 I18N: Check that `$wp_locale` global is set before calling its methods.

 This avoids a fatal error if these functions are called in a mu-plugin
 before `$wp_locale` is set:
 * `wp_get_list_item_separator()`
 * `wp_get_word_count_type()`

 Follow-up to [52929], [52933], [55279], [55295].

 Props kraftbj.
 Fixes #56698.
 }}}

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


More information about the wp-trac mailing list