img_caption_shortcode()
function doesn't process shortcodes when they're in the caption (just when they're in the image). This simple plugin changes it so that captions can contain shortcodes.
It also fixes some other small edge-case bugs in the original code.
functions.php
to change the behaviors)Just activate the plugin.