WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1431 closed defect (bug) (fixed)

Not all character entities accounted for during ampersand (&) conversion

Reported by: Kafkaesqui Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.2
Component: General Keywords: regexp entities convert
Focuses: Cc:

Description

Several preg_replace lines in functions-formatting.php (lines 44, 101 and 348; revision 2622) account for character entities before converting & to &. However, these currently do not consistently recognize all entities using a mix of letters and numbers (such as ¼), nor any which are in all caps (Þ).

I'm attaching a patch which corrects this.

Attachments (1)

functions-formatting.patch (1.2 KB) - added by Kafkaesqui 16 years ago.
Corrects ampersand conversion preg_replace lines to account for certain character entities

Download all attachments as: .zip

Change History (4)

@Kafkaesqui
16 years ago

Corrects ampersand conversion preg_replace lines to account for certain character entities

#1 @matt
16 years ago

  • Milestone set to 1.5.2

#2 @matt
16 years ago

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

(In [3056]) Account for more letter entities, fixes #1431

#3 @(none)
15 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.