[wp-trac] [WordPress Trac] #46596: WP_Customize_Date_Time_Control class - date format ignores day of the month suffix (S)

WordPress Trac noreply at wordpress.org
Thu Mar 21 22:57:07 UTC 2019


#46596: WP_Customize_Date_Time_Control class - date format ignores day of the month
suffix (S)
--------------------------+-----------------------------
 Reporter:  F.Ilona       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  5.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When adding a date time control to the customizer using the
 WP_Customize_Date_Time_Control class with the add_control() method, the
 character for the day of the month suffix (S) is not replaced/stripped
 when formatting the date and gets displayed in the customizer.

 See attached image.

 Like other date formatting characters, the suffix should either be
 replaced with the get_option( 'date_format' ) value or be removed
 completely.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46596>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list