| @@ 1399-1401 (lines=3) @@ | ||
| 1396 | ||
| 1397 | // add VideoPress link to the meta |
|
| 1398 | if ( isset ( $response['videopress_guid'] ) ) { |
|
| 1399 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
| 1400 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
| 1401 | } |
|
| 1402 | } |
|
| 1403 | ||
| 1404 | if ( $media_item->post_parent > 0 ) { |
|
| @@ 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 ) { |
|