[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:08:27 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         |
------------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [19210]:
 {{{
 #!CommitTicketReference repository="" revision="19210"
 Avoid warning when non-existent ID pass to wp_get_attachment_link(). Tidy
 formatting of wp_get_attachment_link(). Props SergeyBiryukov, Jayjdk.
 fixes #18491
 }}}

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


More information about the wp-trac mailing list