WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/19/2005 07:11:03 PM (13 years ago)
Author:
ryan
Message:

Wrong PCRE flag break TinyMCE on lower PHP versions. fixes #1913

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/tiny_mce_gzip.php

    r3003 r3162  
    2323            return $text;
    2424        } else {
    25             $search1 = "/^tinyMCELang\\[(['\"])(.*)\\1\]( ?= ?)(['\"])(.*)\\4/uem";
     25            $search1 = "/^tinyMCELang\\[(['\"])(.*)\\1\]( ?= ?)(['\"])(.*)\\4/Uem";
    2626            $replace1 = "'tinyMCELang[\\1\\2\\1]\\3'.stripslashes('\\4').__('\\5').stripslashes('\\4')";
    2727
    28             $search2 = "/ : (['\"])(.*)\\1/uem";
     28            $search2 = "/ : (['\"])(.*)\\1/Uem";
    2929            $replace2 = "' : '.stripslashes('\\1').__('\\2').stripslashes('\\1')";
    3030
Note: See TracChangeset for help on using the changeset viewer.