[wp-trac] [WordPress Trac] #26623: Make gallery_shortcode more customizable

WordPress Trac noreply at wordpress.org
Mon Dec 16 18:11:47 UTC 2013


#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    |
-------------------------+------------------------------

Comment (by bradvin):

 Replying to [comment:3 DrewAPicture]:
 > Once you reach a certain point, replacing the gallery shortcode with
 your own flavor altogether may be the better option.
 >
 > Sounds like plugin material to me.
 >

 You may be correct in some instances, when it comes to extreme
 customization. But in most scenarios, for example, when I just want to
 remove the line breaks from the gallery HTML, why should I have to
 override the whole function, and then maintain my own version of it inside
 my theme or plugin? It just seems unnecessary, when a few filters will
 give me complete control over the HTML.

 The new filters mean I can leave the gallery logic alone and only worry
 about the HTML.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26623#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list