<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[19319] trunk: mode == 'tmce' || mode == 'tinymce', see #17144</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/19319">19319</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-11-17 15:50:01 +0000 (Thu, 17 Nov 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>mode == 'tmce' || mode == 'tinymce', see <a href="http://core.trac.wordpress.org/ticket/17144">#17144</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjseditordevjs">trunk/wp-admin/js/editor.dev.js</a></li>
<li><a href="#trunkwpadminjseditorjs">trunk/wp-admin/js/editor.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjseditordevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/editor.dev.js (19318 => 19319)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/editor.dev.js        2011-11-17 12:36:51 UTC (rev 19318)
+++ trunk/wp-admin/js/editor.dev.js        2011-11-17 15:50:01 UTC (rev 19319)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx">                                 mode = 'tmce';
</span><span class="cx">                 } 
</span><span class="cx"> 
</span><del>-                if ( 'tmce' == mode ) {
</del><ins>+                if ( 'tmce' == mode || 'tinymce' == mode ) {
</ins><span class="cx">                         if ( ed &amp;&amp; ! ed.isHidden() )
</span><span class="cx">                                 return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjseditorjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/editor.js (19318 => 19319)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/editor.js        2011-11-17 12:36:51 UTC (rev 19318)
+++ trunk/wp-admin/js/editor.js        2011-11-17 15:50:01 UTC (rev 19319)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var switchEditors={switchto:function(b){var c=b.id,a=c.length,e=c.substr(0,a-5),d=c.substr(a-4);this.go(e,d)},go:function(g,f){g=g||&quot;content&quot;;f=f||&quot;toggle&quot;;var c=this,b=tinyMCE.get(g),a,d,e=tinymce.DOM;a=&quot;wp-&quot;+g+&quot;-wrap&quot;;d=e.get(g);if(&quot;toggle&quot;==f){if(b&amp;&amp;!b.isHidden()){f=&quot;html&quot;}else{f=&quot;tmce&quot;}}if(&quot;tmce&quot;==f){if(b&amp;&amp;!b.isHidden()){return false}if(typeof(QTags)!=&quot;undefined&quot;){QTags.closeAllTags(g)}if(tinyMCEPreInit.mceInit[g]&amp;&amp;tinyMCEPreInit.mceInit[g].wpautop){d.value=c.wpautop(d.value)}if(b){b.show()}else{b=new tinymce.Editor(g,tinyMCEPreInit.mceInit[g]);b.render()}e.removeClass(a,&quot;html-active&quot;);e.addClass(a,&quot;tmce-active&quot;);setUserSetting(&quot;editor&quot;,&quot;tinymce&quot;)}else{if(&quot;html&quot;==f){if(b&amp;&amp;b.isHidden()){return false}if(b){d.style.height=b.getContentAreaContainer().offsetHeight+20+&quot;px&quot;;b.hide()}e.re
 moveClass(a,&quot;tmce-active&quot;);e.addClass(a,&quot;html-active&quot;);setUserSetting(&quot;editor&quot;,&quot;html&quot;)}}return false},_wp_Nop:function(b){var c,a;if(b.indexOf(&quot;&lt;pre&quot;)!=-1||b.indexOf(&quot;&lt;script&quot;)!=-1){b=b.replace(/&lt;(pre|script)[^&gt;]*&gt;[\s\S]+?&lt;\/\1&gt;/g,function(d){d=d.replace(/&lt;br ?\/?&gt;(\r\n|\n)?/g,&quot;&lt;wp_temp&gt;&quot;);return d.replace(/&lt;\/?p( [^&gt;]*)?&gt;(\r\n|\n)?/g,&quot;&lt;wp_temp&gt;&quot;)})}c=&quot;blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|div|h[1-6]|p|fieldset&quot;;b=b.replace(new RegExp(&quot;\\s*&lt;/(&quot;+c+&quot;)&gt;\\s*&quot;,&quot;g&quot;),&quot;&lt;/$1&gt;\n&quot;);b=b.replace(new RegExp(&quot;\\s*&lt;((?:&quot;+c+&quot;)(?: [^&gt;]*)?)&gt;&quot;,&quot;g&quot;),&quot;\n&lt;$1&gt;&quot;);b=b.replace(/(&lt;p [^&gt;]+&gt;.*?)&lt;\/p&gt;/g,&quot;$1&lt;/p#&gt;&quot;);b=b.replace(/&lt;div( [^&gt;]*)?&gt;\s*&lt;p&gt;/gi,&quot;&lt;div$1&gt;\n\n&quot;);b=b.replace(/\s*&lt;p&gt
 ;/gi,&quot;&quot;);b=b.replace(/\s*&lt;\/p&gt;\s*/gi,&quot;\n\n&quot;);b=b.replace(/\n[\s\u00a0]+\n/g,&quot;\n\n&quot;);b=b.replace(/\s*&lt;br ?\/?&gt;\s*/gi,&quot;\n&quot;);b=b.replace(/\s*&lt;div/g,&quot;\n&lt;div&quot;);b=b.replace(/&lt;\/div&gt;\s*/g,&quot;&lt;/div&gt;\n&quot;);b=b.replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,&quot;\n\n[caption$1[/caption]\n\n&quot;);b=b.replace(/caption\]\n\n+\[caption/g,&quot;caption]\n\n[caption&quot;);a=&quot;blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|h[1-6]|pre|fieldset&quot;;b=b.replace(new RegExp(&quot;\\s*&lt;((?:&quot;+a+&quot;)(?: [^&gt;]*)?)\\s*&gt;&quot;,&quot;g&quot;),&quot;\n&lt;$1&gt;&quot;);b=b.replace(new RegExp(&quot;\\s*&lt;/(&quot;+a+&quot;)&gt;\\s*&quot;,&quot;g&quot;),&quot;&lt;/$1&gt;\n&quot;);b=b.replace(/&lt;li([^&gt;]*)&gt;/g,&quot;\t&lt;li$1&gt;&quot;);if(b.indexOf(&quot;&lt;hr&quot;)!=-1){b=b.replace(/\s*&lt;hr( [^&gt;]*)?&gt;\s*/g,&quot;\n\n&lt;hr$1&gt;\n\n&quot;)}if(b.indexOf(&quot;&lt;object&q
 uot;)!=-1){b=b.replace(/&lt;object[\s\S]+?&lt;\/object&gt;/g,function(d){return d.replace(/[\r\n]+/g,&quot;&quot;)})}b=b.replace(/&lt;\/p#&gt;/g,&quot;&lt;/p&gt;\n&quot;);b=b.replace(/\s*(&lt;p [^&gt;]+&gt;[\s\S]*?&lt;\/p&gt;)/g,&quot;\n$1&quot;);b=b.replace(/^\s+/,&quot;&quot;);b=b.replace(/[\s\u00a0]+$/,&quot;&quot;);b=b.replace(/&lt;wp_temp&gt;/g,&quot;\n&quot;);return b},_wp_Autop:function(a){var b=&quot;table|thead|tfoot|tbody|tr|td|th|caption|col|colgroup|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|fieldset|legend|hr|noscript|menu|samp|header|footer|article|section|hgroup|nav|aside|details|summary&quot;;if(a.indexOf(&quot;&lt;object&quot;)!=-1){a=a.replace(/&lt;object[\s\S]+?&lt;\/object&gt;/g,function(c){return c.replace(/[\r\n]+/g,&quot;&quot;)})}a=a.replace(/&lt;[^&lt;&gt;]+&gt;/g,function(c){return c.replace(/[\r\n]+/g,&quot; &quot;)});if(a.indexOf(&quot;&lt;pre&quot;)!=-1||a.indexOf(&quot;&lt;script&quot;)!=-1){a=a.replace(/&lt;(pre|scri
 pt)[^&gt;]*&gt;[\s\S]+?&lt;\/\1&gt;/g,function(c){return c.replace(/(\r\n|\n)/g,&quot;&lt;wp_temp_br&gt;&quot;)})}a=a+&quot;\n\n&quot;;a=a.replace(/&lt;br \/&gt;\s*&lt;br \/&gt;/gi,&quot;\n\n&quot;);a=a.replace(new RegExp(&quot;(&lt;(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)&quot;,&quot;gi&quot;),&quot;\n$1&quot;);a=a.replace(new RegExp(&quot;(&lt;/(?:&quot;+b+&quot;)&gt;)&quot;,&quot;gi&quot;),&quot;$1\n\n&quot;);a=a.replace(/&lt;hr( [^&gt;]*)?&gt;/gi,&quot;&lt;hr$1&gt;\n\n&quot;);a=a.replace(/\r\n|\r/g,&quot;\n&quot;);a=a.replace(/\n\s*\n+/g,&quot;\n\n&quot;);a=a.replace(/([\s\S]+?)\n\n/g,&quot;&lt;p&gt;$1&lt;/p&gt;\n&quot;);a=a.replace(/&lt;p&gt;\s*?&lt;\/p&gt;/gi,&quot;&quot;);a=a.replace(new RegExp(&quot;&lt;p&gt;\\s*(&lt;/?(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)\\s*&lt;/p&gt;&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(/&lt;p&gt;(&lt;li.+?)&lt;\/p&gt;/gi,&quot;$1&quot;);a=a.replace(/&lt;p&gt;\s*&lt;blockquote([^&gt;]*)&gt;/gi,&quot;&lt;blockquote$1&gt;&lt;p&gt;&quot;)
 ;a=a.replace(/&lt;\/blockquote&gt;\s*&lt;\/p&gt;/gi,&quot;&lt;/p&gt;&lt;/blockquote&gt;&quot;);a=a.replace(new RegExp(&quot;&lt;p&gt;\\s*(&lt;/?(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(new RegExp(&quot;(&lt;/?(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)\\s*&lt;/p&gt;&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(/\s*\n/gi,&quot;&lt;br /&gt;\n&quot;);a=a.replace(new RegExp(&quot;(&lt;/?(?:&quot;+b+&quot;)[^&gt;]*&gt;)\\s*&lt;br /&gt;&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(/&lt;br \/&gt;(\s*&lt;\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)&gt;)/gi,&quot;$1&quot;);a=a.replace(/(?:&lt;p&gt;|&lt;br ?\/?&gt;)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:&lt;\/p&gt;|&lt;br ?\/?&gt;)*/gi,&quot;[caption$1[/caption]&quot;);a=a.replace(/(&lt;(?:div|th|td|form|fieldset|dd)[^&gt;]*&gt;)(.*?)&lt;\/p&gt;/g,function(e,d,f){if(f.match(/&lt;p( [^&gt;]*)?&gt;/)){return e}return d+&quot;&lt;p&gt;&quot;+f+&quot;&lt;/p&gt;&quot;});a=a.replace(/&lt;wp_
 temp_br&gt;/g,&quot;\n&quot;);return a},pre_wpautop:function(b){var a=this,d={o:a,data:b,unfiltered:b},c=typeof(jQuery)!=&quot;undefined&quot;;if(c){jQuery(&quot;body&quot;).trigger(&quot;beforePreWpautop&quot;,[d])}d.data=a._wp_Nop(d.data);if(c){jQuery(&quot;body&quot;).trigger(&quot;afterPreWpautop&quot;,[d])}return d.data},wpautop:function(b){var a=this,d={o:a,data:b,unfiltered:b},c=typeof(jQuery)!=&quot;undefined&quot;;if(c){jQuery(&quot;body&quot;).trigger(&quot;beforeWpautop&quot;,[d])}d.data=a._wp_Autop(d.data);if(c){jQuery(&quot;body&quot;).trigger(&quot;afterWpautop&quot;,[d])}return d.data}};
</del><span class="cx">\ No newline at end of file
</span><ins>+var switchEditors={switchto:function(b){var c=b.id,a=c.length,e=c.substr(0,a-5),d=c.substr(a-4);this.go(e,d)},go:function(g,f){g=g||&quot;content&quot;;f=f||&quot;toggle&quot;;var c=this,b=tinyMCE.get(g),a,d,e=tinymce.DOM;a=&quot;wp-&quot;+g+&quot;-wrap&quot;;d=e.get(g);if(&quot;toggle&quot;==f){if(b&amp;&amp;!b.isHidden()){f=&quot;html&quot;}else{f=&quot;tmce&quot;}}if(&quot;tmce&quot;==f||&quot;tinymce&quot;==f){if(b&amp;&amp;!b.isHidden()){return false}if(typeof(QTags)!=&quot;undefined&quot;){QTags.closeAllTags(g)}if(tinyMCEPreInit.mceInit[g]&amp;&amp;tinyMCEPreInit.mceInit[g].wpautop){d.value=c.wpautop(d.value)}if(b){b.show()}else{b=new tinymce.Editor(g,tinyMCEPreInit.mceInit[g]);b.render()}e.removeClass(a,&quot;html-active&quot;);e.addClass(a,&quot;tmce-active&quot;);setUserSetting(&quot;editor&quot;,&quot;tinymce&quot;)}else{if(&quot;html&quot;==f){if(b&amp;&amp;b.isHidden()){return false}if(b){d.style.height=b.getContentAreaContainer().offsetHeight+20+&quo
 t;px&quot;;b.hide()}e.removeClass(a,&quot;tmce-active&quot;);e.addClass(a,&quot;html-active&quot;);setUserSetting(&quot;editor&quot;,&quot;html&quot;)}}return false},_wp_Nop:function(b){var c,a;if(b.indexOf(&quot;&lt;pre&quot;)!=-1||b.indexOf(&quot;&lt;script&quot;)!=-1){b=b.replace(/&lt;(pre|script)[^&gt;]*&gt;[\s\S]+?&lt;\/\1&gt;/g,function(d){d=d.replace(/&lt;br ?\/?&gt;(\r\n|\n)?/g,&quot;&lt;wp_temp&gt;&quot;);return d.replace(/&lt;\/?p( [^&gt;]*)?&gt;(\r\n|\n)?/g,&quot;&lt;wp_temp&gt;&quot;)})}c=&quot;blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|div|h[1-6]|p|fieldset&quot;;b=b.replace(new RegExp(&quot;\\s*&lt;/(&quot;+c+&quot;)&gt;\\s*&quot;,&quot;g&quot;),&quot;&lt;/$1&gt;\n&quot;);b=b.replace(new RegExp(&quot;\\s*&lt;((?:&quot;+c+&quot;)(?: [^&gt;]*)?)&gt;&quot;,&quot;g&quot;),&quot;\n&lt;$1&gt;&quot;);b=b.replace(/(&lt;p [^&gt;]+&gt;.*?)&lt;\/p&gt;/g,&quot;$1&lt;/p#&gt;&quot;);b=b.replace(/&lt;div( [^&gt;]*)?&gt;\s*&lt;p&gt;/gi,&quot;&lt;div$1&gt;\n\n&quot;);
 b=b.replace(/\s*&lt;p&gt;/gi,&quot;&quot;);b=b.replace(/\s*&lt;\/p&gt;\s*/gi,&quot;\n\n&quot;);b=b.replace(/\n[\s\u00a0]+\n/g,&quot;\n\n&quot;);b=b.replace(/\s*&lt;br ?\/?&gt;\s*/gi,&quot;\n&quot;);b=b.replace(/\s*&lt;div/g,&quot;\n&lt;div&quot;);b=b.replace(/&lt;\/div&gt;\s*/g,&quot;&lt;/div&gt;\n&quot;);b=b.replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,&quot;\n\n[caption$1[/caption]\n\n&quot;);b=b.replace(/caption\]\n\n+\[caption/g,&quot;caption]\n\n[caption&quot;);a=&quot;blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|h[1-6]|pre|fieldset&quot;;b=b.replace(new RegExp(&quot;\\s*&lt;((?:&quot;+a+&quot;)(?: [^&gt;]*)?)\\s*&gt;&quot;,&quot;g&quot;),&quot;\n&lt;$1&gt;&quot;);b=b.replace(new RegExp(&quot;\\s*&lt;/(&quot;+a+&quot;)&gt;\\s*&quot;,&quot;g&quot;),&quot;&lt;/$1&gt;\n&quot;);b=b.replace(/&lt;li([^&gt;]*)&gt;/g,&quot;\t&lt;li$1&gt;&quot;);if(b.indexOf(&quot;&lt;hr&quot;)!=-1){b=b.replace(/\s*&lt;hr( [^&gt;]*)?&gt;\s*/g,&quot;\n\n&lt;hr$1&gt;\n\n&quot;)}if(b.in
 dexOf(&quot;&lt;object&quot;)!=-1){b=b.replace(/&lt;object[\s\S]+?&lt;\/object&gt;/g,function(d){return d.replace(/[\r\n]+/g,&quot;&quot;)})}b=b.replace(/&lt;\/p#&gt;/g,&quot;&lt;/p&gt;\n&quot;);b=b.replace(/\s*(&lt;p [^&gt;]+&gt;[\s\S]*?&lt;\/p&gt;)/g,&quot;\n$1&quot;);b=b.replace(/^\s+/,&quot;&quot;);b=b.replace(/[\s\u00a0]+$/,&quot;&quot;);b=b.replace(/&lt;wp_temp&gt;/g,&quot;\n&quot;);return b},_wp_Autop:function(a){var b=&quot;table|thead|tfoot|tbody|tr|td|th|caption|col|colgroup|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|fieldset|legend|hr|noscript|menu|samp|header|footer|article|section|hgroup|nav|aside|details|summary&quot;;if(a.indexOf(&quot;&lt;object&quot;)!=-1){a=a.replace(/&lt;object[\s\S]+?&lt;\/object&gt;/g,function(c){return c.replace(/[\r\n]+/g,&quot;&quot;)})}a=a.replace(/&lt;[^&lt;&gt;]+&gt;/g,function(c){return c.replace(/[\r\n]+/g,&quot; &quot;)});if(a.indexOf(&quot;&lt;pre&quot;)!=-1||a.indexOf(&quot;&lt;script&quot;)!=-1){a=
 a.replace(/&lt;(pre|script)[^&gt;]*&gt;[\s\S]+?&lt;\/\1&gt;/g,function(c){return c.replace(/(\r\n|\n)/g,&quot;&lt;wp_temp_br&gt;&quot;)})}a=a+&quot;\n\n&quot;;a=a.replace(/&lt;br \/&gt;\s*&lt;br \/&gt;/gi,&quot;\n\n&quot;);a=a.replace(new RegExp(&quot;(&lt;(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)&quot;,&quot;gi&quot;),&quot;\n$1&quot;);a=a.replace(new RegExp(&quot;(&lt;/(?:&quot;+b+&quot;)&gt;)&quot;,&quot;gi&quot;),&quot;$1\n\n&quot;);a=a.replace(/&lt;hr( [^&gt;]*)?&gt;/gi,&quot;&lt;hr$1&gt;\n\n&quot;);a=a.replace(/\r\n|\r/g,&quot;\n&quot;);a=a.replace(/\n\s*\n+/g,&quot;\n\n&quot;);a=a.replace(/([\s\S]+?)\n\n/g,&quot;&lt;p&gt;$1&lt;/p&gt;\n&quot;);a=a.replace(/&lt;p&gt;\s*?&lt;\/p&gt;/gi,&quot;&quot;);a=a.replace(new RegExp(&quot;&lt;p&gt;\\s*(&lt;/?(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)\\s*&lt;/p&gt;&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(/&lt;p&gt;(&lt;li.+?)&lt;\/p&gt;/gi,&quot;$1&quot;);a=a.replace(/&lt;p&gt;\s*&lt;blockquote([^&gt;]*)&gt;/gi,&quot;&lt;blockquo
 te$1&gt;&lt;p&gt;&quot;);a=a.replace(/&lt;\/blockquote&gt;\s*&lt;\/p&gt;/gi,&quot;&lt;/p&gt;&lt;/blockquote&gt;&quot;);a=a.replace(new RegExp(&quot;&lt;p&gt;\\s*(&lt;/?(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(new RegExp(&quot;(&lt;/?(?:&quot;+b+&quot;)(?: [^&gt;]*)?&gt;)\\s*&lt;/p&gt;&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(/\s*\n/gi,&quot;&lt;br /&gt;\n&quot;);a=a.replace(new RegExp(&quot;(&lt;/?(?:&quot;+b+&quot;)[^&gt;]*&gt;)\\s*&lt;br /&gt;&quot;,&quot;gi&quot;),&quot;$1&quot;);a=a.replace(/&lt;br \/&gt;(\s*&lt;\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)&gt;)/gi,&quot;$1&quot;);a=a.replace(/(?:&lt;p&gt;|&lt;br ?\/?&gt;)*\s*\[caption([^\[]+)\[\/caption\]\s*(?:&lt;\/p&gt;|&lt;br ?\/?&gt;)*/gi,&quot;[caption$1[/caption]&quot;);a=a.replace(/(&lt;(?:div|th|td|form|fieldset|dd)[^&gt;]*&gt;)(.*?)&lt;\/p&gt;/g,function(e,d,f){if(f.match(/&lt;p( [^&gt;]*)?&gt;/)){return e}return d+&quot;&lt;p&gt;&quot;+f+&quot;&lt;/p&gt;&quot
 ;});a=a.replace(/&lt;wp_temp_br&gt;/g,&quot;\n&quot;);return a},pre_wpautop:function(b){var a=this,d={o:a,data:b,unfiltered:b},c=typeof(jQuery)!=&quot;undefined&quot;;if(c){jQuery(&quot;body&quot;).trigger(&quot;beforePreWpautop&quot;,[d])}d.data=a._wp_Nop(d.data);if(c){jQuery(&quot;body&quot;).trigger(&quot;afterPreWpautop&quot;,[d])}return d.data},wpautop:function(b){var a=this,d={o:a,data:b,unfiltered:b},c=typeof(jQuery)!=&quot;undefined&quot;;if(c){jQuery(&quot;body&quot;).trigger(&quot;beforeWpautop&quot;,[d])}d.data=a._wp_Autop(d.data);if(c){jQuery(&quot;body&quot;).trigger(&quot;afterWpautop&quot;,[d])}return d.data}};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (19318 => 19319)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-11-17 12:36:51 UTC (rev 19318)
+++ trunk/wp-includes/script-loader.php        2011-11-17 15:50:01 UTC (rev 19319)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'colorpicker', &quot;/wp-includes/js/colorpicker$suffix.js&quot;, array('prototype'), '3517m' );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'editor', &quot;/wp-admin/js/editor$suffix.js&quot;, array('utils','jquery'), '20111116', 1 );
</del><ins>+        $scripts-&gt;add( 'editor', &quot;/wp-admin/js/editor$suffix.js&quot;, array('utils','jquery'), '20111117', 1 );
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'wp-fullscreen', &quot;/wp-admin/js/wp-fullscreen$suffix.js&quot;, array('jquery'), '20111116', 1 );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>