Opened 9 months ago
Closed 12 days ago
#21702 closed defect (bug) (fixed)
RSS Widget adds [...] even if the entire content is shown
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Widgets | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Ken@… |
Description (last modified by SergeyBiryukov)
When the option to display item content is checked, the core RSS widget adds [...] regardless of if any trimming was actually done or not.
I believe [...] should only show up if something is cut off, and should not show when the entire excerpt is shown (due to its short length).
This seems related to #11244 which was marked as fixed.
Attachments (2)
Change History (11)
comment:1
SergeyBiryukov — 9 months ago
- Description modified (diff)
c3mdigital — 9 months ago
comment:2
c3mdigital — 9 months ago
- Keywords has-patch added
- Version set to 2.5
Preserve the original $desc and use $excerpt instead. Comparing the two will tell whether or not hellip should be added.
Also, if you decide to use mb_strlen, make sure the function exists first and maybe fall back to strlen.
- Milestone changed from 3.5 to Future Release
Let's come to a consensus on a patch.
comment:8
SergeyBiryukov — 12 days ago
- Keywords 3.6-early removed
- Milestone changed from Future Release to 3.6
Related: #11446
comment:9
SergeyBiryukov — 12 days ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 24213:
Note: See
TracTickets for help on using
tickets.

Patch checks length of string using mb_strlen. Only adds [...] if the length is > 355.