[wp-trac] [WordPress Trac] #26623: Make gallery_shortcode more customizable
WordPress Trac
noreply at wordpress.org
Wed Jan 1 05:55:16 UTC 2014
#26623: Make gallery_shortcode more customizable
-------------------------+------------------------------
Reporter: bradvin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Gallery | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Changes (by bcworkz):
* cc: bcworkz (added)
Comment:
All those handy filters, and none met my need! I've offered a patch that
includes my need to filter the $image_output within the loop.
I'm afraid this idea, while attractive, is going to eventually end up
filtering every other line by the time we address everyone's need. We
might be better off with a grand all encompassing filter for the final
output. Certainly less than ideal, but just about everyone can make it
work for them.
My particular need inside the loop was to inject a simple javascript call
as the link target. As it stands now, to do this, I have to completely
replace the entire thing and maintain my own version just to inject a
little bit of script. That is certainly less than ideal as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26623#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list