Make WordPress Core


Ignore:
Timestamp:
11/10/2003 11:08:59 PM (22 years ago)
Author:
mikelittle
Message:

Fix for failing to recognise and replace double quotes at the end of a word when followed by punctuation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2functions.php

    r525 r534  
    4343            $curl = preg_replace("/(\d+)'/", "$1′", $curl);
    4444            $curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl);
    45             $curl = preg_replace('/"([\s.]|\Z)/', '”$1', $curl);
    46             $curl = preg_replace('/(\s|\A)"/', '$1“', $curl);
     45            $curl = preg_replace('/"([\s.,!?;:&\']|\Z)/', '”$1', $curl);
     46            $curl = preg_replace('/(\s|\A)"/', '$1“', $curl);
    4747            $curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl);
    4848            $curl = preg_replace("/\(tm\)/i", '™', $curl);
     
    6363    }
    6464    return $output;
    65     }
     65}
    6666
    6767function wpautop($pee, $br=1) {
     
    13941394        $functions = $b2_filter[$tag];
    13951395        foreach($functions as $function) {
     1396            //error_log("apply_filters #1 applying filter $function");
    13961397            $string = $function($string);
    13971398        }
Note: See TracChangeset for help on using the changeset viewer.