{"id":21364,"date":"2012-12-27T13:01:55","date_gmt":"2012-12-27T13:01:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/restore-image-title\/"},"modified":"2017-12-28T10:26:16","modified_gmt":"2017-12-28T10:26:16","slug":"restore-image-title","status":"closed","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/restore-image-title\/","author":20841,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5","stable_tag":"1.5","tested":"4.9.29","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Restore Image Title","header_author":"Les Bessant","header_description":"","assets_banners_color":"","last_updated":"2017-12-28 10:26:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/losingit.me.uk\/","rating":4.8,"author_block_rating":0,"active_installs":1000,"downloads":16952,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>First release<\/p>","1.1":"<p>Checks for existence of title attribute before adding anything. Filters title with esc_attr() to avoid any markup in the title breaking the ing tag.<\/p>","1.5":"<p>New feature - now adds titles to gallery thumbnails and to images displayed by lightbox plugins.<\/p>"},"ratings":{"1":0,"2":0,"3":"1","4":"1","5":"11"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"972541","resolution":"128x128","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.5"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[133,1460],"plugin_category":[50],"plugin_contributors":[81016],"plugin_business_model":[],"class_list":["post-21364","plugin","type-plugin","status-closed","hentry","plugin_tags-image","plugin_tags-title","plugin_category-media","plugin_contributors-lesbessant","plugin_committers-lesbessant"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/restore-image-title.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress 3.5 introduced a new feature - when images are inserted into posts, the title attribute is not included in the image tag. This was done with the best of intentions relating to accessibility, as documented on <a href=\"http:\/\/core.trac.wordpress.org\/ticket\/18984\">Trac<\/a><\/p>\n\n<p>Unfortunately, this causes problems for some Lightbox plugins, quite apart from stopping image tooltips from appearing.<\/p>\n\n<p>This plugin hooks into the media_send_to_editor filter and inserts the image title into the html inserted into the post.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the restore-image-title folder into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the restore-image-title folder into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol><\/dd>\n<dt>Does it do anything else?<\/dt>\n<dd><p>No<\/p><\/dd>\n<dt>Can it add a title to previously uploaded images?<\/dt>\n<dd><p>Sadly not - that would require a different approach, involving edits to the database, which is well beyond the scope of this plugin.<\/p><\/dd>\n<dt>Can you add a feature?<\/dt>\n<dd><p>Errr, probably not. I put this together to fix a single specific issue. Updates are likely to be limited to making sure it continues to work with future versions of WordPress.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Checks for existence of title attribute before adding anything. Filters title with esc_attr() to avoid any markup in the title breaking the img tag.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Now adds titles to gallery thumbnails, which also works for at least some lightbox plugins. Thanks to photoMaldives for posting code and OC2PS for prompting me to update the plugin.<\/li>\n<\/ul>","raw_excerpt":"Restores the title attribute when images are inserted into posts","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/21364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=21364"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lesbessant"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=21364"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=21364"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=21364"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=21364"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=21364"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=21364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}