Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20018 closed defect (bug) (fixed)

Typo in new wptexturize() pattern

Reported by: danielbachhuber Owned by: nacin
Priority: normal Milestone: 3.4
Component: Formatting Version:
Severity: normal Keywords:
Cc: Focuses:

Description

In r19795, the following:

$dynamic[ '/\'([\s.]|\Z)/' ] = $closing_single_quote . '$2'; // closing single quote

should instead be:

$dynamic[ '/\'([\s.]|\Z)/' ] = $closing_single_quote . '$1'; // closing single quote

The former removes the space from after the new pretty single quote

Change History (4)

#1 @nacin
15 years ago

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

In [19907]:

Use correct reference in regex. props danielbachhuber, fixes #20018.

#2 @nacin
15 years ago

Nice catch, thanks.

#3 @SergeyBiryukov
15 years ago

  • Component General → Formatting
  • Milestone Awaiting Review → 3.4

#4 @nacin
15 years ago

Everything passed the unit tests after r19795, but the ones that maintained whitespace were not tested for that. I added ​http://unit-tests.trac.wordpress.org/changeset/526, which fails before [19907] and passes now.

Note: See TracTickets for help on using tickets.