Changeset 35709
- Timestamp:
- 11/19/2015 11:31:00 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r35689 r35709 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' ); -
trunk/src/wp-includes/formatting.php
r35555 r35709 277 277 $curl = preg_replace( '/\b(\d(?(?<=0)[\d\.,]+|[\d\.,]*))x(\d[\d\.,]*)\b/', '$1×$2', $curl ); 278 278 } 279 } 280 } 281 $text = implode( '', $textarr ); 282 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 ); 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 ); 282 } 283 } 284 285 return implode( '', $textarr ); 285 286 } 286 287 -
trunk/tests/phpunit/tests/formatting/WPTexturize.php
r34761 r35709 1268 1268 ), 1269 1269 array( 1270 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a> ]',1271 '[ photos by <a href="http://example.com/?a[]=1& #038;a[]=2"> thisguy </a> ]',1272 ), 1273 array( 1274 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a>]',1275 '[photos by <a href="http://example.com/?a[]=1& #038;a[]=2"> thisguy </a>]',1270 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a> ]', 1271 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a> ]', 1272 ), 1273 array( 1274 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a>]', 1275 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy & that guy </a>]', 1276 1276 ), 1277 1277 array(
Note: See TracChangeset
for help on using the changeset viewer.