Changeset 35709 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 11/19/2015 11:31:00 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.