| @@ 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 ) { |
|
| @@ 1469-1471 (lines=3) @@ | ||
| 1466 | ||
| 1467 | // add VideoPress link to the meta |
|
| 1468 | if ( isset( $response['videopress_guid'] ) ) { |
|
| 1469 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
| 1470 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
| 1471 | } |
|
| 1472 | } |
|
| 1473 | ||
| 1474 | if ( $media_item->post_parent > 0 ) { |
|