Post Formats: Return correct datatype in get_post_gallery()
|Reported by:||obenland||Owned by:|
get_post_gallery() has a flag to request HTML or data. By default HTML is requested, yet the fallback data type that is returned by the function assumes that data was requested. This might lead to an array to string conversion if the_post_format_gallery() is being called in a post without a gallery.