[wp-trac] [WordPress Trac] #42394: Customize: Order of fields in date/time control does not honor locale

WordPress Trac noreply at wordpress.org
Fri Nov 3 05:58:04 UTC 2017


#42394: Customize: Order of fields in date/time control does not honor locale
-------------------------------------------+--------------------------
 Reporter:  munyagu                        |       Owner:  westonruter
     Type:  defect (bug)                   |      Status:  reopened
 Priority:  normal                         |   Milestone:  4.9
Component:  Customize                      |     Version:  trunk
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch commit dev-feedback  |     Focuses:
-------------------------------------------+--------------------------
Changes (by westonruter):

 * keywords:  has-patch commit dev-reviewed => has-patch commit dev-feedback


Comment:

 @dlh Good catch, though I wonder how many sites would not include all
 three parts to the date.

 I think, however, that the fallback date format should actually be ISO
 date format: Y-m-d.

 See [attachment:42394.4.diff] which also ensures that each format
 character occurs once and only once.

 I also realized the `foreach` loops could be eliminated.

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


More information about the wp-trac mailing list