WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#37034 closed defect (bug) (duplicate)

Fix filter for genitive case of months

Reported by: semil Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: I18N Keywords:
Focuses: Cc:

Description (last modified by swissspidy)

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)

Snímek obrazovky 2016-06-05 v 22.44.18.png (158.3 KB) - added by semil 3 years ago.

Download all attachments as: .zip

Change History (5)

#1 @swissspidy
3 years ago

  • Component changed from General to Date/Time
  • Description modified (diff)

#2 @swissspidy
3 years ago

  • Component changed from Date/Time to I18N

#3 follow-up: @ocean90
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from 4.5.2 to 4.4

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?

#4 in reply to: ↑ 3 @semil
3 years ago

Yes, I can. Close please this ticket.

Replying to ocean90:

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?

Note: See TracTickets for help on using tickets.