﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
22372,Bug in wp_attachment_is_image,odedstr2,,"On '''wp-includes/post.php
''' Line '''4031''':

{{{
if ( !$file = get_attached_file( $post->ID ) )
}}}

SHOULD BE:

{{{
if ( !$file = get_attached_file( $post_id ) )
}}}

By the way, the variable name $post_id is very bad, as this is the Attachment ID, not the Post ID. Probably this variable naming mistake resulted in this bug.",defect (bug),closed,normal,,Media,3.4.2,trivial,invalid,,
