|
@@ 1828-1830 (lines=3) @@
|
| 1825 |
|
// The "m" parameter is meant for months but accepts datetimes of varying specificity |
| 1826 |
|
if ( $q['m'] ) { |
| 1827 |
|
$where .= " AND YEAR({$wpdb->posts}.post_date)=" . substr($q['m'], 0, 4); |
| 1828 |
|
if ( strlen($q['m']) > 5 ) { |
| 1829 |
|
$where .= " AND MONTH({$wpdb->posts}.post_date)=" . substr($q['m'], 4, 2); |
| 1830 |
|
} |
| 1831 |
|
if ( strlen($q['m']) > 7 ) { |
| 1832 |
|
$where .= " AND DAYOFMONTH({$wpdb->posts}.post_date)=" . substr($q['m'], 6, 2); |
| 1833 |
|
} |
|
@@ 1831-1833 (lines=3) @@
|
| 1828 |
|
if ( strlen($q['m']) > 5 ) { |
| 1829 |
|
$where .= " AND MONTH({$wpdb->posts}.post_date)=" . substr($q['m'], 4, 2); |
| 1830 |
|
} |
| 1831 |
|
if ( strlen($q['m']) > 7 ) { |
| 1832 |
|
$where .= " AND DAYOFMONTH({$wpdb->posts}.post_date)=" . substr($q['m'], 6, 2); |
| 1833 |
|
} |
| 1834 |
|
if ( strlen($q['m']) > 9 ) { |
| 1835 |
|
$where .= " AND HOUR({$wpdb->posts}.post_date)=" . substr($q['m'], 8, 2); |
| 1836 |
|
} |
|
@@ 1834-1836 (lines=3) @@
|
| 1831 |
|
if ( strlen($q['m']) > 7 ) { |
| 1832 |
|
$where .= " AND DAYOFMONTH({$wpdb->posts}.post_date)=" . substr($q['m'], 6, 2); |
| 1833 |
|
} |
| 1834 |
|
if ( strlen($q['m']) > 9 ) { |
| 1835 |
|
$where .= " AND HOUR({$wpdb->posts}.post_date)=" . substr($q['m'], 8, 2); |
| 1836 |
|
} |
| 1837 |
|
if ( strlen($q['m']) > 11 ) { |
| 1838 |
|
$where .= " AND MINUTE({$wpdb->posts}.post_date)=" . substr($q['m'], 10, 2); |
| 1839 |
|
} |
|
@@ 1837-1839 (lines=3) @@
|
| 1834 |
|
if ( strlen($q['m']) > 9 ) { |
| 1835 |
|
$where .= " AND HOUR({$wpdb->posts}.post_date)=" . substr($q['m'], 8, 2); |
| 1836 |
|
} |
| 1837 |
|
if ( strlen($q['m']) > 11 ) { |
| 1838 |
|
$where .= " AND MINUTE({$wpdb->posts}.post_date)=" . substr($q['m'], 10, 2); |
| 1839 |
|
} |
| 1840 |
|
if ( strlen($q['m']) > 13 ) { |
| 1841 |
|
$where .= " AND SECOND({$wpdb->posts}.post_date)=" . substr($q['m'], 12, 2); |
| 1842 |
|
} |
|
@@ 1840-1842 (lines=3) @@
|
| 1837 |
|
if ( strlen($q['m']) > 11 ) { |
| 1838 |
|
$where .= " AND MINUTE({$wpdb->posts}.post_date)=" . substr($q['m'], 10, 2); |
| 1839 |
|
} |
| 1840 |
|
if ( strlen($q['m']) > 13 ) { |
| 1841 |
|
$where .= " AND SECOND({$wpdb->posts}.post_date)=" . substr($q['m'], 12, 2); |
| 1842 |
|
} |
| 1843 |
|
} |
| 1844 |
|
|
| 1845 |
|
// Handle the other individual date parameters |