WordPress.org

Make WordPress Core

Ticket #4539: formatting-01.patch

File formatting-01.patch, 733 bytes (added by xibe, 6 years ago)

"like" 42" patch.

  • wp-includes/formatting.php

     
    8080                }
    8181                if ( "'" != $opening_single_quote )
    8282                        $dynamic[ '/(\s|\A|[([{<]|")\'/'       ] = '$1' . $opening_single_quote; // opening single quote, even after (, {, <, [
     83                if ( '"' != $closing_quote )
     84                        $dynamic[ '/"(.*\d)"/'                    ] = $opening_quote . '$1' . $closing_quote; // in situations when the quoted text ends with a decimal digit, "like so: 42"
    8385                if ( '"' != $double_prime )
    8486                        $dynamic[ '/(\d)"/'                    ] = '$1' . $double_prime; // 9" (double prime)
    8587                if ( "'" != $prime )