WordPress.org

Make WordPress Core

Ticket #14186: gallery_style_hook2.patch

File gallery_style_hook2.patch, 561 bytes (added by wjm, 8 years ago)

improved filter

  • media.php

     
    838838                                margin-left: 0;
    839839                        }
    840840                </style>
    841                 <!-- see gallery_shortcode() in wp-includes/media.php -->
    842                 <div id='$selector' class='gallery galleryid-{$id}'>");
     841                ", $selector, $float, $itemwidth );
     842        $output .= "<!-- see gallery_shortcode() in wp-includes/media.php -->
     843                <div id='$selector' class='gallery galleryid-{$id}'>";
    843844
    844845        $i = 0;
    845846        foreach ( $attachments as $id => $attachment ) {