TinyMCE: fix the regexp used to protect line breaks inside script and pre tags to match `<script>` that load external scripts.

Fixes #34760.
Built from https://develop.svn.wordpress.org/trunk@35727


git-svn-id: http://core.svn.wordpress.org/trunk@35691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-11-22 19:13:28 +00:00
parent ae04eba0b6
commit 91759029e9
3 changed files with 3 additions and 3 deletions

View File

@ -236,7 +236,7 @@
// Protect pre|script tags
if ( text.indexOf( '<pre' ) !== -1 || text.indexOf( '<script' ) !== -1 ) {
preserve_linebreaks = true;
text = text.replace( /<(pre|script)[^>]*>[\s\S]+?<\/\1>/g, function( a ) {
text = text.replace( /<(pre|script)[^>]*>[\s\S]*?<\/\1>/g, function( a ) {
return a.replace( /\n/g, '<wp-line-break>' );
});
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta4-35726';
$wp_version = '4.4-beta4-35727';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.