| @@ 1261-1265 (lines=5) @@ | ||
| 1258 | ); |
|
| 1259 | ||
| 1260 | // add VideoPress link to the meta |
|
| 1261 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
| 1262 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
| 1263 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
| 1264 | } |
|
| 1265 | } |
|
| 1266 | ||
| 1267 | if ( $media_item->post_parent > 0 ) { |
|
| 1268 | $response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent ); |
|
| @@ 639-643 (lines=5) @@ | ||
| 636 | ); |
|
| 637 | ||
| 638 | // add VideoPress link to the meta |
|
| 639 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
| 640 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
| 641 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
| 642 | } |
|
| 643 | } |
|
| 644 | ||
| 645 | if ( $media_item->post_parent > 0 ) { |
|
| 646 | $response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->blog_id, $media_item->post_parent ); |
|