sal/class.json-api-post-base.php 1 location
|
@@ 673-675 (lines=3) @@
|
670 |
|
} |
671 |
|
} |
672 |
|
|
673 |
|
if ( $media_item->post_parent > 0 ) { |
674 |
|
$response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->get_id(), $media_item->post_parent ); |
675 |
|
} |
676 |
|
|
677 |
|
return (object) $response; |
678 |
|
} |
class.json-api-endpoints.php 1 location
|
@@ 1305-1307 (lines=3) @@
|
1302 |
|
} |
1303 |
|
} |
1304 |
|
|
1305 |
|
if ( $media_item->post_parent > 0 ) { |
1306 |
|
$response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent ); |
1307 |
|
} |
1308 |
|
|
1309 |
|
return (object) $response; |
1310 |
|
} |