Ticket #33979: 33979-2.diff
File 33979-2.diff, 908 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/media.php
1824 1824 if ( isset( $image_meta['height'], $image_meta['width'] ) ) { 1825 1825 $orientation = ( $image_meta['height'] > $image_meta['width'] ) ? 'portrait' : 'landscape'; 1826 1826 } 1827 $output .= "<{$itemtag} class='gallery-item'>"; 1827 /** 1828 * Filter the gallery item classes. 1829 * 1830 * @since 4.9.3 1831 * 1832 * @param string $classes Classes applied to gallery item. 1833 * @param object $attachment Attachment object. 1834 */ 1835 $classes = 'gallery-item'; 1836 $gallery_item_classes = apply_filters( 'gallery_item_classes', $classes, $attachment ); 1837 $output .= "<{$itemtag} class='{$gallery_item_classes}'>"; 1828 1838 $output .= " 1829 1839 <{$icontag} class='gallery-icon {$orientation}'> 1830 1840 $image_output