#8278 closed defect (bug) (fixed)
use UTF-8-aware excerpt in feed widgets
Reported by: | nbachiyski | Owned by: | nbachiyski |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | |
Focuses: | Cc: |
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [9791]) Use wp_html_excerpt() instead of substr in rss widget. Props nbachiyski. fixes #8278