Better gallery shortcode filter
|Reported by:||johnbillion||Owned by:|
There's a filter inside gallery_shortcode() which allows plugins to override the default gallery template ('post_gallery'), but it's called at the beginning of the function before we've fetched our gallery images. If a plugin uses this filter, it has to perform a lot of logic to determine the post gallery images.
We should add a second filter to gallery_shortcode() after we've determined our gallery images, to make plugin authors' jobs easier.