Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#21625 closed defect (bug) (fixed)

Recent Drafts widget issue with UTF-8 characters

Reported by: SergeyBiryukov Owned by: nacin
Priority: normal Milestone: 3.5
Component: Administration Version: 2.7
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

Same issue as in #11528.

\s incorrectly targets some UTF-8 characters (Cyrillic Р or Hebrew נ).

Steps to reproduce:

  1. Create a draft with "САПР" as a content.
  2. It will be displayed as "САП�" in the Recent Drafts dashboard widget.

Attachments (2)

21625.patch​ (987 bytes ) - added by SergeyBiryukov 14 years ago.
21625.2.patch​ (986 bytes ) - added by SergeyBiryukov 14 years ago.
Removed "+" sign (unnecessary with PREG_SPLIT_NO_EMPTY)

Download all attachments as: .zip

Change History (4)

@SergeyBiryukov
14 years ago

Removed "+" sign (unnecessary with PREG_SPLIT_NO_EMPTY)

#1 @ryan
14 years ago

  • Keywords commit added

#2 @nacin
14 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In [22306]:

Split by [\r\n\t ] rather than \s to avoid UTF-8 issues. props SergeyBiryukov. fixes #21625.

Note: See TracTickets for help on using tickets.