[wp-trac] Re: [WordPress Trac] #8732: Empty Alt Text in wp_get_attachment_image()

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 30 22:40:52 GMT 2008


#8732: Empty Alt Text in wp_get_attachment_image()
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  new      
 Priority:  normal        |    Milestone:  2.7.1    
Component:  General       |      Version:  2.7      
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by miqrogroove):

 Also reported #8763 and updated the workaround above as follows:

 {{{
 str_replace('alt=""', 'alt="'.attribute_escape(get_the_excerpt()).'"',
 wp_get_attachment_link($post->ID, array(450, 800))
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8732#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list