#37034 closed defect (bug) (duplicate)
Fix filter for genitive case of months
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4 |
Component: | I18N | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
Hello there,
I'm new here so I hope I'm doing ticket rightly ;)
I would like to notice bug in function wp_maybe_decline_date for preg_replace pattern.
In our czech language we have 2 months with similar root word so it detects previous month and replace this root word.
Solutions is update pattern for preg_replace from
'#' . $month . '#'
to
'/\b' . $month . '\b/u'
Best regards,
Jan
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hello @semil, welcome to the WordPress Trac!
Thanks for your report, we're already tracking this issue in #36790. Can you please comment on #36790 with your proposed fix?