Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#8278 closed defect (bug) (fixed)

use UTF-8-aware excerpt in feed widgets

Reported by: nbachiyski's profile nbachiyski Owned by: nbachiyski's profile 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)

rss-widget-utf8-excerpt.diff (610 bytes) - added by nbachiyski 16 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9791]) Use wp_html_excerpt() instead of substr in rss widget. Props nbachiyski. fixes #8278

Note: See TracTickets for help on using tickets.