Ticket #15103: 15790.2.diff
| File 15790.2.diff, 1.2 KB (added by , 16 years ago) |
|---|
-
wp-includes/media.php
821 821 822 822 $selector = "gallery-{$instance}"; 823 823 824 $output = apply_filters('gallery_style', " 824 $gallery_style = $gallery_div = ''; 825 if ( apply_filters( 'use_default_gallery_style', true ) ) 826 $gallery_style = " 825 827 <style type='text/css'> 826 828 #{$selector} { 827 829 margin: auto; … … 830 832 float: {$float}; 831 833 margin-top: 10px; 832 834 text-align: center; 833 width: {$itemwidth}%; } 835 width: {$itemwidth}%; 836 } 834 837 #{$selector} img { 835 838 border: 2px solid #cfcfcf; 836 839 } … … 838 841 margin-left: 0; 839 842 } 840 843 </style> 841 <!-- see gallery_shortcode() in wp-includes/media.php --> 842 <div id='$selector' class='gallery galleryid-{$id}'>"); 844 <!-- see gallery_shortcode() in wp-includes/media.php -->"; 845 $size_class = sanitize_html_class( $size ); 846 $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; 847 $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div ); 843 848 844 849 $i = 0; 845 850 foreach ( $attachments as $id => $attachment ) {