Yoast/wordpress-seo — pull request #1165 by benhuson (2014-05-23 23:09:12+00:00)
Title: Specify post ID when using wp_enqueue_media() to set up correctly for the post being edited.

wp_enqueue_media() requires the Post ID to be passed as a parameter.

Without this the 'Uploaded to this post' option was not working in the media modal for my custom post type.

This fixes the issue.