[wp-trac] [WordPress Trac] #36790: Wrong month name declension

WordPress Trac noreply at wordpress.org
Mon Jun 6 07:51:36 UTC 2016


#36790: Wrong month name declension
------------------------------------------+------------------------
 Reporter:  pavelevap                     |       Owner:
     Type:  defect (bug)                  |      Status:  reviewing
 Priority:  normal                        |   Milestone:  4.6
Component:  I18N                          |     Version:  4.4
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------

Comment (by semil):

 Hi everyone,

 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

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36790#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list