diff --git a/src/wp-content/themes/twentyeleven/content-gallery.php b/src/wp-content/themes/twentyeleven/content-gallery.php index 4ae6561463..14c1c1c9d0 100644 --- a/src/wp-content/themes/twentyeleven/content-gallery.php +++ b/src/wp-content/themes/twentyeleven/content-gallery.php @@ -36,7 +36,7 @@ $images = twentyeleven_get_gallery_images(); if ( $images ) : $total_images = count( $images ); - $image = array_shift( $images ); + $image = current( $images ); ?>