[wp-trac] [WordPress Trac] #39222: Add JavaScript date helpers

WordPress Trac noreply at wordpress.org
Tue May 2 17:57:32 UTC 2017


#39222: Add JavaScript date helpers
---------------------------------------------------+-----------------------
 Reporter:  rmccue                                 |       Owner:  rmccue
     Type:  feature request                        |      Status:  assigned
 Priority:  normal                                 |   Milestone:  4.8
Component:  Date/Time                              |     Version:  4.7
 Severity:  normal                                 |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-docs  |     Focuses:  rest-api
---------------------------------------------------+-----------------------

Comment (by aduth):

 A small naming point: shouldn't the function names be camel-cased, i.e.
 `wp.date.dateI18n` instead of `wp.date.date_i18n`? Or if too awkward,
 maybe a different name?

 I see some value in aligning APIs between PHP and JavaScript, but not to
 the point of breaking language-specific conventions.

 https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/javascript/#naming-conventions

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


More information about the wp-trac mailing list