[wp-trac] [WordPress Trac] #21569: Filter gallery styles with access to $attr

WordPress Trac noreply at wordpress.org
Fri Feb 15 23:21:05 UTC 2013


#21569: Filter gallery styles with access to $attr
-------------------------+------------------
 Reporter:  betzster     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Media        |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by markoheijnen):

 I added a patch that creates a splitter argument and uses that. I choose
 for double quotes since it is better fitting here. I also added a
 additional class: gallery-link-{$attr['link']}. This gist show the reason
 why: https://gist.github.com/markoheijnen/4635255

 @drywallbmb: About your patch. I also should have said that that kind of
 escaping isn't really what you will find in WordPress core code. It's then
 better too change from double quotes to single quotes. Unless it isn't
 posible what you can see in regex's.

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


More information about the wp-trac mailing list