Ticket #19550: patch-wptexturize.patch
File patch-wptexturize.patch, 959 bytes (added by , 12 years ago) |
---|
-
wp-includes/formatting.php
21 21 * Code within certain html blocks are skipped. 22 22 * 23 23 * @since 0.71 24 * @uses apply_filters() Calls 'do_texturize' hook on boolean TRUE, context is raw text. 24 25 * @uses $wp_cockneyreplace Array of formatted entities for certain common phrases 25 26 * 26 27 * @param string $text The text to be formatted 27 28 * @return string The string replaced with html entities 28 29 */ 29 30 function wptexturize($text) { 31 $do_texturize = apply_filters( 'do_texturize', TRUE, $text ); 32 if ( ! $do_texturize ) 33 return $text; 34 30 35 global $wp_cockneyreplace; 31 36 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; 32 37