Wordpress removes title attribute from images
|Reported by:||ukdmbfan||Owned by:||westi|
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).
Change History (9)
- Component changed from General to Formatting
- Keywords dev-feedback added; needs-patch removed
- Milestone changed from Awaiting Review to 3.4
- Owner set to westi
- Status changed from new to accepted