Changeset 30750
- Timestamp:
- 12/06/2014 02:28:41 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/date.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/date.php
r30681 r30750 415 415 if ( $day_exists && $month_exists && $year_exists ) { 416 416 // 1. Checking day, month, year combination. 417 if ( ! checkdate( $date_query['month'], $date_query['day'], $date_query['year']) ) {417 if ( ! wp_checkdate( $date_query['month'], $date_query['day'], $date_query['year'], sprintf( '%s-%s-%s', $date_query['year'], $date_query['month'], $date_query['day'] ) ) ) { 418 418 /* translators: 1: year, 2: month, 3: day of month */ 419 419 $day_month_year_error_msg = sprintf( … … 432 432 * We use 2012 because, as a leap year, it's the most permissive. 433 433 */ 434 if ( ! checkdate( $date_query['month'], $date_query['day'], 2012) ) {434 if ( ! wp_checkdate( $date_query['month'], $date_query['day'], 2012, sprintf( '2012-%s-%s', $date_query['month'], $date_query['day'] ) ) ) { 435 435 /* translators: 1: month, 2: day of month */ 436 436 $day_month_year_error_msg = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.