[wp-trac] [WordPress Trac] #38771: date_i18n() arguments are misleading in function and documentation
WordPress Trac
noreply at wordpress.org
Mon Mar 12 15:36:15 UTC 2018
#38771: date_i18n() arguments are misleading in function and documentation
-------------------------+-----------------------------
Reporter: Rarst | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Date/Time | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------------
Comment (by Rarst):
Notably `date_i18n()` will not only consume "WordPress timestamp", but
also ''output'' one if requested with `U` format, which is obviously
highly inconsistent with `date()`.
I doubt that this can be meaningfully fixed without backwards
compatibility break, so probably needs to be thoroughly documented as
well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38771#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list