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
|
@@ 425-431 (lines=7) @@
|
| 422 |
|
return $return; |
| 423 |
|
} |
| 424 |
|
|
| 425 |
|
function build_page_handle( $post, $query ) { |
| 426 |
|
$column = $query['orderby']; |
| 427 |
|
if ( ! $column ) { |
| 428 |
|
$column = 'date'; |
| 429 |
|
} |
| 430 |
|
return build_query( |
| 431 |
|
array( |
| 432 |
|
'value' => urlencode( $post[ $column ] ), |
| 433 |
|
'id' => $post['ID'], |
| 434 |
|
) |
json-endpoints/class.wpcom-json-api-list-posts-v1-2-endpoint.php 1 location
|
@@ 420-426 (lines=7) @@
|
| 417 |
|
return $return; |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
function build_page_handle( $post, $query ) { |
| 421 |
|
$column = $query['orderby']; |
| 422 |
|
if ( ! $column ) { |
| 423 |
|
$column = 'date'; |
| 424 |
|
} |
| 425 |
|
return build_query( |
| 426 |
|
array( |
| 427 |
|
'value' => urlencode( $post[ $column ] ), |
| 428 |
|
'id' => $post['ID'], |
| 429 |
|
) |