@chess64 on WordPress.org
Mentioned in [5199] on Core SVN:Set the post ID when calling wp_get_attachment_url().