<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[16500] trunk/wp-includes: IE8 fixes for internal linking.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/16500">16500</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-11-20 02:02:37 +0000 (Sat, 20 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>IE8 fixes for internal linking. props koopersmith, see <a href="http://trac.wordpress.org/ticket/15485">#15485</a>, see <a href="http://trac.wordpress.org/ticket/11420">#11420</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludescssjqueryuidialogcss">trunk/wp-includes/css/jquery-ui-dialog.css</a></li>
<li><a href="#trunkwpincludescssjqueryuidialogdevcss">trunk/wp-includes/css/jquery-ui-dialog.dev.css</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpdialogseditor_plugindevjs">trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpdialogseditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpdialogsjspopupdevjs">trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpdialogsjspopupjs">trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkjswplinkdevjs">trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkjswplinkjs">trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js</a></li>
<li><a href="#trunkwpincludesjstinymcewptinymcejsgz">trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludescssjqueryuidialogcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/jquery-ui-dialog.css (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/jquery-ui-dialog.css        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/css/jquery-ui-dialog.css        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -1 +1 @@
</span><del>-.ui-helper-hidden{display:none;}.ui-helper-hidden-accessible{position:absolute;left:-99999999px;}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none;}.ui-helper-clearfix:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden;}.ui-helper-clearfix{display:inline-block;}/* required comment for clearfix to work in Opera \*/ * html .ui-helper-clearfix{height:1%;}.ui-helper-clearfix{display:block;}/* end clearfix */ .ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0);}.ui-state-disabled{cursor:default!important;}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;}.ui-resizable{position:relative;}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block;}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none;}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0;}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0;}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%;}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%;}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px;}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px;}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px;}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px;}.wp-dialog{position:absolute;width:300px;overflow:hidden;}.wp-dialog .ui-dialog-titlebar{position:relative;}.wp-dialog .ui-dialog-titlebar-close span{display:block;margin:1px;}.wp-dialog .ui-dialog-content{position:relative;border:0;padding:0;background:none;overflow:auto;zoom:1;}.wp-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em;}.wp-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right;}.wp-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer;}.wp-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px;}.ui-draggable .ui-dialog-titlebar{cursor:move;}.wp-dialog{border:1px solid #999;-moz-box-shadow:0 0 16px rgba(0,0,0,0.3);-webkit-box-shadow:0 0 16px rgba(0,0,0,0.3);box-shadow:0 0 16px rgba(0,0,0,0.3);}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:1px 0 2px;}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-weight:bold;font-size:11px;color:#e5e5e5;}.wp-dialog{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px;}.wp-dialog .ui-dialog-titlebar{-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;}.wp-dialog .ui-dialog-titlebar-close{position:absolute;width:29px;height:16px;top:2px;right:6px;background:url('../js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif') no-repeat -87px -16px;padding:0;}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px;}.ui-widget-overlay{background-color:#000;opacity:.6;}
</del><span class="cx">\ No newline at end of file
</span><ins>+.ui-helper-hidden{display:none;}.ui-helper-hidden-accessible{position:absolute;left:-99999999px;}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none;}.ui-helper-clearfix:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden;}.ui-helper-clearfix{display:inline-block;}/* required comment for clearfix to work in Opera \*/ * html .ui-helper-clearfix{height:1%;}.ui-helper-clearfix{display:block;}/* end clearfix */ .ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0);}.ui-state-disabled{cursor:default!important;}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;}.ui-resizable{position:relative;}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block;}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none;}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0;}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0;}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%;}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%;}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px;}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px;}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px;}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px;}.wp-dialog{position:absolute;width:300px;overflow:hidden;}.wp-dialog .ui-dialog-titlebar{position:relative;}.wp-dialog .ui-dialog-titlebar-close span{display:block;margin:1px;}.wp-dialog .ui-dialog-content{position:relative;border:0;padding:0;background:none;overflow:auto;zoom:1;}.wp-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em;}.wp-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right;}.wp-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer;}.wp-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px;}.ui-draggable .ui-dialog-titlebar{cursor:move;}.wp-dialog{border:1px solid #999;-moz-box-shadow:0 0 16px rgba(0,0,0,0.3);-webkit-box-shadow:0 0 16px rgba(0,0,0,0.3);box-shadow:0 0 16px rgba(0,0,0,0.3);}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:1px 0 2px;}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-weight:bold;font-size:11px;color:#e5e5e5;}.wp-dialog{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px;}.wp-dialog .ui-dialog-titlebar{-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;}.wp-dialog .ui-dialog-titlebar-close{position:absolute;width:29px;height:16px;top:2px;right:6px;background:url('../js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif') no-repeat -87px -16px;padding:0;}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px;}.ui-widget-overlay{background-color:#000;opacity:.6;filter:alpha(opacity=60);}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludescssjqueryuidialogdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/jquery-ui-dialog.dev.css (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/jquery-ui-dialog.dev.css        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/css/jquery-ui-dialog.dev.css        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -138,4 +138,5 @@
</span><span class="cx"> .ui-widget-overlay {
</span><span class="cx">         background-color: #000;
</span><span class="cx">         opacity: 0.6;
</span><ins>+        filter: alpha(opacity=60);
</ins><span class="cx"> }
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpdialogseditor_plugindevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -59,6 +59,9 @@
</span><span class="cx">                         t.onOpen.dispatch(t, f, p);
</span><span class="cx">                         t.element = t.windows[ f.id ] = element;
</span><span class="cx">                         
</span><ins>+                        // Store selection
+                        t.bookmark = t.editor.selection.getBookmark();
+                        
</ins><span class="cx">                         if ( tinyMCEPopup )
</span><span class="cx">                                 tinyMCEPopup.init();
</span><span class="cx">                         
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpdialogseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(b){var a=function(c){return function(){if(this.features.wpDialog){return c.apply(this,arguments)}else{return this.parent.apply(this,arguments)}}};tinymce.create(&quot;tinymce.plugins.WPDialogs&quot;,{init:function(c,d){c.onBeforeRenderUI.add(function(){c.windowManager=new tinymce.WPWindowManager(c)})},getInfo:function(){return{longname:&quot;WPDialogs&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;0.1&quot;}}});tinymce.create(&quot;tinymce.WPWindowManager:tinymce.InlineWindowManager&quot;,{WPWindowManager:function(c){this.parent(c)},open:function(e,g){var d=this,c;if(!e.wpDialog){return this.parent(e,g)}else{if(!e.id){return}}c=b(&quot;#&quot;+e.id);if(!c.length){return}d.features=e;d.params=g;d.onOpen.dispatch(d,e,g);d.element=d.windows[e.id]=c;if(tinyMCEPopup){tinyMCEPopup.init()}c.dialog({title:e.title,width:e.width,height:e.height,modal:true,dialogClass:&quot;wp-dialog&quot;})},close:a(function(){this.element.dialog(&quot;close&quot;)}),});tinymce.PluginManager.add(&quot;wpdialogs&quot;,tinymce.plugins.WPDialogs)})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(b){var a=function(c){return function(){if(this.features.wpDialog){return c.apply(this,arguments)}else{return this.parent.apply(this,arguments)}}};tinymce.create(&quot;tinymce.plugins.WPDialogs&quot;,{init:function(c,d){c.onBeforeRenderUI.add(function(){c.windowManager=new tinymce.WPWindowManager(c)})},getInfo:function(){return{longname:&quot;WPDialogs&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;0.1&quot;}}});tinymce.create(&quot;tinymce.WPWindowManager:tinymce.InlineWindowManager&quot;,{WPWindowManager:function(c){this.parent(c)},open:function(e,g){var d=this,c;if(!e.wpDialog){return this.parent(e,g)}else{if(!e.id){return}}c=b(&quot;#&quot;+e.id);if(!c.length){return}d.features=e;d.params=g;d.onOpen.dispatch(d,e,g);d.element=d.windows[e.id]=c;d.bookmark=d.editor.selection.getBookmark();if(tinyMCEPopup){tinyMCEPopup.init()}c.dialog({title:e.title,width:e.width,height:e.height,modal:true,dialogClass:&quot;wp-dialog&quot;})},close:a(function(){this.element.dialog(&quot;close&quot;)}),});tinymce.PluginManager.add(&quot;wpdialogs&quot;,tinymce.plugins.WPDialogs)})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpdialogsjspopupdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx">                         }
</span><span class="cx">                 };
</span><span class="cx"> 
</span><del>-                t.isWindow = !t.getWindowArg('mce_inline');
</del><ins>+                t.isWindow = false;
</ins><span class="cx">                 t.id = t.features.id;
</span><span class="cx">                 t.editor.windowManager.onOpen.dispatch(t.editor.windowManager, window);
</span><span class="cx">         },
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpdialogsjspopupjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.js        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=tinymce.dom;b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg(&quot;mce_inline&quot;);b.id=b.features.id;b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return window},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg(&quot;mce_width&quot;)-b.w,a.getWindowArg(&quot;mce_height&quot;)-b.h,a.id||window)},0)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&amp;&amp;tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg(&quot;plugin_url&quot;)||b.getWindowArg(&quot;theme_url&quot;);if(a&amp;&amp;b.editor.settings.language&amp;&amp;b.features.translate_i18n!==false){a+=&quot;/langs/&quot;+b.editor.settings.language+&quot;_dlg.js&quot;;if(!tinymce.ScriptLoader.isDone(a)){document.write('&lt;script type=&quot;text/javascript&quot; src=&quot;'+tinymce._addVer(a)+'&quot;&gt;&lt;\/script&gt;');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand(&quot;mceColorPicker&quot;,true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback(&quot;file_browser_callback&quot;,a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);a.editor=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName==&quot;INPUT&quot;&amp;&amp;(a.type==&quot;submit&quot;||a.type==&quot;button&quot;)){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.domLoaded){return}b.domLoaded=1;tinyMCEPopup.init();if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^&quot;][^\s&gt;]+)/gi,' $1=&quot;$2&quot;')}document.dir=b.editor.getParam(&quot;directionality&quot;,&quot;&quot;);if((a=b.editor.translate(c))&amp;&amp;a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&amp;&amp;a!=d){document.title=d=a}}document.body.style.display=&quot;&quot;;if(tinymce.isIE){document.attachEvent(&quot;onmouseup&quot;,tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select(&quot;head&quot;)[0],&quot;base&quot;,{target:&quot;_self&quot;})}b.restoreSelection();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&amp;&amp;!b.isWindow){tinymce.dom.Event._add(document,&quot;focus&quot;,function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select(&quot;select&quot;),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg(&quot;mce_auto_focus&quot;,true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,&quot;mceFocus&quot;)&amp;&amp;!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){a=a.target||a.srcElement;if(a.onchange){a.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_wait:function(){if(document.attachEvent){document.attachEvent(&quot;onreadystatechange&quot;,function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,arguments.callee);tinyMCEPopup._onDOMLoaded()}});if(document.documentElement.doScroll&amp;&amp;window==window.top){(function(){if(tinyMCEPopup.domLoaded){return}try{document.documentElement.doScroll(&quot;left&quot;)}catch(a){setTimeout(arguments.callee,0);return}tinyMCEPopup._onDOMLoaded()})()}document.attachEvent(&quot;onload&quot;,tinyMCEPopup._onDOMLoaded)}else{if(document.addEventListener){window.addEventListener(&quot;DOMContentLoaded&quot;,tinyMCEPopup._onDOMLoaded,false);window.addEventListener(&quot;load&quot;,tinyMCEPopup._onDOMLoaded,false)}}}};
</del><span class="cx">\ No newline at end of file
</span><ins>+var tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=tinymce.dom;b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=false;b.id=b.features.id;b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return window},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg(&quot;mce_width&quot;)-b.w,a.getWindowArg(&quot;mce_height&quot;)-b.h,a.id||window)},0)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&amp;&amp;tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg(&quot;plugin_url&quot;)||b.getWindowArg(&quot;theme_url&quot;);if(a&amp;&amp;b.editor.settings.language&amp;&amp;b.features.translate_i18n!==false){a+=&quot;/langs/&quot;+b.editor.settings.language+&quot;_dlg.js&quot;;if(!tinymce.ScriptLoader.isDone(a)){document.write('&lt;script type=&quot;text/javascript&quot; src=&quot;'+tinymce._addVer(a)+'&quot;&gt;&lt;\/script&gt;');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand(&quot;mceColorPicker&quot;,true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback(&quot;file_browser_callback&quot;,a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);a.editor=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName==&quot;INPUT&quot;&amp;&amp;(a.type==&quot;submit&quot;||a.type==&quot;button&quot;)){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.domLoaded){return}b.domLoaded=1;tinyMCEPopup.init();if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^&quot;][^\s&gt;]+)/gi,' $1=&quot;$2&quot;')}document.dir=b.editor.getParam(&quot;directionality&quot;,&quot;&quot;);if((a=b.editor.translate(c))&amp;&amp;a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&amp;&amp;a!=d){document.title=d=a}}document.body.style.display=&quot;&quot;;if(tinymce.isIE){document.attachEvent(&quot;onmouseup&quot;,tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select(&quot;head&quot;)[0],&quot;base&quot;,{target:&quot;_self&quot;})}b.restoreSelection();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&amp;&amp;!b.isWindow){tinymce.dom.Event._add(document,&quot;focus&quot;,function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select(&quot;select&quot;),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg(&quot;mce_auto_focus&quot;,true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,&quot;mceFocus&quot;)&amp;&amp;!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){a=a.target||a.srcElement;if(a.onchange){a.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_wait:function(){if(document.attachEvent){document.attachEvent(&quot;onreadystatechange&quot;,function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,arguments.callee);tinyMCEPopup._onDOMLoaded()}});if(document.documentElement.doScroll&amp;&amp;window==window.top){(function(){if(tinyMCEPopup.domLoaded){return}try{document.documentElement.doScroll(&quot;left&quot;)}catch(a){setTimeout(arguments.callee,0);return}tinyMCEPopup._onDOMLoaded()})()}document.attachEvent(&quot;onload&quot;,tinyMCEPopup._onDOMLoaded)}else{if(document.addEventListener){window.addEventListener(&quot;DOMContentLoaded&quot;,tinyMCEPopup._onDOMLoaded,false);window.addEventListener(&quot;load&quot;,tinyMCEPopup._onDOMLoaded,false)}}}};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -40,9 +40,10 @@
</span><span class="cx">                         // Clear previously selected links
</span><span class="cx">                         rivers.elements.find('.selected').removeClass('selected');
</span><span class="cx">                         // Clear fields and focus the URL field
</span><del>-                        inputs.url.val('http://').focus();
</del><ins>+                        inputs.url.val('http://');
</ins><span class="cx">                         inputs.title.val('');
</span><span class="cx">                         
</span><ins>+                        tinyMCEPopup.restoreSelection();
</ins><span class="cx">                         // If link exists, select proper values.
</span><span class="cx">                         if ( e = ed.dom.getParent(ed.selection.getNode(), 'A') ) {
</span><span class="cx">                                 // Set URL and description.
</span><span class="lines">@@ -52,6 +53,10 @@
</span><span class="cx">                                 if ( &quot;_blank&quot; == ed.dom.getAttrib(e, 'target') )
</span><span class="cx">                                         inputs.openInNewTab.attr('checked','checked');
</span><span class="cx">                         }
</span><ins>+                        tinyMCEPopup.storeSelection();
+                        // If the focus is moved above the selection changes,
+                        // IE will show a flashing cursor over the dialog.
+                        inputs.url.focus();
</ins><span class="cx">                         // Load the most recent results if this is the first time opening the panel.
</span><span class="cx">                         if ( ! rivers.recent.ul.children().length )
</span><span class="cx">                                 rivers.recent.ajax();
</span><span class="lines">@@ -64,14 +69,14 @@
</span><span class="cx">                                         href : inputs.url.val(),
</span><span class="cx">                                         title : inputs.title.val(),
</span><span class="cx">                                         target : inputs.openInNewTab.attr('checked') ? '_blank' : ''
</span><del>-                                }, e, children, b,
</del><ins>+                                }, e, b,
</ins><span class="cx">                                 defaultContent = attrs.title ? attrs.title : attrs.href;
</span><span class="cx"> 
</span><span class="cx">                         tinyMCEPopup.restoreSelection();
</span><span class="cx">                         e = ed.dom.getParent(ed.selection.getNode(), 'A');
</span><span class="cx"> 
</span><span class="cx">                         // If the values are empty...
</span><del>-                        if ( ! attrs.href ) {
</del><ins>+                        if ( ! attrs.href || attrs.href == 'http://' ) {
</ins><span class="cx">                                 // ...and nothing is selected, we should return
</span><span class="cx">                                 if ( ed.selection.isCollapsed() ) {
</span><span class="cx">                                         tinyMCEPopup.close();
</span><span class="lines">@@ -114,7 +119,7 @@
</span><span class="cx"> 
</span><span class="cx">                         children = $(e).children();
</span><span class="cx">                         // Don't move caret if selection was image
</span><del>-                        if ( children.length != 1 || children.first().not('img') ) {
</del><ins>+                        if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') {
</ins><span class="cx">                                 ed.focus();
</span><span class="cx">                                 ed.selection.select(e);
</span><span class="cx">                                 ed.selection.collapse(0);
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var wpLink;(function(f){var b={},e={},d,a,c;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,lastSearch:&quot;&quot;,init:function(){b.dialog=f(&quot;#wp-link&quot;);b.url=f(&quot;#url-field&quot;);b.title=f(&quot;#link-title-field&quot;);b.openInNewTab=f(&quot;#link-target-checkbox&quot;);b.search=f(&quot;#search-field&quot;);e.search=new a(f(&quot;#search-results&quot;));e.recent=new a(f(&quot;#most-recent-results&quot;));e.elements=f(&quot;.query-results&quot;,b.dialog);f(&quot;#wp-link-update&quot;).click(wpLink.update);f(&quot;#wp-link-cancel&quot;).click(function(){tinyMCEPopup.close()});e.elements.delegate(&quot;li&quot;,&quot;click&quot;,wpLink.selectInternalLink);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;dialogopen&quot;,wpLink.refresh)},refresh:function(){var g;d=tinyMCEPopup.editor;e.elements.find(&quot;.selected&quot;).removeClass(&quot;selected&quot;);b.url.val(&quot;http://&quot;).focus();b.title.val(&quot;&quot;);if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;)){b.url.val(g.href);b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.attr(&quot;checked&quot;,&quot;checked&quot;)}}if(!e.recent.ul.children().length){e.recent.ajax()}},update:function(){var l,h=tinyMCEPopup.editor,i={href:b.url.val(),title:b.title.val(),target:b.openInNewTab.attr(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;},m,k,g,j=i.title?i.title:i.href;tinyMCEPopup.restoreSelection();m=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href){if(h.selection.isCollapsed()){tinyMCEPopup.close();return}else{if(m){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(m,1);h.selection.moveToBookmark(g);tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close();return}}}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(m==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);if(h.selection.isCollapsed()){l=h.dom.create(&quot;a&quot;,{href:&quot;#mce_temp_url#&quot;},j);h.selection.setNode(l)}else{tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1})}tinymce.each(h.dom.select(&quot;a&quot;),function(o){if(h.dom.getAttrib(o,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){m=o;h.dom.setAttribs(m,i)}})}else{h.dom.setAttribs(m,i)}k=f(m).children();if(k.length!=1||k.first().not(&quot;img&quot;)){h.focus();h.selection.select(m);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close()},selectInternalLink:function(){var g=f(this);if(g.hasClass(&quot;unselectable&quot;)){return}g.siblings(&quot;.selected&quot;).removeClass(&quot;selected&quot;);g.addClass(&quot;selected&quot;);b.url.val(g.children(&quot;.item-permalink&quot;).val());b.title.val(g.children(&quot;.item-title&quot;).text())},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.element.hide();e.search.element.show();if(wpLink.lastSearch==g){return}wpLink.lastSearch=g;i=h.siblings(&quot;img.waiting&quot;).show();e.search.change(g);e.search.ajax(function(){i.hide()})}else{e.search.element.hide();e.recent.element.show()}},delayedCallback:function(i,g){var l,k,j,h;if(!g){return i}setTimeout(function(){if(k){return i.apply(h,j)}l=true},g);return function(){if(l){return i.apply(this,arguments)}j=arguments;h=this;k=true}}};a=function(i,h){var g=this;this.element=i;this.ul=i.children(&quot;ul&quot;);this.waiting=i.find(&quot;.river-waiting&quot;);this.change(h);i.scroll(function(){g.maybeLoad()})};f.extend(a.prototype,{ajax:function(j){var h=this,i=this.query.page==1?0:wpLink.minRiverAJAXDuration,g=wpLink.delayedCallback(function(k,l){h.process(k,l);if(j){j(k,l)}},i);this.query.ajax(g)},change:function(g){if(this.query&amp;&amp;this._search==g){return}this._search=g;this.query=new c(g);this.element.scrollTop(0)},process:function(g,k){var h=&quot;&quot;,i=true,j=k.page==1;if(!g){if(j){h+='&lt;li class=&quot;unselectable&quot;&gt;&lt;span class=&quot;item-title&quot;&gt;&lt;em&gt;'+wpLinkL10n.noMatchesFound+&quot;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&quot;}}else{f.each(g,function(){h+=i?'&lt;li class=&quot;alternate&quot;&gt;':&quot;&lt;li&gt;&quot;;h+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';h+='&lt;span class=&quot;item-title&quot;&gt;';h+=this[&quot;title&quot;]?this[&quot;title&quot;]:&quot;&lt;em&gt;&quot;+wpLinkL10n.untitled+&quot;&lt;/em&gt;&quot;;h+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;i=!i})}this.ul[j?&quot;html&quot;:&quot;append&quot;](h)},maybeLoad:function(){var h=this,i=this.element,g=i.scrollTop()+i.height();if(!this.query.ready()||g&lt;this.ul.height()-wpLink.riverBottomThreshold){return}setTimeout(function(){var j=i.scrollTop(),k=j+i.height();if(!h.query.ready()||k&lt;h.ul.height()-wpLink.riverBottomThreshold){return}h.waiting.show();i.scrollTop(j+h.waiting.outerHeight());h.ajax(function(){h.waiting.hide()})},wpLink.timeToTriggerRiver)}});c=function(g){this.page=1;this.allLoaded=false;this.querying=false;this.search=g};f.extend(c.prototype,{ready:function(){return !(this.querying||this.allLoaded)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page};if(this.search){h.search=this.search}this.querying=true;f.post(ajaxurl,h,function(j){g.page++;g.querying=false;g.allLoaded=!j;i(j,h)},&quot;json&quot;)}});f(document).ready(wpLink.init)})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var wpLink;(function(f){var b={},e={},d,a,c;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,lastSearch:&quot;&quot;,init:function(){b.dialog=f(&quot;#wp-link&quot;);b.url=f(&quot;#url-field&quot;);b.title=f(&quot;#link-title-field&quot;);b.openInNewTab=f(&quot;#link-target-checkbox&quot;);b.search=f(&quot;#search-field&quot;);e.search=new a(f(&quot;#search-results&quot;));e.recent=new a(f(&quot;#most-recent-results&quot;));e.elements=f(&quot;.query-results&quot;,b.dialog);f(&quot;#wp-link-update&quot;).click(wpLink.update);f(&quot;#wp-link-cancel&quot;).click(function(){tinyMCEPopup.close()});e.elements.delegate(&quot;li&quot;,&quot;click&quot;,wpLink.selectInternalLink);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;dialogopen&quot;,wpLink.refresh)},refresh:function(){var g;d=tinyMCEPopup.editor;e.elements.find(&quot;.selected&quot;).removeClass(&quot;selected&quot;);b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;);tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;)){b.url.val(g.href);b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.attr(&quot;checked&quot;,&quot;checked&quot;)}}tinyMCEPopup.storeSelection();b.url.focus();if(!e.recent.ul.children().length){e.recent.ajax()}},update:function(){var k,h=tinyMCEPopup.editor,i={href:b.url.val(),title:b.title.val(),target:b.openInNewTab.attr(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;},l,g,j=i.title?i.title:i.href;tinyMCEPopup.restoreSelection();l=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&quot;){if(h.selection.isCollapsed()){tinyMCEPopup.close();return}else{if(l){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(l,1);h.selection.moveToBookmark(g);tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close();return}}}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(l==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);if(h.selection.isCollapsed()){k=h.dom.create(&quot;a&quot;,{href:&quot;#mce_temp_url#&quot;},j);h.selection.setNode(k)}else{tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1})}tinymce.each(h.dom.select(&quot;a&quot;),function(m){if(h.dom.getAttrib(m,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){l=m;h.dom.setAttribs(l,i)}})}else{h.dom.setAttribs(l,i)}children=f(l).children();if(l.childNodes.length!=1||l.firstChild.nodeName!=&quot;IMG&quot;){h.focus();h.selection.select(l);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close()},selectInternalLink:function(){var g=f(this);if(g.hasClass(&quot;unselectable&quot;)){return}g.siblings(&quot;.selected&quot;).removeClass(&quot;selected&quot;);g.addClass(&quot;selected&quot;);b.url.val(g.children(&quot;.item-permalink&quot;).val());b.title.val(g.children(&quot;.item-title&quot;).text())},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.element.hide();e.search.element.show();if(wpLink.lastSearch==g){return}wpLink.lastSearch=g;i=h.siblings(&quot;img.waiting&quot;).show();e.search.change(g);e.search.ajax(function(){i.hide()})}else{e.search.element.hide();e.recent.element.show()}},delayedCallback:function(i,g){var l,k,j,h;if(!g){return i}setTimeout(function(){if(k){return i.apply(h,j)}l=true},g);return function(){if(l){return i.apply(this,arguments)}j=arguments;h=this;k=true}}};a=function(i,h){var g=this;this.element=i;this.ul=i.children(&quot;ul&quot;);this.waiting=i.find(&quot;.river-waiting&quot;);this.change(h);i.scroll(function(){g.maybeLoad()})};f.extend(a.prototype,{ajax:function(j){var h=this,i=this.query.page==1?0:wpLink.minRiverAJAXDuration,g=wpLink.delayedCallback(function(k,l){h.process(k,l);if(j){j(k,l)}},i);this.query.ajax(g)},change:function(g){if(this.query&amp;&amp;this._search==g){return}this._search=g;this.query=new c(g);this.element.scrollTop(0)},process:function(g,k){var h=&quot;&quot;,i=true,j=k.page==1;if(!g){if(j){h+='&lt;li class=&quot;unselectable&quot;&gt;&lt;span class=&quot;item-title&quot;&gt;&lt;em&gt;'+wpLinkL10n.noMatchesFound+&quot;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&quot;}}else{f.each(g,function(){h+=i?'&lt;li class=&quot;alternate&quot;&gt;':&quot;&lt;li&gt;&quot;;h+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';h+='&lt;span class=&quot;item-title&quot;&gt;';h+=this[&quot;title&quot;]?this[&quot;title&quot;]:&quot;&lt;em&gt;&quot;+wpLinkL10n.untitled+&quot;&lt;/em&gt;&quot;;h+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;i=!i})}this.ul[j?&quot;html&quot;:&quot;append&quot;](h)},maybeLoad:function(){var h=this,i=this.element,g=i.scrollTop()+i.height();if(!this.query.ready()||g&lt;this.ul.height()-wpLink.riverBottomThreshold){return}setTimeout(function(){var j=i.scrollTop(),k=j+i.height();if(!h.query.ready()||k&lt;h.ul.height()-wpLink.riverBottomThreshold){return}h.waiting.show();i.scrollTop(j+h.waiting.outerHeight());h.ajax(function(){h.waiting.hide()})},wpLink.timeToTriggerRiver)}});c=function(g){this.page=1;this.allLoaded=false;this.querying=false;this.search=g};f.extend(c.prototype,{ready:function(){return !(this.querying||this.allLoaded)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page};if(this.search){h.search=this.search}this.querying=true;f.post(ajaxurl,h,function(j){g.page++;g.querying=false;g.allLoaded=!j;i(j,h)},&quot;json&quot;)}});f(document).ready(wpLink.init)})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcewptinymcejsgz"></a>
<div class="binary"><h4>Modified: trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (16499 => 16500)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-11-20 01:38:21 UTC (rev 16499)
+++ trunk/wp-includes/script-loader.php        2010-11-20 02:02:37 UTC (rev 16500)
</span><span class="lines">@@ -269,13 +269,13 @@
</span><span class="cx">                 'noShortlink' =&gt; __( 'No shortlink available for this page.' ),
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js&quot;, array('jquery'), '20101119c' );
</del><ins>+        $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js&quot;, array('jquery'), '20101119d' );
</ins><span class="cx">         $scripts-&gt;localize( 'wplink', 'wpLinkL10n', array(
</span><span class="cx">                 'untitled' =&gt; __('Untitled'),
</span><span class="cx">                 'noMatchesFound' =&gt; __('No matches found.'),
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wpdialogs-popup', &quot;/wp-includes/js/tinymce/plugins/wpdialogs/js/popup$suffix.js&quot;, array( 'jquery-ui-dialog' ), '20101117' );
</del><ins>+        $scripts-&gt;add( 'wpdialogs-popup', &quot;/wp-includes/js/tinymce/plugins/wpdialogs/js/popup$suffix.js&quot;, array( 'jquery-ui-dialog' ), '20101119' );
</ins><span class="cx"> 
</span><span class="cx">         if ( is_admin() ) {
</span><span class="cx">                 $scripts-&gt;add( 'ajaxcat', &quot;/wp-admin/js/cat$suffix.js&quot;, array( 'wp-lists' ), '20090102' );
</span><span class="lines">@@ -510,7 +510,7 @@
</span><span class="cx">         $styles-&gt;add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
</span><span class="cx">         $styles-&gt;add( 'nav-menu', &quot;/wp-admin/css/nav-menu$suffix.css&quot;, array(), '20100907' );
</span><span class="cx">         $styles-&gt;add( 'admin-bar', &quot;/wp-includes/css/admin-bar$suffix.css&quot;, array(), '20101117' );
</span><del>-        $styles-&gt;add( 'wp-jquery-ui-dialog', &quot;/wp-includes/css/jquery-ui-dialog$suffix.css&quot;, array(), '20101118' );
</del><ins>+        $styles-&gt;add( 'wp-jquery-ui-dialog', &quot;/wp-includes/css/jquery-ui-dialog$suffix.css&quot;, array(), '20101119' );
</ins><span class="cx">         $styles-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/css/wplink$suffix.css&quot;, array(), '20101119' );
</span><span class="cx"> 
</span><span class="cx">         foreach ( $rtl_styles as $rtl_style ) {
</span></span></pre>
</div>
</div>

</body>
</html>