[wp-trac] [WordPress Trac] #29832: Add filter to final output of gallery_shortcode

WordPress Trac noreply at wordpress.org
Wed Jan 28 05:17:15 UTC 2015


#29832: Add filter to final output of gallery_shortcode
-------------------------+------------------------------
 Reporter:  dcrabill     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Gallery      |     Version:  2.5
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:  template
-------------------------+------------------------------
Changes (by DrewAPicture):

 * keywords:   => close


Comment:

 For what it's worth, I also wrote an answer awhile back on StackExchange
 for adding a data attribute to gallery image elements. That was applicable
 to integration with the Galleria script and uses the
 [https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_attributes/
 wp_get_attachment_image_attributes] filter.

 http://wordpress.stackexchange.com/a/160555/33309

 I would reiterate that the gallery shortcode is already littered with
 hooks and adding more is really just throwing gas on the fire. It's the
 jalopy of shortcodes at this point.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29832#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list