#8278 closed defect (bug) (fixed)
use UTF-8-aware excerpt in feed widgets
| Reported by: | nbachiyski | Owned by: | nbachiyski |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When showing excertps the feed widgets calls substr() directly, which works on byte level and not on character level. Thus UTF-8 characters are split into two and shown as diamonds in browsers.
We have wp_html_escerpt() which does the trick.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [9791]) Use wp_html_excerpt() instead of substr in rss widget. Props nbachiyski. fixes #8278