Make WordPress Core

Ticket #26850: 26850.3.diff

File 26850.3.diff, 600 bytes (added by yurivictor, 11 years ago)

per nacin

  • formatting.php

     
    7676                $dynamic = array();
    7777                if ( "'" != $apos ) {
    7878                        $dynamic[ '/\'(\d\d(?:’|\')?s)/' ] = $apos . '$1'; // '99's
    79                         $dynamic[ '/\'(\d)/'                   ] = $apos . '$1'; // '99
     79                        $dynamic[ '/\'((\d\d)(?!\d))/'         ] = $apos . '$1'; // '99
    8080                }
    8181                if ( "'" != $opening_single_quote )
    8282                        $dynamic[ '/(\s|\A|[([{<]|")\'/'       ] = '$1' . $opening_single_quote; // opening single quote, even after (, {, <, [