Notifications
Clear all

Bug: Duplicate images when Lightbox is disabled (v7.6.48)

2 Posts
2 Users
0 Reactions
172 Views
Posts: 1
 Nick
Customer
Topic starter
(@nicholas-creighton)
Member
Joined: 5 years ago
[#14519]

Hi,

I found a bug in wpDiscuz 7.6.48 that causes uploaded images to display twice in comments when Lightbox is disabled.

The issue is on line 246 of utils/class.WpdiscuzHelperUpload.php:

$images .= $images .= $imageHtml;

The double concatenation operator causes the image HTML to be appended twice. It should be:

$images .= $imageHtml;

The lightbox-enabled path on line 242 is correct — it's just this else branch that has the typo.

Thanks, Nick


1 Reply
Posts: 4248
 Tom
Admin
(@tomson)
Famed Member
Joined: 11 years ago

Hi @nicholas-creighton ,

We've released wpDiscuz v7.6.49, please update. This should fix the bug.


Reply
Share:
Scroll to top