Init var. see #7692

git-svn-id: http://svn.automattic.com/wordpress/trunk@9283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-22 18:45:09 +00:00
parent c2701b1a61
commit b28b00594c

View File

@ -658,6 +658,7 @@ function gallery_shortcode($attr) {
<!-- see gallery_shortcode() in wp-includes/media.php -->
<div class='gallery'>");
$i = 0;
foreach ( $attachments as $id => $attachment ) {
$link = wp_get_attachment_link($id, $size, true);
$output .= "<{$itemtag} class='gallery-item'>";