[wp-trac] [WordPress Trac] #38228: Add filter to default gallery shortcode output
WordPress Trac
noreply at wordpress.org
Tue Oct 4 18:27:55 UTC 2016
#38228: Add filter to default gallery shortcode output
--------------------------+-----------------------------
Reporter: tristangemus | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Gallery | Version: trunk
Severity: normal | Keywords:
Focuses: rtl |
--------------------------+-----------------------------
Right now the only way to alter the default gallery shortcode output is to
use the "post_gallery" shortcode which effectively requires the developer
to rewrite the entire shortcode.
There is a lot of redundancy in here since in most cases, we do not want
to alter the retrieval of gallery items.
By adding a simple filter at the end of the gallery, we can save a lot of
code as well as not effect anyone currently using the post_gallery filter.
See my proposed patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38228>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list