json-endpoints/class.wpcom-json-api-list-posts-endpoint.php 1 location
|
@@ 282-284 (lines=3) @@
|
| 279 |
|
* use it there. |
| 280 |
|
*/ |
| 281 |
|
$column_whitelist = array( 'post_modified_gmt' ); |
| 282 |
|
if ( isset( $args['column'] ) && in_array( $args['column'], $column_whitelist ) ) { |
| 283 |
|
$query['column'] = $args['column']; |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
$wp_query = new WP_Query( $query ); |
| 287 |
|
if ( $this->date_range ) { |
json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php 1 location
|
@@ 317-319 (lines=3) @@
|
| 314 |
|
* use it there. |
| 315 |
|
*/ |
| 316 |
|
$column_whitelist = array( 'post_modified_gmt' ); |
| 317 |
|
if ( isset( $args['column'] ) && in_array( $args['column'], $column_whitelist ) ) { |
| 318 |
|
$query['column'] = $args['column']; |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
$this->performed_query = $query; |
| 322 |
|
add_filter( 'posts_orderby', array( $this, 'handle_orderby_for_page_handle' ) ); |
json-endpoints/class.wpcom-json-api-list-posts-v1-2-endpoint.php 1 location
|
@@ 310-312 (lines=3) @@
|
| 307 |
|
* use it there. |
| 308 |
|
*/ |
| 309 |
|
$column_whitelist = array( 'post_modified_gmt' ); |
| 310 |
|
if ( isset( $args['column'] ) && in_array( $args['column'], $column_whitelist ) ) { |
| 311 |
|
$query['column'] = $args['column']; |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
$this->performed_query = $query; |
| 315 |
|
add_filter( 'posts_orderby', array( $this, 'handle_orderby_for_page_handle' ) ); |