| @@ 1418-1420 (lines=3) @@ | ||
| 1415 | ||
| 1416 | // add VideoPress link to the meta | |
| 1417 | 		if ( isset ( $response['videopress_guid'] ) ) { | |
| 1418 | 			if ( function_exists( 'video_get_info_by_blogpostid' ) ) { | |
| 1419 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); | |
| 1420 | } | |
| 1421 | } | |
| 1422 | ||
| 1423 | 		if ( $media_item->post_parent > 0 ) { | |
| @@ 671-673 (lines=3) @@ | ||
| 668 | ||
| 669 | // add VideoPress link to the meta | |
| 670 | 		if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { | |
| 671 | 			if ( function_exists( 'video_get_info_by_blogpostid' ) ) { | |
| 672 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); | |
| 673 | } | |
| 674 | } | |
| 675 | ||
| 676 | 		if ( $media_item->post_parent > 0 ) { | |