Init var. see #7692
git-svn-id: https://develop.svn.wordpress.org/trunk@9283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
61068c87d1
commit
c92ac3b6d2
@ -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
Block a user