diff --git a/wp-includes/media.php b/wp-includes/media.php
index 17af247..d55a86a 100644
a
|
b
|
function gallery_shortcode( $attr ) { |
1645 | 1645 | if ( isset( $image_meta['height'], $image_meta['width'] ) ) { |
1646 | 1646 | $orientation = ( $image_meta['height'] > $image_meta['width'] ) ? 'portrait' : 'landscape'; |
1647 | 1647 | } |
1648 | | $output .= "<{$itemtag} class='gallery-item'>"; |
| 1648 | |
| 1649 | /** |
| 1650 | * Filter the gallery item classes. |
| 1651 | * |
| 1652 | * @since 4.4 |
| 1653 | * |
| 1654 | * @param string $classes Classes applied to gallery item. |
| 1655 | * @param object $attachment Attachment object. |
| 1656 | */ |
| 1657 | $classes = 'gallery-item'; |
| 1658 | $gallery_item_classes = apply_filters( 'gallery_item_classes', $classes, $attachment ); |
| 1659 | $output .= "<{$itemtag} class='{$gallery_item_classes}'>"; |
1649 | 1660 | $output .= " |
1650 | 1661 | <{$icontag} class='gallery-icon {$orientation}'> |
1651 | 1662 | $image_output |