[wp-trac] [WordPress Trac] #14130: Better gallery shortcode filter
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 28 16:36:46 UTC 2010
#14130: Better gallery shortcode filter
-------------------------+--------------------------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.0
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14130>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list