AI Assistant
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
124 Views
Posts: 1
 Nick
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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