json-endpoints/class.wpcom-json-api-list-media-v1-1-endpoint.php 1 location
|
@@ 170-176 (lines=7) @@
|
| 167 |
|
return $return; |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
function build_page_handle( $post, $query ) { |
| 171 |
|
$column = $query['orderby']; |
| 172 |
|
if ( ! $column ) { |
| 173 |
|
$column = 'date'; |
| 174 |
|
} |
| 175 |
|
return build_query( array( 'value' => urlencode( $post->$column ), 'id' => $post->ID ) ); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
function handle_where_for_page_handle( $where ) { |
| 179 |
|
global $wpdb; |
json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php 1 location
|
@@ 404-410 (lines=7) @@
|
| 401 |
|
return $return; |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
function build_page_handle( $post, $query ) { |
| 405 |
|
$column = $query['orderby']; |
| 406 |
|
if ( ! $column ) { |
| 407 |
|
$column = 'date'; |
| 408 |
|
} |
| 409 |
|
return build_query( array( 'value' => urlencode($post[$column]), 'id' => $post['ID'] ) ); |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
function _build_date_range_query( $column, $range, $where ) { |
| 413 |
|
global $wpdb; |
json-endpoints/class.wpcom-json-api-list-posts-v1-2-endpoint.php 1 location
|
@@ 397-403 (lines=7) @@
|
| 394 |
|
return $return; |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
function build_page_handle( $post, $query ) { |
| 398 |
|
$column = $query['orderby']; |
| 399 |
|
if ( ! $column ) { |
| 400 |
|
$column = 'date'; |
| 401 |
|
} |
| 402 |
|
return build_query( array( 'value' => urlencode($post[$column]), 'id' => $post['ID'] ) ); |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
function _build_date_range_query( $column, $range, $where ) { |
| 406 |
|
global $wpdb; |