[wp-trac] [WordPress Trac] #56468: sanitize_option() does not handle deprecated timezones correctly

WordPress Trac noreply at wordpress.org
Mon Sep 19 23:22:54 UTC 2022


#56468: sanitize_option() does not handle deprecated timezones correctly
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.1
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"54227" 54227]:
 {{{
 #!CommitTicketReference repository="" revision="54227"
 I18N: Update list of continents and cities for the timezone selection.

 Based on a two-way comparison between the available timezone city names in
 PHP 5.6.20 and PHP 8.2.0.

 Lists of available timezone names have been retrieved using the PHP
 `timezone_identifiers_list()` function.

 See: [https://3v4l.org/ro1vY/rfc#vgit.master timezone_identifiers_list()
 output and comparison].

 Note: Both spellings of `Kiev`/`Kyiv` need to be in the list to allow it
 to work PHP cross-version.
 * The “old” version — `Kiev` — will be used as the basis to find the
 localized name for the timezone dropdown lists on PHP 5.6 to 8.1.
 * The corrected spelling — `Kyiv` — will be used to find the localized
 name on PHP 8.2 and up.

 Follow-up to [50555], [54207], [54217].

 Props jrf, costdev.
 See #56468.
 }}}

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


More information about the wp-trac mailing list