[wp-trac] [WordPress Trac] #11805: Can't delete alternate text from image in media library

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 7 17:54:59 UTC 2010


#11805: Can't delete alternate text from image in media library
--------------------------+-------------------------------------------------
 Reporter:  doug          |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Media         |     Version:  2.9.1    
 Severity:  minor         |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by reaperhulk):

 * cc: reaperhulk (added)
  * keywords:  needs-patch => has-patch


Comment:

 This appears to be caused by the media_upload_form_handler testing for
 both isset() and !empty() on the image_alt.  If you remove the !empty() it
 behaves as expected.

 Potential issue with fix: If there are any pages that use
 media_upload_form_handler and pass an empty string (rather than excluding
 image_alt entirely when they don't want to touch it) this could cause a
 problem.

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


More information about the wp-trac mailing list