[wp-trac] [WordPress Trac] #18855: get_attached_file( $post_id ) wrongly(?) returns the uploads directory when $post_id is not a valid attachment

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 2 03:30:36 UTC 2012


#18855: get_attached_file( $post_id ) wrongly(?) returns the uploads directory when
$post_id is not a valid attachment
------------------------------------+------------------------------
 Reporter:  mikeschinkel            |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Post Thumbnails         |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by braydonf):

 How can we get this moving forward? I've just run into this problem, and
 was surprised that get_attached_file did not return false.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18855#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list