@@ 670-672 (lines=3) @@ | ||
667 | ||
668 | // add VideoPress link to the meta |
|
669 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
670 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
671 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
672 | } |
|
673 | } |
|
674 | ||
675 | if ( $media_item->post_parent > 0 ) { |
@@ 1501-1503 (lines=3) @@ | ||
1498 | ||
1499 | // add VideoPress link to the meta |
|
1500 | if ( isset( $response['videopress_guid'] ) ) { |
|
1501 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
1502 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
1503 | } |
|
1504 | } |
|
1505 | ||
1506 | if ( $media_item->post_parent > 0 ) { |