I18N: Adjust the regex in `wp_maybe_decline_date()` to handle word boundaries correctly.

Props semil.
Fixes #36790.

git-svn-id: https://develop.svn.wordpress.org/trunk@37717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-06-15 17:44:45 +00:00
parent 6a5305e0b1
commit 89304a579f
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ function wp_maybe_decline_date( $date ) {
$months = $wp_locale->month;
foreach ( $months as $key => $month ) {
$months[ $key ] = '#' . $month . '#';
$months[ $key ] = '#\b' . $month . '\b#u';
}
$date = preg_replace( $months, $wp_locale->month_genitive, $date );