Make WordPress Core

Ticket #16957: 16957-quote-fix.diff

File 16957-quote-fix.diff, 750 bytes (added by aliso, 13 years ago)

Corrects opening double quote after non-breaking space

  • formatting.php

     
    8787                if ( "'" != $apos )
    8888                        $dynamic[ '/(\S)\'([^\'\s])/'          ] = '$1' . $apos . '$2'; // apostrophe in a word
    8989                if ( '"' != $opening_quote )
    90                         $dynamic[ '/(\s|\A|[([{<])"(?!\s)/'    ] = '$1' . $opening_quote . '$2'; // opening double quote, even after (, {, <, [
     90                        $dynamic[ '/(\s|\A|[([{<]|&nbsp;)"(?!\s)/' ] = '$1' . $opening_quote . '$2'; // opening double quote, even after (, {, <, [, &nbsp;
    9191                if ( '"' != $closing_quote )
    9292                        $dynamic[ '/"(\s|\S|\Z)/'              ] = $closing_quote . '$1'; // closing double quote
    9393                if ( "'" != $closing_single_quote )