| @@ 667-671 (lines=5) @@ | ||
| 664 | ); |
|
| 665 | ||
| 666 | // add VideoPress link to the meta |
|
| 667 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
| 668 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
| 669 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
| 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 ); |
|
| @@ 1318-1322 (lines=5) @@ | ||
| 1315 | ); |
|
| 1316 | ||
| 1317 | // add VideoPress link to the meta |
|
| 1318 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
| 1319 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
| 1320 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
| 1321 | } |
|
| 1322 | } |
|
| 1323 | ||
| 1324 | if ( $media_item->post_parent > 0 ) { |
|
| 1325 | $response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent ); |
|