[wp-trac] [WordPress Trac] #21569: Filter gallery styles with access to $attr
WordPress Trac
noreply at wordpress.org
Fri Feb 15 21:03:08 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: |
-------------------------+------------------
Comment (by drywallbmb):
I'd like to see two things happen here at the least. These are simple but
could be handy...
1. Add a gallery_output filter. This could/should be called around line
802 of wp-includes/media.php, right before returning $output.
2. Fix line 299 of wp-includes to use double-quotes around the style
attribute as in like 795. (or, alternatively, change like 795 to use
single quotes). This is minor but the inconsistency is annoying.
I'd submit a patch but I haven't even done so before and it'll take me a
while to remember how to use SVN, I've been on git for years... :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21569#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list