We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54eb7a9 commit de62e95Copy full SHA for de62e95
includes/class-post.php
@@ -91,6 +91,9 @@ public function get_attachments() {
91
$image_ids[] = $attachment->ID;
92
}
93
94
+
95
+ $image_ids = \array_unique( $image_ids );
96
97
// get URLs for each image
98
foreach ( $image_ids as $id ) {
99
$thumbnail = \wp_get_attachment_image_src( $id, 'full' );
0 commit comments