diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 497d264a89..f0e91851cb 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -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 );