@@ 312-314 (lines=3) @@ | ||
309 | * validation routine continue to be sure that all invalid |
|
310 | * values generate errors too. |
|
311 | */ |
|
312 | if ( array_key_exists( 'before', $date_query ) && is_array( $date_query['before'] ) ){ |
|
313 | $valid = $this->validate_date_values( $date_query['before'] ); |
|
314 | } |
|
315 | ||
316 | if ( array_key_exists( 'after', $date_query ) && is_array( $date_query['after'] ) ){ |
|
317 | $valid = $this->validate_date_values( $date_query['after'] ); |
|
@@ 316-318 (lines=3) @@ | ||
313 | $valid = $this->validate_date_values( $date_query['before'] ); |
|
314 | } |
|
315 | ||
316 | if ( array_key_exists( 'after', $date_query ) && is_array( $date_query['after'] ) ){ |
|
317 | $valid = $this->validate_date_values( $date_query['after'] ); |
|
318 | } |
|
319 | ||
320 | // Array containing all min-max checks. |
|
321 | $min_max_checks = array(); |