From 1549abf703991f26f48cb5667a086fa482f321e9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 19 Nov 2005 19:11:03 +0000 Subject: [PATCH] Wrong PCRE flag break TinyMCE on lower PHP versions. fixes #1913 git-svn-id: https://develop.svn.wordpress.org/trunk@3162 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/tiny_mce_gzip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/tinymce/tiny_mce_gzip.php b/wp-includes/js/tinymce/tiny_mce_gzip.php index 0955bc207f..124ca1526e 100644 --- a/wp-includes/js/tinymce/tiny_mce_gzip.php +++ b/wp-includes/js/tinymce/tiny_mce_gzip.php @@ -22,10 +22,10 @@ if ( ! function_exists('__') ) { return $text; } else { - $search1 = "/^tinyMCELang\\[(['\"])(.*)\\1\]( ?= ?)(['\"])(.*)\\4/uem"; + $search1 = "/^tinyMCELang\\[(['\"])(.*)\\1\]( ?= ?)(['\"])(.*)\\4/Uem"; $replace1 = "'tinyMCELang[\\1\\2\\1]\\3'.stripslashes('\\4').__('\\5').stripslashes('\\4')"; - $search2 = "/ : (['\"])(.*)\\1/uem"; + $search2 = "/ : (['\"])(.*)\\1/Uem"; $replace2 = "' : '.stripslashes('\\1').__('\\2').stripslashes('\\1')"; $search = array($search1, $search2);