fixes duplication in WP3.6 when copying attachments to a post

+ start of captions support in shortcode