[wp-trac] [WordPress Trac] #37411: Add more formats to wp_maybe_decline_date()
WordPress Trac
noreply at wordpress.org
Tue Jul 19 16:47:31 UTC 2016
#37411: Add more formats to wp_maybe_decline_date()
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Date/Time | Review
Severity: normal | Version: 4.4
Keywords: needs-unit-tests 4.7-early needs- | Resolution:
patch | Focuses:
-------------------------------------------------+-------------------------
Description changed by SergeyBiryukov:
Old description:
> In some themes, date format is not localized (see an
> [https://themes.trac.wordpress.org/browser/sadakalo/1.7.0/content.php?marks=13#L9
> example] in Sadakalo theme).
>
> Formats like `'F jS Y'` don't make a lot of sense for languages with
> declensions, which generally use `'j F Y'` (where F requires declension).
>
> We could improve the situation by adding more formats to
> `wp_maybe_decline_date()` introduced in #11226.
New description:
In some themes, date format is not localized (see an
[https://themes.trac.wordpress.org/browser/sadakalo/1.7.0/content.php?marks=13#L9
example] in Sadakalo theme).
Formats like `'F jS Y'` don't make a lot of sense for languages with
declensions, which generally use `'j F Y'` (where F requires genitive
case).
We could improve the situation by adding more formats to
`wp_maybe_decline_date()` introduced in #11226.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37411#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list