diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 5d39f9b220..67a6cd6dc5 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -373,11 +373,11 @@ function wp_maybe_decline_date( $date, $format = '' ) { if ( $decline ) { foreach ( $months as $key => $month ) { - $months[ $key ] = '#\b' . preg_quote( $month, '#' ) . ' (\d{1,2})(st|nd|rd|th)?\b#u'; + $months[ $key ] = '#\b' . preg_quote( $month, '#' ) . ' (\d{1,2})(st|nd|rd|th)?([-–]\d{1,2})?(st|nd|rd|th)?\b#u'; } foreach ( $months_genitive as $key => $month ) { - $months_genitive[ $key ] = '$1 ' . $month; + $months_genitive[ $key ] = '$1$3 ' . $month; } $date = preg_replace( $months, $months_genitive, $date ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f5611ad21c..54584524f3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47097'; +$wp_version = '5.4-alpha-47098'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.