[wp-trac] [WordPress Trac] #53359: Coding Standards fixes for WP 5.9

WordPress Trac noreply at wordpress.org
Thu Aug 5 14:48:26 UTC 2021


#53359: Coding Standards fixes for WP 5.9
---------------------------------------------+---------------------
 Reporter:  desrosj                          |       Owner:  (none)
     Type:  task (blessed)                   |      Status:  new
 Priority:  normal                           |   Milestone:  5.9
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"51557" 51557]:
 {{{
 #!CommitTicketReference repository="" revision="51557"
 Coding Standards: Silence a WPCS warning in `date_i18n()`.

 This fixes a "Calling `current_time()` with a `$type` of `timestamp` or
 `U` is strongly discouraged as it will not return a Unix (UTC) timestamp"
 warning.

 Props jrf.
 See #53359.
 }}}

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


More information about the wp-trac mailing list