@@ 675-677 (lines=3) @@ | ||
672 | ||
673 | // add VideoPress link to the meta |
|
674 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
675 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
676 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
677 | } |
|
678 | } |
|
679 | ||
680 | if ( $media_item->post_parent > 0 ) { |
@@ 1489-1491 (lines=3) @@ | ||
1486 | ||
1487 | // add VideoPress link to the meta |
|
1488 | if ( isset( $response['videopress_guid'] ) ) { |
|
1489 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
1490 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
1491 | } |
|
1492 | } |
|
1493 | ||
1494 | if ( $media_item->post_parent > 0 ) { |