Ticket #34698: 34698.diff
| File 34698.diff, 1.5 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/default-filters.php
131 131 132 132 add_filter( 'the_content', 'wptexturize' ); 133 133 add_filter( 'the_content', 'convert_smilies' ); 134 add_filter( 'the_content', 'convert_chars' );135 134 add_filter( 'the_content', 'wpautop' ); 136 135 add_filter( 'the_content', 'shortcode_unautop' ); 137 136 add_filter( 'the_content', 'prepend_attachment' ); -
src/wp-includes/formatting.php
276 276 // Searching for a digit is 10 times more expensive than for the x, so we avoid doing this one! 277 277 $curl = preg_replace( '/\b(\d(?(?<=0)[\d\.,]+|[\d\.,]*))x(\d[\d\.,]*)\b/', '$1×$2', $curl ); 278 278 } 279 280 // Replace each & with & unless it already looks like an entity. 281 $curl = preg_replace( '/&(?!#(?:\d+|x[a-f0-9]+);|[a-z1-4]{1,8};)/i', '&', $curl ); 279 282 } 280 283 } 281 $text = implode( '', $textarr );282 284 283 // Replace each & with & unless it already looks like an entity. 284 return preg_replace( '/&(?!#(?:\d+|x[a-f0-9]+);|[a-z1-4]{1,8};)/i', '&', $text ); 285 return implode( '', $textarr ); 285 286 } 286 287 287 288 /**