Opened 11 years ago
Closed 10 years ago
#14186 closed defect (bug) (duplicate)
gallery_style filter taking more code than just style
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
gallery_style hook takes more than just the style tag.
$output = apply_filters('gallery_style', " <style type='text/css'> #{$selector} { margin: auto; } #{$selector} .gallery-item { float: {$float}; margin-top: 10px; text-align: center; width: {$itemwidth}%; } #{$selector} img { border: 2px solid #cfcfcf; } #{$selector} .gallery-caption { margin-left: 0; } </style> <!-- see gallery_shortcode() in wp-includes/media.php --> <div id='$selector' class='gallery galleryid-{$id}'>");
patched attached.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
it only leave <style>..</style> in the filter,