Ticket #19550: 19550.diff
File 19550.diff, 1.1 KB (added by , 12 years ago) |
---|
-
wp-includes/formatting.php
28 28 */ 29 29 function wptexturize($text) { 30 30 global $wp_cockneyreplace; 31 static $opening_quote, $closing_quote, $en_dash, $em_dash, $default_no_texturize_tags, $default_no_texturize_shortcodes, $static_characters, $static_replacements, $dynamic_characters, $dynamic_replacements ;31 static $opening_quote, $closing_quote, $en_dash, $em_dash, $default_no_texturize_tags, $default_no_texturize_shortcodes, $static_characters, $static_replacements, $dynamic_characters, $dynamic_replacements, $run_texturize = true; 32 32 33 if ( false === $run_texturize ) 34 return $text; 35 33 36 // No need to set up these static variables more than once 34 37 if ( empty( $opening_quote ) ) { 38 $run_texturize = apply_filters( 'run_wptexturize', $run_texturize ); 39 35 40 /* translators: opening curly quote */ 36 41 $opening_quote = _x('“', 'opening curly quote'); 37 42 /* translators: closing curly quote */