WordPress.org

Make WordPress Core

Changeset 16378


Ignore:
Timestamp:
11/15/2010 08:52:36 AM (9 years ago)
Author:
westi
Message:

Fix regression in wptexturize with single quotes when used for contraction. See #15241 props norbertm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r16340 r16378  
    6262            '/\'([^\']*)\'([^\']*)\'/' => '‘$1’$2’', // 'test's'
    6363           
     64            '/(\w)\'(\w)/' => '$1’$2', // test's
     65
    6466            '/\'([^\']*)\'/' => '‘$1’', // 'asd'
    6567            '/"([^"]*)"/' => $opening_quote . '$1' . $closing_quote, // "qwe"
    66            
    67             '/(\w)\'(\w)/' => '$1’$2', // test's
    6868           
    6969            '/(\d)"/' => '$1″', // 9" -> 9″
Note: See TracChangeset for help on using the changeset viewer.