|
@@ 33-35 (lines=3) @@
|
| 30 |
|
$args['date_query'] = array(); |
| 31 |
|
|
| 32 |
|
// resources created after specified date |
| 33 |
|
if ( ! empty( $assoc_args['created_at_min'] ) ) { |
| 34 |
|
$args['date_query'][] = array( 'column' => 'post_date_gmt', 'after' => $this->parse_datetime( $assoc_args['created_at_min'] ), 'inclusive' => true ); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
// resources created before specified date |
| 38 |
|
if ( ! empty( $assoc_args['created_at_max'] ) ) { |
|
@@ 38-40 (lines=3) @@
|
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
// resources created before specified date |
| 38 |
|
if ( ! empty( $assoc_args['created_at_max'] ) ) { |
| 39 |
|
$args['date_query'][] = array( 'column' => 'post_date_gmt', 'before' => $this->parse_datetime( $assoc_args['created_at_max'] ), 'inclusive' => true ); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
// resources updated after specified date |
| 43 |
|
if ( ! empty( $assoc_args['updated_at_min'] ) ) { |
|
@@ 43-45 (lines=3) @@
|
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
// resources updated after specified date |
| 43 |
|
if ( ! empty( $assoc_args['updated_at_min'] ) ) { |
| 44 |
|
$args['date_query'][] = array( 'column' => 'post_modified_gmt', 'after' => $this->parse_datetime( $assoc_args['updated_at_min'] ), 'inclusive' => true ); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
// resources updated before specified date |
| 48 |
|
if ( ! empty( $assoc_args['updated_at_max'] ) ) { |
|
@@ 48-50 (lines=3) @@
|
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
// resources updated before specified date |
| 48 |
|
if ( ! empty( $assoc_args['updated_at_max'] ) ) { |
| 49 |
|
$args['date_query'][] = array( 'column' => 'post_modified_gmt', 'before' => $this->parse_datetime( $assoc_args['updated_at_max'] ), 'inclusive' => true ); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
// Search. |
|
@@ 146-148 (lines=3) @@
|
| 143 |
|
$args['date_query'] = array(); |
| 144 |
|
|
| 145 |
|
// resources created after specified date |
| 146 |
|
if ( ! empty( $assoc_args['created_at_min'] ) ) { |
| 147 |
|
$args['date_query'][] = array( 'after' => $this->parse_datetime( $assoc_args['created_at_min'] ), 'inclusive' => true ); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
// resources created before specified date |
| 151 |
|
if ( ! empty( $assoc_args['created_at_max'] ) ) { |