WordPress.org

Make WordPress Core

Ticket #14186: gallery_style_hook.patch

File gallery_style_hook.patch, 573 bytes (added by wjm, 8 years ago)

it only leave <style>..</style> in the filter,

  • media.php

     
    837837                        #{$selector} .gallery-caption {
    838838                                margin-left: 0;
    839839                        }
    840                 </style>
    841                 <!-- see gallery_shortcode() in wp-includes/media.php -->
    842                 <div id='$selector' class='gallery galleryid-{$id}'>");
     840                </style>");
     841        $output .= "<!-- see gallery_shortcode() in wp-includes/media.php -->
     842                <div id='$selector' class='gallery galleryid-{$id}'>";
    843843
    844844        $i = 0;
    845845        foreach ( $attachments as $id => $attachment ) {