[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
Fri Apr 27 16:09:00 UTC 2012
#18855: get_attached_file( $post_id ) wrongly(?) returns the uploads directory when
$post_id is not a valid attachment
----------------------------------------+---------------------
Reporter: mikeschinkel | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.4
Component: Post Thumbnails | Version: 3.2.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests |
----------------------------------------+---------------------
Changes (by nacin):
* status: accepted => closed
* resolution: => fixed
Comment:
In [20613]:
{{{
#!CommitTicketReference repository="" revision="20613"
Return false in get_attached_file() when the file does not exist, rather
than a path to the base uploads directory. props mikeschinkel. fixes
#18855.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18855#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list