|
@@ 373-380 (lines=8) @@
|
| 370 |
|
return $post; |
| 371 |
|
} |
| 372 |
|
|
| 373 |
|
function get_posts( $args ) { |
| 374 |
|
list( $post_ids ) = $args; |
| 375 |
|
$post_ids = array_map( 'intval', (array) $post_ids ); |
| 376 |
|
$jp = Jetpack::init(); |
| 377 |
|
$sync_data = $jp->sync->get_content( array( 'posts' => $post_ids ) ); |
| 378 |
|
|
| 379 |
|
return $sync_data; |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
function get_comment( $id ) { |
| 383 |
|
if ( !$id = (int) $id ) { |
|
@@ 401-408 (lines=8) @@
|
| 398 |
|
return $comment; |
| 399 |
|
} |
| 400 |
|
|
| 401 |
|
function get_comments( $args ) { |
| 402 |
|
list( $comment_ids ) = $args; |
| 403 |
|
$comment_ids = array_map( 'intval', (array) $comment_ids ); |
| 404 |
|
$jp = Jetpack::init(); |
| 405 |
|
$sync_data = $jp->sync->get_content( array( 'comments' => $comment_ids ) ); |
| 406 |
|
|
| 407 |
|
return $sync_data; |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
function update_attachment_parent( $args ) { |
| 411 |
|
$attachment_id = (int) $args[0]; |