Skip to content

Commit de62e95

Browse files
committed
fix #56
1 parent 54eb7a9 commit de62e95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/class-post.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public function get_attachments() {
9191
$image_ids[] = $attachment->ID;
9292
}
9393
}
94+
95+
$image_ids = \array_unique( $image_ids );
96+
9497
// get URLs for each image
9598
foreach ( $image_ids as $id ) {
9699
$thumbnail = \wp_get_attachment_image_src( $id, 'full' );

0 commit comments

Comments
 (0)