When inserting images into blog posts, I rarely find the need (and I doubt others will too) to link to the full media image. I hate the repetitive task of selecting ‘none’ from the media ‘Link To’ drop down so I finally got round to finding a nice WordPress snippet to get ‘none’ to appear by default in the drop down when inserting a new image from the media gallery.
Simply paste this line at the end of you’re theme’s functions.php file, refresh and job done! Now when selecting the image to insert, the default ‘Link To’ setting under attachment display settings should be ‘None’ rather than the default option for ‘Media File’.
You can of course set the ‘Link To’ drop down to the other available options for ‘Custom URL’, ‘Media File’, ‘Attachment Page’ and ‘None’ by changing the second parameter in the update_option function to ‘custom’, ‘file’, ‘post’ or ‘none’ .