- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-text-diff-renderer-inline.php
r38352 r42343 24 24 * @return string 25 25 */ 26 public function _splitOnWords( $string, $newlineEscape = "\n") {27 $string = str_replace( "\0", '', $string);26 public function _splitOnWords( $string, $newlineEscape = "\n" ) { 27 $string = str_replace( "\0", '', $string ); 28 28 $words = preg_split( '/([^\w])/u', $string, -1, PREG_SPLIT_DELIM_CAPTURE ); 29 29 $words = str_replace( "\n", $newlineEscape, $words );
Note: See TracChangeset
for help on using the changeset viewer.