|
@@ 2626-2627 (lines=2) @@
|
| 2623 |
|
// The "m" parameter is meant for months but accepts datetimes of varying specificity |
| 2624 |
|
if ( $q['m'] ) { |
| 2625 |
|
$where .= " AND YEAR($wpdb->posts.post_date)=" . substr($q['m'], 0, 4); |
| 2626 |
|
if ( strlen($q['m']) > 5 ) |
| 2627 |
|
$where .= " AND MONTH($wpdb->posts.post_date)=" . substr($q['m'], 4, 2); |
| 2628 |
|
if ( strlen($q['m']) > 7 ) |
| 2629 |
|
$where .= " AND DAYOFMONTH($wpdb->posts.post_date)=" . substr($q['m'], 6, 2); |
| 2630 |
|
if ( strlen($q['m']) > 9 ) |
|
@@ 2628-2629 (lines=2) @@
|
| 2625 |
|
$where .= " AND YEAR($wpdb->posts.post_date)=" . substr($q['m'], 0, 4); |
| 2626 |
|
if ( strlen($q['m']) > 5 ) |
| 2627 |
|
$where .= " AND MONTH($wpdb->posts.post_date)=" . substr($q['m'], 4, 2); |
| 2628 |
|
if ( strlen($q['m']) > 7 ) |
| 2629 |
|
$where .= " AND DAYOFMONTH($wpdb->posts.post_date)=" . substr($q['m'], 6, 2); |
| 2630 |
|
if ( strlen($q['m']) > 9 ) |
| 2631 |
|
$where .= " AND HOUR($wpdb->posts.post_date)=" . substr($q['m'], 8, 2); |
| 2632 |
|
if ( strlen($q['m']) > 11 ) |
|
@@ 2630-2631 (lines=2) @@
|
| 2627 |
|
$where .= " AND MONTH($wpdb->posts.post_date)=" . substr($q['m'], 4, 2); |
| 2628 |
|
if ( strlen($q['m']) > 7 ) |
| 2629 |
|
$where .= " AND DAYOFMONTH($wpdb->posts.post_date)=" . substr($q['m'], 6, 2); |
| 2630 |
|
if ( strlen($q['m']) > 9 ) |
| 2631 |
|
$where .= " AND HOUR($wpdb->posts.post_date)=" . substr($q['m'], 8, 2); |
| 2632 |
|
if ( strlen($q['m']) > 11 ) |
| 2633 |
|
$where .= " AND MINUTE($wpdb->posts.post_date)=" . substr($q['m'], 10, 2); |
| 2634 |
|
if ( strlen($q['m']) > 13 ) |
|
@@ 2632-2633 (lines=2) @@
|
| 2629 |
|
$where .= " AND DAYOFMONTH($wpdb->posts.post_date)=" . substr($q['m'], 6, 2); |
| 2630 |
|
if ( strlen($q['m']) > 9 ) |
| 2631 |
|
$where .= " AND HOUR($wpdb->posts.post_date)=" . substr($q['m'], 8, 2); |
| 2632 |
|
if ( strlen($q['m']) > 11 ) |
| 2633 |
|
$where .= " AND MINUTE($wpdb->posts.post_date)=" . substr($q['m'], 10, 2); |
| 2634 |
|
if ( strlen($q['m']) > 13 ) |
| 2635 |
|
$where .= " AND SECOND($wpdb->posts.post_date)=" . substr($q['m'], 12, 2); |
| 2636 |
|
} |
|
@@ 2634-2635 (lines=2) @@
|
| 2631 |
|
$where .= " AND HOUR($wpdb->posts.post_date)=" . substr($q['m'], 8, 2); |
| 2632 |
|
if ( strlen($q['m']) > 11 ) |
| 2633 |
|
$where .= " AND MINUTE($wpdb->posts.post_date)=" . substr($q['m'], 10, 2); |
| 2634 |
|
if ( strlen($q['m']) > 13 ) |
| 2635 |
|
$where .= " AND SECOND($wpdb->posts.post_date)=" . substr($q['m'], 12, 2); |
| 2636 |
|
} |
| 2637 |
|
|
| 2638 |
|
// Handle the other individual date parameters |