Init var. see #7692
git-svn-id: http://svn.automattic.com/wordpress/trunk@9283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2701b1a61
commit
b28b00594c
|
@ -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'>";
|
||||
|
|
Loading…
Reference in New Issue