|
@@ 502-513 (lines=12) @@
|
| 499 |
|
$start_where = " AND p.post_date >= '{$start_date}'"; |
| 500 |
|
} |
| 501 |
|
|
| 502 |
|
if ( $this->end_date ) { |
| 503 |
|
|
| 504 |
|
if ( $this->timestamp ) { |
| 505 |
|
$format = 'Y-m-d H:i:s'; |
| 506 |
|
} else { |
| 507 |
|
$format = 'Y-m-d 23:59:59'; |
| 508 |
|
} |
| 509 |
|
|
| 510 |
|
$end_date = date( $format, $this->end_date ); |
| 511 |
|
|
| 512 |
|
$end_where = " AND p.post_date <= '{$end_date}'"; |
| 513 |
|
} |
| 514 |
|
|
| 515 |
|
$where .= "{$start_where}{$end_where}"; |
| 516 |
|
|
|
@@ 551-562 (lines=12) @@
|
| 548 |
|
$start_where = " AND $wpdb->posts.post_date >= '{$start_date}'"; |
| 549 |
|
} |
| 550 |
|
|
| 551 |
|
if ( ! is_wp_error( $this->end_date ) ) { |
| 552 |
|
|
| 553 |
|
if ( $this->timestamp ) { |
| 554 |
|
$format = 'Y-m-d H:i:s'; |
| 555 |
|
} else { |
| 556 |
|
$format = 'Y-m-d 23:59:59'; |
| 557 |
|
} |
| 558 |
|
|
| 559 |
|
$end_date = date( $format, $this->end_date ); |
| 560 |
|
|
| 561 |
|
$end_where = " AND $wpdb->posts.post_date <= '{$end_date}'"; |
| 562 |
|
} |
| 563 |
|
|
| 564 |
|
$where .= "{$start_where}{$end_where}"; |
| 565 |
|
|