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
This commit is contained in:
parent
51f24b8597
commit
1549abf703
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user