|
@@ 288-295 (lines=8) @@
|
| 285 |
|
return $post; |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
function get_posts( $args ) { |
| 289 |
|
list( $post_ids ) = $args; |
| 290 |
|
$post_ids = array_map( 'intval', (array) $post_ids ); |
| 291 |
|
$jp = Jetpack::init(); |
| 292 |
|
$sync_data = $jp->sync->get_content( array( 'posts' => $post_ids ) ); |
| 293 |
|
|
| 294 |
|
return $sync_data; |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
function get_comment( $id ) { |
| 298 |
|
if ( !$id = (int) $id ) { |
|
@@ 316-323 (lines=8) @@
|
| 313 |
|
return $comment; |
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
function get_comments( $args ) { |
| 317 |
|
list( $comment_ids ) = $args; |
| 318 |
|
$comment_ids = array_map( 'intval', (array) $comment_ids ); |
| 319 |
|
$jp = Jetpack::init(); |
| 320 |
|
$sync_data = $jp->sync->get_content( array( 'comments' => $comment_ids ) ); |
| 321 |
|
|
| 322 |
|
return $sync_data; |
| 323 |
|
} |
| 324 |
|
|
| 325 |
|
function update_attachment_parent( $args ) { |
| 326 |
|
$attachment_id = (int) $args[0]; |