summaryrefslogtreecommitdiffstats
path: root/wp-includes/wp-diff.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-07 17:16:43 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-07 17:16:43 +0000
commit6081c995737157ea06244568c48570148b08258f (patch)
treec74a90925305ffff924a8261efd1d92265e3146c /wp-includes/wp-diff.php
parent62cf455ec3bed02f518048f8ddca91a23e6b95a4 (diff)
downloadwordpress-mu-6081c995737157ea06244568c48570148b08258f.tar.gz
wordpress-mu-6081c995737157ea06244568c48570148b08258f.tar.xz
wordpress-mu-6081c995737157ea06244568c48570148b08258f.zip
WP Merge to revision 8266
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1355 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wp-diff.php')
-rw-r--r--wp-includes/wp-diff.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/wp-diff.php b/wp-includes/wp-diff.php
index f60614a..77f3258 100644
--- a/wp-includes/wp-diff.php
+++ b/wp-includes/wp-diff.php
@@ -308,7 +308,7 @@ class WP_Text_Diff_Renderer_inline extends Text_Diff_Renderer_inline {
function _splitOnWords($string, $newlineEscape = "\n") {
$string = str_replace("\0", '', $string);
- $words = preg_split( '/([^\w])/', $string, -1, PREG_SPLIT_DELIM_CAPTURE );
+ $words = preg_split( '/([^\w])/u', $string, -1, PREG_SPLIT_DELIM_CAPTURE );
$words = str_replace( "\n", $newlineEscape, $words );
return $words;
}