Changeset 47098 for trunk/src/wp-includes/functions.php
- Timestamp:
- 01/21/2020 11:46:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r47088 r47098 374 374 if ( $decline ) { 375 375 foreach ( $months as $key => $month ) { 376 $months[ $key ] = '#\b' . preg_quote( $month, '#' ) . ' (\d{1,2})(st|nd|rd|th)? \b#u';376 $months[ $key ] = '#\b' . preg_quote( $month, '#' ) . ' (\d{1,2})(st|nd|rd|th)?([-–]\d{1,2})?(st|nd|rd|th)?\b#u'; 377 377 } 378 378 379 379 foreach ( $months_genitive as $key => $month ) { 380 $months_genitive[ $key ] = '$1 ' . $month;380 $months_genitive[ $key ] = '$1$3 ' . $month; 381 381 } 382 382
Note: See TracChangeset
for help on using the changeset viewer.