Commit bb1c19f
committed
Twenty Twenty: Replace
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@57301 602fd350-edb4-49c9-b593-d223f7449a82wp_date() with date_i18n().1 parent a4500a1 commit bb1c19f
1 file changed
Lines changed: 7 additions & 4 deletions
File tree
- src/wp-content/themes/twentytwenty
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments