@@ 674-676 (lines=3) @@ | ||
671 | ||
672 | // add VideoPress link to the meta |
|
673 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
674 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
675 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
676 | } |
|
677 | } |
|
678 | ||
679 | if ( $media_item->post_parent > 0 ) { |
@@ 1458-1460 (lines=3) @@ | ||
1455 | ||
1456 | // add VideoPress link to the meta |
|
1457 | if ( isset( $response['videopress_guid'] ) ) { |
|
1458 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
1459 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
1460 | } |
|
1461 | } |
|
1462 | ||
1463 | if ( $media_item->post_parent > 0 ) { |