WordPress.org

Make WordPress Core

Ticket #8323: 8323.diff

File 8323.diff, 988 bytes (added by jacobsantos, 5 years ago)

diff of above file.

  • formatting.php

     
    4545        } 
    4646 
    4747        $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '``', '\'s', '\'\'', ' (tm)'), $cockney); 
    48         $static_replacements = array_merge(array('—', ' — ', '–', 'xn--', '…', '“', '’s', '”', ' ™'), $cockneyreplace); 
     48        $static_replacements = array_merge(array('—', ' – ', '–', 'xn--', '…', '“', '’s', '”', ' ™'), $cockneyreplace); 
    4949 
    5050        $dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/(\s|\A|")\'/', '/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/', '/(\s|\A)"(?!\s)/', '/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/', '/(\d+)x(\d+)/'); 
    5151        $dynamic_replacements = array('’$1','$1‘', '$1″', '$1′', '$1’$2', '$1“$2', '”$1', '’$1', '$1×$2');