Skip to content

Commit

Permalink
REST API: Fix Missing videopress_guid in upload media response
Browse files Browse the repository at this point in the history
Summary: During testing of the new Media Video Widget, the videopress_guid which is needed to construct the proper oembed url was missing in API responses for me.  The following minor change fixes this issue.  Additional details #7215

Test Plan: See the PR linked above for test instructions

Reviewers: codebykat

Reviewed By: codebykat

Subscribers: dbtlr

Differential Revision: https://[private link]

Merges r156992-wpcom.
  • Loading branch information
Timmy Crawford authored and zinigor committed Jun 29, 2017
1 parent e2dbe55 commit 5dd4a16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function callback( $path = '', $blog_id = 0 ) {
// More than likely a post has not been created yet, so we pass in the media item we
// got back from the Jetpack site.
$post = (object) $media_item['post'];
$media_item = $this->get_media_item_v1_1( $media_item['ID'], $post, $media_item['file'] );
$media_item = $this->get_media_item_v1_1( $post->ID, $post, $media_item['file'] );
}
}

Expand Down

0 comments on commit 5dd4a16

Please sign in to comment.