@@ 1254-1258 (lines=5) @@ | ||
1251 | ); |
|
1252 | ||
1253 | // add VideoPress link to the meta |
|
1254 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
1255 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
1256 | $response['meta']->links->videopress = (string) $this->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
1257 | } |
|
1258 | } |
|
1259 | ||
1260 | if ( $media_item->post_parent > 0 ) { |
|
1261 | $response['meta']->links->parent = (string) $this->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent ); |
@@ 639-643 (lines=5) @@ | ||
636 | ); |
|
637 | ||
638 | // add VideoPress link to the meta |
|
639 | if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) { |
|
640 | if ( function_exists( 'video_get_info_by_blogpostid' ) ) { |
|
641 | $response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' ); |
|
642 | } |
|
643 | } |
|
644 | ||
645 | if ( $media_item->post_parent > 0 ) { |
|
646 | $response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->blog_id, $media_item->post_parent ); |