[wp-trac] [WordPress Trac] #48589: Twenty Twenty: Make use of wp_date instead of date_i18n
WordPress Trac
noreply at wordpress.org
Wed Jan 17 08:59:58 UTC 2024
#48589: Twenty Twenty: Make use of wp_date instead of date_i18n
------------------------------+-----------------------
Reporter: sachyya sachet | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"57301" 57301]:
{{{
#!CommitTicketReference repository="" revision="57301"
Twenty Twenty: Replace `wp_date()` with `date_i18n()`.
Since WordPress 5.3 it is recommended to use `wp_date()` instead of
`date_i18n()`. This changeset replaces the function in Twenty Twenty, with
a fallback to `date_i18n()` for old versions of WordPress.
For more info, see https://make.wordpress.org/core/2019/09/23/date-time-
improvements-wp-5-3/.
Props sachyya-sachet, joyously, sabernhardt, poena.
Fixes #48589.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48589#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list