Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

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

1 Posts
1 Users
0 Reactions
4 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


Share:
Scroll to top