Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20018 closed defect (bug) (fixed)

Typo in new wptexturize() pattern

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


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
11 years ago

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

In [19907]:

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

#2 @nacin
11 years ago

Nice catch, thanks.

#3 @SergeyBiryukov
11 years ago

  • Component changed from General to Formatting
  • Milestone changed from Awaiting Review to 3.4

#4 @nacin
11 years ago

Everything passed the unit tests after r19795, but the ones that maintained whitespace were not tested for that. I added, which fails before [19907] and passes now.

Note: See TracTickets for help on using tickets.