[wp-trac] [WordPress Trac] #16713: Wordpress removes title attribute from images

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 1 12:39:08 UTC 2011


#16713: Wordpress removes title attribute from images
--------------------------+-----------------------------
 Reporter:  ukdmbfan      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 For everyone apart from super-admin users, WordPress will remove a title
 attribute defined in an <img> tag. This is because it's not defined in the
 /wp-includes/kses.php file as being a valid attribute for <img>.

 It may be that WordPress doesn't consider title to be a valid attribute
 (even though it's a standard W3C HTML attribute) which is fine, but
 WordPress also provides an input box for the title in the image editing
 popup, which adds the title attribute to the <img> tag, which then doesn't
 save for anyone other than a super-admin user (even though all users can
 save a value in that box).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16713>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list