Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1431 closed defect (bug) (fixed)

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

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

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 21 years ago.
Corrects ampersand conversion preg_replace lines to account for certain character entities

Download all attachments as: .zip

Change History (4)

@Kafkaesqui
21 years ago

Corrects ampersand conversion preg_replace lines to account for certain character entities

#1 @matt
21 years ago

  • Milestone → 1.5.2

#2 @matt
21 years ago

  • Resolution → fixed
  • Status new → closed

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

#3 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.