[wp-trac] [WordPress Trac] #18491: Calling wp_get_attachment_link with a non-existent ID throws PHP notice

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 8 14:22:44 UTC 2011


#18491: Calling wp_get_attachment_link with a non-existent ID throws PHP notice
------------------------------+---------------------
 Reporter:  Jayjdk            |       Owner:  ryan
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.3
Component:  Warnings/Notices  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+---------------------

Comment (by nacin):

 In [19212]:
 {{{
 #!CommitTicketReference repository="" revision="19212"
 Simplify logic in wp_get_attachment_link(). see #18491.
 }}}

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


More information about the wp-trac mailing list