[wp-trac] [WordPress Trac] #17579: Checking post_type in wp_get_attachment_url is later than it should be

WordPress Trac wp-trac at lists.automattic.com
Thu May 26 20:08:50 UTC 2011


#17579: Checking post_type in wp_get_attachment_url is later than it should be
-----------------------------+-----------------------------
 Reporter:  mitchoyoshitaka  |      Owner:  mitchoyoshitaka
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Performance      |    Version:
 Severity:  trivial          |   Keywords:  has-patch
-----------------------------+-----------------------------
 Once we get the $post, we can immediately check the post_type and return
 false if it's not an attachment.

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


More information about the wp-trac mailing list