WordPress.org

Make WordPress Core

Ticket #22823: 22823.diff

File 22823.diff, 979 bytes (added by nacin, 5 years ago)
  • wp-includes/formatting.php

     
    8282                        $dynamic[ '/(\s|\A|[([{<]|")\'/'       ] = '$1' . $opening_single_quote; // opening single quote, even after (, {, <, [
    8383                if ( '"' != $double_prime )
    8484                        $dynamic[ '/(\d)"/'                    ] = '$1' . $double_prime; // 9" (double prime)
     85                if ( "'" != $apos )
     86                        $dynamic[ '/(\S)\'([^\'\s])/'          ] = '$1' . $apos . '$2'; // apostrophe in a word
    8587                if ( "'" != $prime )
    8688                        $dynamic[ '/(\d)\'/'                   ] = '$1' . $prime; // 9' (prime)
    87                 if ( "'" != $apos )
    88                         $dynamic[ '/(\S)\'([^\'\s])/'          ] = '$1' . $apos . '$2'; // apostrophe in a word
    8989                if ( '"' != $opening_quote )
    9090                        $dynamic[ '/(\s|\A|[([{<])"(?!\s)/'    ] = '$1' . $opening_quote . '$2'; // opening double quote, even after (, {, <, [
    9191                if ( '"' != $closing_quote )