Browse files

cast as array

  • Loading branch information...
1 parent 58a8339 commit 688613cb7b0eb89ab61a895442e92232d673cfa1 @mfields committed Aug 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 taxonomy-list-shortcode-gallery.php
View
2 taxonomy-list-shortcode-gallery.php
@@ -25,7 +25,7 @@
$o .= "\n\n\n" . '<div class="gallery term-gallery term-gallery-columns-' . $args['cols'] . ' gallery-columns-' . $args['cols'] . ' gallery-size-' . sanitize_html_class( $args['image_size'] ) . '">';
$count = 0;
-foreach ( $terms as $term ) {
+foreach ( (array) $terms as $term ) {
$count++;
$image = wp_get_attachment_image( $term->image_id, $args['image_size'], false, array(

0 comments on commit 688613c

Please sign in to comment.