Init var. see #7692

git-svn-id: https://develop.svn.wordpress.org/trunk@9283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-22 18:45:09 +00:00
parent 61068c87d1
commit c92ac3b6d2
1 changed files with 1 additions and 0 deletions

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'>";