[wp-trac] [WordPress Trac] #37910: Remove confusing legacy logic in date_i18n()
WordPress Trac
noreply at wordpress.org
Mon Oct 17 08:09:13 UTC 2016
#37910: Remove confusing legacy logic in date_i18n()
---------------------------------------------+-------------------------
Reporter: jdgrimes | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: Date/Time | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-------------------------
Changes (by swissspidy):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"38804"]:
{{{
#!CommitTicketReference repository="" revision="38804"
Date/Time: Remove some legacy logic in `date_i18n()`.
Since there's no difference between using `date()` and `gmdate()` in
WordPress, we can simply use the former in `date_i18n()` to reduce its
complexity.
Adds tests.
Props jdgrimes for initial patch.
Fixes #37910.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37910#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list