@@ 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 ); |
@@ 1299-1303 (lines=5) @@ | ||
1296 | ); |
|
1297 | ||
1298 | // add VideoPress link to the meta |
|
1299 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
1300 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
1301 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
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 ); |