In WordPress 3.5, when images are inserted into posts, the title attribute is not included in the image tag.
The Lightbox plugin I am using requires the title tag to be present on images; besides, I like having a hover tool-tip.
Is there some way to restore the previous behaviour of including the title attribute?
You can hook into the
media_send_to_editor
filter and add the title tag to the generated HTML image tag: