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

WordPress Trac noreply at wordpress.org
Fri Feb 15 22:54:25 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):

 The patch isn't going to happen like this. Everywhere in WordPress they
 use single quotes for HTML. See enqueueing script and styles. So the
 splitter (<br/>) as an argument is the solution for this ticket.

 The filter still doesn't make sense since the <br/> elements should be an
 argument. Doing a str_replace or a regex is wrong to do. Then you can
 better use the filter 'post_gallery'.

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


More information about the wp-trac mailing list