| @@ 490-500 (lines=11) @@ | ||
| 487 | $start_where = ''; |
|
| 488 | $end_where = ''; |
|
| 489 | ||
| 490 | if ( $this->start_date ) { |
|
| 491 | ||
| 492 | if ( $this->timestamp ) { |
|
| 493 | $format = 'Y-m-d H:i:s'; |
|
| 494 | } else { |
|
| 495 | $format = 'Y-m-d 00:00:00'; |
|
| 496 | } |
|
| 497 | ||
| 498 | $start_date = date( $format, $this->start_date ); |
|
| 499 | $start_where = " AND p.post_date >= '{$start_date}'"; |
|
| 500 | } |
|
| 501 | ||
| 502 | if ( $this->end_date ) { |
|
| 503 | ||
| @@ 539-549 (lines=11) @@ | ||
| 536 | $start_where = ''; |
|
| 537 | $end_where = ''; |
|
| 538 | ||
| 539 | if ( ! is_wp_error( $this->start_date ) ) { |
|
| 540 | ||
| 541 | if ( $this->timestamp ) { |
|
| 542 | $format = 'Y-m-d H:i:s'; |
|
| 543 | } else { |
|
| 544 | $format = 'Y-m-d 00:00:00'; |
|
| 545 | } |
|
| 546 | ||
| 547 | $start_date = date( $format, $this->start_date ); |
|
| 548 | $start_where = " AND $wpdb->posts.post_date >= '{$start_date}'"; |
|
| 549 | } |
|
| 550 | ||
| 551 | if ( ! is_wp_error( $this->end_date ) ) { |
|
| 552 | ||