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

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 24 21:44:41 GMT 2009


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

 New patch ''wp_get_attachment_image_alt.diff'':

  - Adds `alt` attribute (from attachment ''caption/alternate text'' field)
  - Adds `title` attribute (from attachment ''title'' field)
  - Adds general `wp_get_attachment_image_attributes` filter hook allowing
 plugins to alter attributes (except height, width) or add new ones

 This patch treats title and caption fields separately, and the filter hook
 (on $attr array) is more flexible.

 Works for me without errors in revision 10347.

 Hopefully Andrew may find it useful. :)

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


More information about the wp-trac mailing list