Make a copy of gallery_shortcode() for plugin use