Skip to content

Commit 300d16e

Browse files
authored
Merge pull request #1833 from skaut/empty-gallery-fix
Fixed an issue with galleries being reported as empty due to ordering
2 parents 681394d + ce88793 commit 300d16e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/php/frontend/page/class-images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static function( $first_index, $second_index ) use ( $image_timestamps, $options
119119
);
120120
}
121121

122-
return $images;
122+
return array_values( $images );
123123
}
124124

125125
}

0 commit comments

Comments
 (0)