WordPress.org

Make WordPress Core

Ticket #4539: fomatting.diff

File fomatting.diff, 1.7 KB (added by mrmist, 10 years ago)

wp-include formatting.php

  • .php

    old new  
    4444                $cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause");
    4545        }
    4646
    47         $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '``', '\'s', '\'\'', ' (tm)'), $cockney);
    48         $static_replacements = array_merge(array('—', ' — ', '–', 'xn--', '…', '“', '’s', '”', ' ™'), $cockneyreplace);
     47        $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '``', '\'\'', ' (tm)'), $cockney);
     48        $static_replacements = array_merge(array('—', ' — ', '–', 'xn--', '…', '“', '”', ' ™'), $cockneyreplace);
    4949
    50         $dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/(\s|\A|")\'/', '/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/', '/(\s|\A)"(?!\s)/', '/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/', '/(\d+)x(\d+)/');
    51         $dynamic_replacements = array('’$1','$1‘', '$1″', '$1′', '$1’$2', '$1“$2', '”$1', '’$1', '$1×$2');
     50        $dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/\'(\d+)/', '/(\s|\A|")\'/', '/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/', '/(\s|\A)"(?!\s)/', '/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/', '/(\d+)x(\d+)/');
     51        $dynamic_replacements = array('’$1', '’$1', '$1‘', '$1″', '$1′', '$1’$2', '$1“$2', '”$1', '’$1', '$1×$2');
    5252
    5353        for ( $i = 0; $i < $stop; $i++ ) {
    5454                $curl = $textarr[$i];