[wp-trac] [WordPress Trac] #20948: Unnecessary post type check in wp_get_attachment_url

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 14 02:38:16 UTC 2012


#20948: Unnecessary post type check in wp_get_attachment_url
--------------------------+------------------------------------
 Reporter:  jfarthing84   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.4
 Severity:  normal        |   Keywords:  dev-feedback has-patch
--------------------------+------------------------------------
 Not sure why this needs to be done. You wouldn't be calling this function
 on a post if it wasn't an attachment. If you are, then you must have a
 good reason to be doing so, like I do.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20948>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list