Opened 13 years ago
Closed 13 years ago
#21702 closed defect (bug) (fixed)
RSS Widget adds [...] even if the entire content is shown
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.6 | Priority: | normal |
| Severity: | normal | Version: | 2.5 |
| Component: | Widgets | Keywords: | has-patch |
| Focuses: | Cc: |
Description (last modified by )
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)
@
13 years ago
Preserve the original $desc and use $excerpt instead. Comparing the two will tell whether or not hellip should be added.
#4
@
13 years ago
Also, if you decide to use mb_strlen, make sure the function exists first and maybe fall back to strlen.
#5
@
13 years ago
- Milestone changed from 3.5 to Future Release
Let's come to a consensus on a patch.
Note: See
TracTickets for help on using
tickets.
Patch checks length of string using mb_strlen. Only adds [...] if the length is > 355.