Hi. I want to filter the output of get_image_tag in media.php, since I think it adds some redundant stuff. For one, there is no reason for both an alt and a title tag, and I don't need the ending / in the img tag.
I have tried adding a filter with add_filter( 'get_image_tag', 'figure_filter', 4); and then function figure_filter($id, $title, $align, $size='medium') { etc, thinking I could make kind of a "copy" of the whole get_image_tag function, but with a new output. That didn't work. For starters, I don't have the img src in my function...
Any ideas on how to get it the way I want? For the caption markup, I simply made my own shortcode instead...