mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
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 -->
|
<!-- see gallery_shortcode() in wp-includes/media.php -->
|
||||||
<div class='gallery'>");
|
<div class='gallery'>");
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
foreach ( $attachments as $id => $attachment ) {
|
foreach ( $attachments as $id => $attachment ) {
|
||||||
$link = wp_get_attachment_link($id, $size, true);
|
$link = wp_get_attachment_link($id, $size, true);
|
||||||
$output .= "<{$itemtag} class='gallery-item'>";
|
$output .= "<{$itemtag} class='gallery-item'>";
|
||||||
|
Loading…
Reference in New Issue
Block a user