<!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>[20343] trunk/wp-includes: Compress scripts/styles: 3.4-alpha-20343.</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/20343">20343</a></dd>
<dt>Author</dt> <dd>bumpbot</dd>
<dt>Date</dt> <dd>2012-04-02 22:58:19 +0000 (Mon, 02 Apr 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Compress scripts/styles: 3.4-alpha-20343.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjstinymcepluginswpeditimagejseditimagejs">trunk/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js</a></li>
<li><a href="#trunkwpincludesjswplinkjs">trunk/wp-includes/js/wplink.js</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjstinymcepluginswpeditimagejseditimagejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js (20342 => 20343)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js        2012-04-02 22:26:11 UTC (rev 20342)
+++ trunk/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js        2012-04-02 22:58:19 UTC (rev 20343)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tinymce=null,tinyMCEPopup,tinyMCE,wpImage;tinyMCEPopup={init:function(){var d=this,b,a,f,c,e;a=(&quot;&quot;+document.location.search).replace(/^\?/,&quot;&quot;).split(&quot;&amp;&quot;);f={};for(c=0;c&lt;a.length;c++){e=a[c].split(&quot;=&quot;);f[unescape(e[0])]=unescape(e[1])}if(f.mce_rdomain){document.domain=f.mce_rdomain}b=d.getWin();tinymce=b.tinymce;tinyMCE=b.tinyMCE;d.editor=tinymce.EditorManager.activeEditor;d.params=d.editor.windowManager.params;d.dom=d.editor.windowManager.createInstance(&quot;tinymce.dom.DOMUtils&quot;,document);d.editor.windowManager.onOpen.dispatch(d.editor.windowManager,window)},getWin:function(){return window.dialogArguments||opener||parent||top},getParam:function(b,a){return this.editor.getParam(b,a)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},execCommand:function(d,c,e,b){b=b||{
 };b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(&quot;simple&quot;)},restoreSelection:function(){var a=tinyMCEPopup;if(tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}}};tinyMCEPopup.init();wpImage={preInit:function(){var a=tinyMCEPopup.editor,e=tinyMCEPopup.getWin(),d=e.document.styleSheets,b,c;for(c=0;c&lt;d.length;c++){b=d.item(c).href;if(b&amp;&amp;b.indexOf(&quot;colors&quot;)!=-1){document.getElementsByTagName(&quot;head&quot;)[0].appendChild(a.dom.create(&quot;link&quot;,{rel:&quot;stylesheet&quot;,href:b}));break}}},I:function(a){return document.getElementById(a)},current:&quot;&quot;,link:&quot;&quot;,link_rel:&quot;&quot;,target_value:&quot;&quot;,current_size_sel:&quot;s100&quot;,width:&quot;&quot;,height:&quot;&quot;,align:&quot;&quot;,img_alt:&quot;&quot;,setTabs:function(b){var a=this;if(&quot;
 current&quot;==b.className){return false}a.I(&quot;div_advanced&quot;).style.display=(&quot;tab_advanced&quot;==b.id)?&quot;block&quot;:&quot;none&quot;;a.I(&quot;div_basic&quot;).style.display=(&quot;tab_basic&quot;==b.id)?&quot;block&quot;:&quot;none&quot;;a.I(&quot;tab_basic&quot;).className=a.I(&quot;tab_advanced&quot;).className=&quot;&quot;;b.className=&quot;current&quot;;return false},img_seturl:function(b){var c=this,a=c.I(&quot;link_rel&quot;).value;if(&quot;current&quot;==b){c.I(&quot;link_href&quot;).value=c.current;c.I(&quot;link_rel&quot;).value=c.link_rel}else{c.I(&quot;link_href&quot;).value=c.link;if(a){a=a.replace(/attachment|wp-att-[0-9]+/gi,&quot;&quot;);c.I(&quot;link_rel&quot;).value=tinymce.trim(a)}}},imgAlignCls:function(b){var c=this,a=c.I(&quot;img_classes&quot;).value;c.I(&quot;img_demo&quot;).className=c.align=b;a=a.replace(/align[^ &quot;']+/gi,&quot;&quot;);a+=(&quot; &quot;+b);a=a.replace(/\s+/g,&quot; &quot;).replace(/^\s/,&quot;&quot;);if(&quo
 t;aligncenter&quot;==b){c.I(&quot;hspace&quot;).value=&quot;&quot;;c.updateStyle(&quot;hspace&quot;)}c.I(&quot;img_classes&quot;).value=a},showSize:function(e){var c=this,f=c.I(&quot;img_demo&quot;),a=c.width,d=c.height,g=e.id||&quot;s100&quot;,b;b=parseInt(g.substring(1))/200;f.width=Math.round(a*b);f.height=Math.round(d*b);c.showSizeClear();e.style.borderColor=&quot;#A3A3A3&quot;;e.style.backgroundColor=&quot;#E5E5E5&quot;},showSizeSet:function(){var b=this,d,c,a;if((b.width*1.3)&gt;parseInt(b.preloadImg.width)){d=b.I(&quot;s130&quot;),c=b.I(&quot;s120&quot;),a=b.I(&quot;s110&quot;);d.onclick=c.onclick=a.onclick=null;d.onmouseover=c.onmouseover=a.onmouseover=null;d.style.color=c.style.color=a.style.color=&quot;#aaa&quot;}},showSizeRem:function(){var a=this,c=a.I(&quot;img_demo&quot;),b=document.forms[0];c.width=Math.round(b.width.value*0.5);c.height=Math.round(b.height.value*0.5);a.showSizeClear();a.I(a.current_size_sel).style.borderColor=&quot;#A3A3A3&quot;;a.I(a.current_
 size_sel).style.backgroundColor=&quot;#E5E5E5&quot;;return false},showSizeClear:function(){var b=this.I(&quot;img_size&quot;).getElementsByTagName(&quot;div&quot;),a;for(a=0;a&lt;b.length;a++){b[a].style.borderColor=&quot;#f1f1f1&quot;;b[a].style.backgroundColor=&quot;#f1f1f1&quot;}},imgEditSize:function(g){var d=this,i=document.forms[0],a,c,b,e,j;if(!d.preloadImg||!d.preloadImg.width||!d.preloadImg.height){return}a=parseInt(d.preloadImg.width),c=parseInt(d.preloadImg.height),b=d.width||a,e=d.height||c,j=g.id||&quot;s100&quot;;size=parseInt(j.substring(1))/100;b=Math.round(b*size);e=Math.round(e*size);i.width.value=Math.min(a,b);i.height.value=Math.min(c,e);d.current_size_sel=j;d.demoSetSize()},demoSetSize:function(a){var c=this.I(&quot;img_demo&quot;),b=document.forms[0];c.width=b.width.value?Math.round(b.width.value*0.5):&quot;&quot;;c.height=b.height.value?Math.round(b.height.value*0.5):&quot;&quot;},demoSetStyle:function(){var b=document.forms[0],a=this.I(&quot;img_demo&
 quot;),c=tinyMCEPopup.editor.dom;if(a){c.setAttrib(a,&quot;style&quot;,b.img_style.value);c.setStyle(a,&quot;width&quot;,&quot;&quot;);c.setStyle(a,&quot;height&quot;,&quot;&quot;)}},origSize:function(){var a=this,c=document.forms[0],b=a.I(&quot;s100&quot;);c.width.value=a.width=a.preloadImg.width;c.height.value=a.height=a.preloadImg.height;a.showSizeSet();a.demoSetSize();a.showSize(b)},init:function(){var a=tinyMCEPopup.editor,b;b=document.body.innerHTML;document.body.innerHTML=a.translate(b);window.setTimeout(function(){wpImage.setup()},500)},setup:function(){var q=this,l,b,m,e,j=document.forms[0],i=tinyMCEPopup.editor,k=q.I(&quot;img_demo&quot;),h=tinyMCEPopup.dom,a,g,p=&quot;&quot;,o,n;document.dir=tinyMCEPopup.editor.getParam(&quot;directionality&quot;,&quot;&quot;);if(tinyMCEPopup.editor.getParam(&quot;wpeditimage_disable_captions&quot;,false)){q.I(&quot;cap_field&quot;).style.display=&quot;none&quot;}tinyMCEPopup.restoreSelection();b=i.selection.getNode();if(b.nodeNam
 e!=&quot;IMG&quot;){return}j.img_src.value=k.src=m=i.dom.getAttrib(b,&quot;src&quot;);i.dom.setStyle(b,&quot;float&quot;,&quot;&quot;);q.getImageData();l=i.dom.getAttrib(b,&quot;class&quot;);if(a=h.getParent(b,&quot;dl&quot;)){o=i.dom.getAttrib(a,&quot;class&quot;);o=o.match(/align[^ &quot;']+/i);if(o&amp;&amp;!h.hasClass(b,o)){l+=&quot; &quot;+o;tinymce.trim(l)}g=i.dom.select(&quot;dd.wp-caption-dd&quot;,a);if(g&amp;&amp;g[0]){p=i.serializer.serialize(g[0]).replace(/^&lt;p&gt;/,&quot;&quot;).replace(/&lt;\/p&gt;$/,&quot;&quot;)}}j.img_cap_text.value=p;j.img_title.value=i.dom.getAttrib(b,&quot;title&quot;);j.img_alt.value=i.dom.getAttrib(b,&quot;alt&quot;);j.border.value=i.dom.getAttrib(b,&quot;border&quot;);j.vspace.value=i.dom.getAttrib(b,&quot;vspace&quot;);j.hspace.value=i.dom.getAttrib(b,&quot;hspace&quot;);j.align.value=i.dom.getAttrib(b,&quot;align&quot;);j.width.value=q.width=i.dom.getAttrib(b,&quot;width&quot;);j.height.value=q.height=i.dom.getAttrib(b,&quot;height&
 quot;);j.img_classes.value=l;j.img_style.value=i.dom.getAttrib(b,&quot;style&quot;);if(h.getAttrib(b,&quot;hspace&quot;)){q.updateStyle(&quot;hspace&quot;)}if(h.getAttrib(b,&quot;border&quot;)){q.updateStyle(&quot;border&quot;)}if(h.getAttrib(b,&quot;vspace&quot;)){q.updateStyle(&quot;vspace&quot;)}if(n=i.dom.getParent(b,&quot;A&quot;)){j.link_href.value=q.current=i.dom.getAttrib(n,&quot;href&quot;);j.link_title.value=i.dom.getAttrib(n,&quot;title&quot;);j.link_rel.value=q.link_rel=i.dom.getAttrib(n,&quot;rel&quot;);j.link_style.value=i.dom.getAttrib(n,&quot;style&quot;);q.target_value=i.dom.getAttrib(n,&quot;target&quot;);j.link_classes.value=i.dom.getAttrib(n,&quot;class&quot;)}j.link_target.checked=(q.target_value&amp;&amp;q.target_value==&quot;_blank&quot;)?&quot;checked&quot;:&quot;&quot;;e=m.substring(m.lastIndexOf(&quot;/&quot;));e=e.replace(/-[0-9]{2,4}x[0-9]{2,4}/,&quot;&quot;);q.link=m.substring(0,m.lastIndexOf(&quot;/&quot;))+e;if(l.indexOf(&quot;alignleft&quot;)!
 =-1){q.I(&quot;alignleft&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;alignleft&quot;}else{if(l.indexOf(&quot;aligncenter&quot;)!=-1){q.I(&quot;aligncenter&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;aligncenter&quot;}else{if(l.indexOf(&quot;alignright&quot;)!=-1){q.I(&quot;alignright&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;alignright&quot;}else{if(l.indexOf(&quot;alignnone&quot;)!=-1){q.I(&quot;alignnone&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;alignnone&quot;}}}}if(q.width&amp;&amp;q.preloadImg.width){q.showSizeSet()}document.body.style.display=&quot;&quot;},remove:function(){var a=tinyMCEPopup.editor,c,b;tinyMCEPopup.restoreSelection();b=a.selection.getNode();if(b.nodeName!=&quot;IMG&quot;){return}if((c=a.dom.getParent(b,&quot;div&quot;))&amp;&amp;a.dom.hasClass(c,&quot;mceTemp&quot;)){a.dom.remove(c)}else{if((c=a.dom.getParent(b,&quot;A&quot;))&amp;&amp;c.childNodes.length==1){a.dom.remove(c)}else{
 a.dom.remove(b)}}a.execCommand(&quot;mceRepaint&quot;);tinyMCEPopup.close();return},update:function(){var m=this,v=document.forms[0],g=tinyMCEPopup.editor,e,y,d=null,n,h,p,r,o=null,k=v.img_classes.value,l,q,u=&quot;&quot;,j,i,s,a,B,x=&quot;&quot;,c,z,w;tinyMCEPopup.restoreSelection();e=g.selection.getNode();if(e.nodeName!=&quot;IMG&quot;){return}if(v.img_src.value===&quot;&quot;){m.remove();return}if(v.img_cap_text.value!=&quot;&quot;&amp;&amp;v.width.value!=&quot;&quot;){o=1;k=k.replace(/align[^ &quot;']+\s?/gi,&quot;&quot;)}p=g.dom.getParent(e,&quot;a&quot;);h=g.dom.getParent(e,&quot;p&quot;);n=g.dom.getParent(e,&quot;dl&quot;);r=g.dom.getParent(e,&quot;div&quot;);tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(v.width.value!=e.width||v.height.value!=e.height){k=k.replace(/size-[^ &quot;']+/,&quot;&quot;)}g.dom.setAttribs(e,{src:v.img_src.value,title:v.img_title.value,alt:v.img_alt.value,width:v.width.value,height:v.height.value,style:v.img_style.value,&quot;cla
 ss&quot;:k});if(v.link_href.value){if(p==null){if(!v.link_href.value.match(/https?:\/\//i)){v.link_href.value=tinyMCEPopup.editor.documentBaseURI.toAbsolute(v.link_href.value)}if(tinymce.isWebKit&amp;&amp;g.dom.hasClass(e,&quot;aligncenter&quot;)){g.dom.removeClass(e,&quot;aligncenter&quot;);d=1}tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});if(d){g.dom.addClass(e,&quot;aligncenter&quot;)}tinymce.each(g.dom.select(&quot;a&quot;),function(b){if(g.dom.getAttrib(b,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){g.dom.setAttribs(b,{href:v.link_href.value,title:v.link_title.value,rel:v.link_rel.value,target:(v.link_target.checked==true)?&quot;_blank&quot;:&quot;&quot;,&quot;class&quot;:v.link_classes.value,style:v.link_style.value})}})}else{g.dom.setAttribs(p,{href:v.link_href.value,title:v.link_title.value,rel:v.link_rel.value,target:(v.link_target.checked==true)?&quot;_blank&quot;:&quot;&quot;,&quot;class&quot;:v.link_classes.valu
 e,style:v.link_style.value})}}if(o){a=10+parseInt(v.width.value);B=(m.align==&quot;aligncenter&quot;)?&quot;mceTemp mceIEcenter&quot;:&quot;mceTemp&quot;;w=v.img_cap_text.value;w=w.replace(/\r\n|\r/g,&quot;\n&quot;).replace(/&lt;[a-zA-Z0-9]+( [^&lt;&gt;]+)?&gt;/g,function(b){b=b.replace(/[\r\n\t]+/,&quot; &quot;).replace(/=&quot;[^&quot;]+&quot;/,function(f){return f.replace(/'/g,&quot;&amp;#39;&quot;)});return b.replace(/&quot;/g,&quot;'&quot;)});w=w.replace(/\n+/g,&quot;&lt;br /&gt;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;);if(n){g.dom.setAttribs(n,{&quot;class&quot;:&quot;wp-caption &quot;+m.align,style:&quot;width: &quot;+a+&quot;px;&quot;});if(r){g.dom.setAttrib(r,&quot;class&quot;,B)}if((i=g.dom.getParent(e,&quot;dt&quot;))&amp;&amp;(s=i.nextSibling)&amp;&amp;g.dom.hasClass(s,&quot;wp-caption-dd&quot;)){g.dom.setHTML(s,w)}}else{if((q=v.img_classes.value.match(/wp-image-([0-9]{1,6})/))&amp;&amp;q[1]){u=&quot;attachment_&quot;+q[1]}if(v.link_href.value&amp;&amp;(x
 =g.dom.getParent(e,&quot;a&quot;))){if(x.childNodes.length==1){l=g.dom.getOuterHTML(x)}else{l=g.dom.getOuterHTML(x);l=l.match(/&lt;a [^&gt;]+&gt;/i);l=l+g.dom.getOuterHTML(e)+&quot;&lt;/a&gt;&quot;}}else{l=g.dom.getOuterHTML(e)}l='&lt;dl id=&quot;'+u+'&quot; class=&quot;wp-caption '+m.align+'&quot; style=&quot;width: '+a+'px&quot;&gt;&lt;dt class=&quot;wp-caption-dt&quot;&gt;'+l+'&lt;/dt&gt;&lt;dd class=&quot;wp-caption-dd&quot;&gt;'+w+&quot;&lt;/dd&gt;&lt;/dl&gt;&quot;;j=g.dom.create(&quot;div&quot;,{&quot;class&quot;:B},l);if(h){h.parentNode.insertBefore(j,h);if(h.childNodes.length==1){g.dom.remove(h)}else{if(x&amp;&amp;x.childNodes.length==1){g.dom.remove(x)}else{g.dom.remove(e)}}}else{if(c=g.dom.getParent(e,&quot;TD,TH,LI&quot;)){c.appendChild(j);if(x&amp;&amp;x.childNodes.length==1){g.dom.remove(x)}else{g.dom.remove(e)}}}}}else{if(n&amp;&amp;r){if(v.link_href.value&amp;&amp;(z=g.dom.getParent(e,&quot;a&quot;))){l=g.dom.getOuterHTML(z)}else{l=g.dom.getOuterHTML(e)}h=g.do
 m.create(&quot;p&quot;,{},l);r.parentNode.insertBefore(h,r);g.dom.remove(r)}}if(v.img_classes.value.indexOf(&quot;aligncenter&quot;)!=-1){if(h&amp;&amp;(!h.style||h.style.textAlign!=&quot;center&quot;)){g.dom.setStyle(h,&quot;textAlign&quot;,&quot;center&quot;)}}else{if(h&amp;&amp;h.style&amp;&amp;h.style.textAlign==&quot;center&quot;){g.dom.setStyle(h,&quot;textAlign&quot;,&quot;&quot;)}}if(!v.link_href.value&amp;&amp;p){y=g.selection.getBookmark();g.dom.remove(p,1);g.selection.moveToBookmark(y)}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);g.execCommand(&quot;mceRepaint&quot;);tinyMCEPopup.close()},updateStyle:function(a){var e=tinyMCEPopup.dom,c,d=document.forms[0],b=e.create(&quot;img&quot;,{style:d.img_style.value});if(tinyMCEPopup.editor.settings.inline_styles){if(a==&quot;align&quot;){e.setStyle(b,&quot;float&quot;,&quot;&quot;);e.setStyle(b,&quot;vertical-align&quot;,&quot;&quot;);c=d.align.value;if(c){if(c==&quot;left&quot;||c==&quot;right&quot;){e.setStyle(
 b,&quot;float&quot;,c)}else{b.style.verticalAlign=c}}}if(a==&quot;border&quot;){e.setStyle(b,&quot;border&quot;,&quot;&quot;);c=d.border.value;if(c||c==&quot;0&quot;){if(c==&quot;0&quot;){b.style.border=&quot;0&quot;}else{b.style.border=c+&quot;px solid black&quot;}}}if(a==&quot;hspace&quot;){e.setStyle(b,&quot;marginLeft&quot;,&quot;&quot;);e.setStyle(b,&quot;marginRight&quot;,&quot;&quot;);c=d.hspace.value;if(c){b.style.marginLeft=c+&quot;px&quot;;b.style.marginRight=c+&quot;px&quot;}}if(a==&quot;vspace&quot;){e.setStyle(b,&quot;marginTop&quot;,&quot;&quot;);e.setStyle(b,&quot;marginBottom&quot;,&quot;&quot;);c=d.vspace.value;if(c){b.style.marginTop=c+&quot;px&quot;;b.style.marginBottom=c+&quot;px&quot;}}d.img_style.value=e.serializeStyle(e.parseStyle(b.style.cssText));this.demoSetStyle()}},checkVal:function(a){if(a.value==&quot;&quot;){if(a.id==&quot;img_src&quot;){a.value=this.I(&quot;img_demo&quot;).src||this.preloadImg.src}}},resetImageData:function(){var a=document.fo
 rms[0];a.width.value=a.height.value=&quot;&quot;},updateImageData:function(){var d=document.forms[0],b=wpImage,a=d.width.value,c=d.height.value;if(!a&amp;&amp;c){a=d.width.value=b.width=Math.round(b.preloadImg.width/(b.preloadImg.height/c))}else{if(a&amp;&amp;!c){c=d.height.value=b.height=Math.round(b.preloadImg.height/(b.preloadImg.width/a))}}if(!a){d.width.value=b.width=b.preloadImg.width}if(!c){d.height.value=b.height=b.preloadImg.height}b.showSizeSet();b.demoSetSize();if(d.img_style.value){b.demoSetStyle()}},getImageData:function(){var a=wpImage,b=document.forms[0];a.preloadImg=new Image();a.preloadImg.onload=a.updateImageData;a.preloadImg.onerror=a.resetImageData;a.preloadImg.src=tinyMCEPopup.editor.documentBaseURI.toAbsolute(b.img_src.value)}};window.onload=function(){wpImage.init()};wpImage.preInit();
</del><span class="cx">\ No newline at end of file
</span><ins>+var tinymce=null,tinyMCEPopup,tinyMCE,wpImage;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=b.editor.windowManager.createInstance(&quot;tinymce.dom.DOMUtils&quot;,document);b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&amp;&amp;window.dialogArguments)||opener||parent||top},getParam:function(b,a){return this.editor.getParam(b,a)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selec
 tion.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}}};tinyMCEPopup.init();wpImage={preInit:function(){var a=tinyMCEPopup.editor,e=tinyMCEPopup.getWin(),d=e.document.styleSheets,b,c;for(c=0;c&lt;d.length;c++){b=d.item(c).href;if(b&amp;&amp;b.indexOf(&quot;colors&quot;)!=-1){document.getElementsByTagName(&quot;head&quot;)[0].appendChild(a.dom.create(&quot;link&quot;,{rel:&quot;stylesheet&quot;,href:b}));break}}},I:function(a){return document.getElementById(a)},current:&quot;&quot;,link:&quot;&quot;,link_rel:&quot;&quot;,target_value:&quot;&quot;,current_size_sel:&quot;s100&quot;,width:&quot;&quot;,height:&quot;&quot;,align:&quot;&quot;,img_alt:&quot;&quot;,setTabs:function(b){var a=this;if(&quot;current&quot;==b.className){return false}a.I(&quot;div_advanced&quot;).style.display=(&quot;tab_advanced&quot;==b.id)?&quot;block&quot;:&quot;none&quot;;a.I(&quot;div_basic&quot;).style
 .display=(&quot;tab_basic&quot;==b.id)?&quot;block&quot;:&quot;none&quot;;a.I(&quot;tab_basic&quot;).className=a.I(&quot;tab_advanced&quot;).className=&quot;&quot;;b.className=&quot;current&quot;;return false},img_seturl:function(b){var c=this,a=c.I(&quot;link_rel&quot;).value;if(&quot;current&quot;==b){c.I(&quot;link_href&quot;).value=c.current;c.I(&quot;link_rel&quot;).value=c.link_rel}else{c.I(&quot;link_href&quot;).value=c.link;if(a){a=a.replace(/attachment|wp-att-[0-9]+/gi,&quot;&quot;);c.I(&quot;link_rel&quot;).value=tinymce.trim(a)}}},imgAlignCls:function(b){var c=this,a=c.I(&quot;img_classes&quot;).value;c.I(&quot;img_demo&quot;).className=c.align=b;a=a.replace(/align[^ &quot;']+/gi,&quot;&quot;);a+=(&quot; &quot;+b);a=a.replace(/\s+/g,&quot; &quot;).replace(/^\s/,&quot;&quot;);if(&quot;aligncenter&quot;==b){c.I(&quot;hspace&quot;).value=&quot;&quot;;c.updateStyle(&quot;hspace&quot;)}c.I(&quot;img_classes&quot;).value=a},showSize:function(e){var c=this,f=c.I(&quot;im
 g_demo&quot;),a=c.width,d=c.height,g=e.id||&quot;s100&quot;,b;b=parseInt(g.substring(1))/200;f.width=Math.round(a*b);f.height=Math.round(d*b);c.showSizeClear();e.style.borderColor=&quot;#A3A3A3&quot;;e.style.backgroundColor=&quot;#E5E5E5&quot;},showSizeSet:function(){var b=this,d,c,a;if((b.width*1.3)&gt;parseInt(b.preloadImg.width)){d=b.I(&quot;s130&quot;),c=b.I(&quot;s120&quot;),a=b.I(&quot;s110&quot;);d.onclick=c.onclick=a.onclick=null;d.onmouseover=c.onmouseover=a.onmouseover=null;d.style.color=c.style.color=a.style.color=&quot;#aaa&quot;}},showSizeRem:function(){var a=this,c=a.I(&quot;img_demo&quot;),b=document.forms[0];c.width=Math.round(b.width.value*0.5);c.height=Math.round(b.height.value*0.5);a.showSizeClear();a.I(a.current_size_sel).style.borderColor=&quot;#A3A3A3&quot;;a.I(a.current_size_sel).style.backgroundColor=&quot;#E5E5E5&quot;;return false},showSizeClear:function(){var b=this.I(&quot;img_size&quot;).getElementsByTagName(&quot;div&quot;),a;for(a=0;a&lt;b.leng
 th;a++){b[a].style.borderColor=&quot;#f1f1f1&quot;;b[a].style.backgroundColor=&quot;#f1f1f1&quot;}},imgEditSize:function(g){var d=this,i=document.forms[0],a,c,b,e,j;if(!d.preloadImg||!d.preloadImg.width||!d.preloadImg.height){return}a=parseInt(d.preloadImg.width),c=parseInt(d.preloadImg.height),b=d.width||a,e=d.height||c,j=g.id||&quot;s100&quot;;size=parseInt(j.substring(1))/100;b=Math.round(b*size);e=Math.round(e*size);i.width.value=Math.min(a,b);i.height.value=Math.min(c,e);d.current_size_sel=j;d.demoSetSize()},demoSetSize:function(a){var c=this.I(&quot;img_demo&quot;),b=document.forms[0];c.width=b.width.value?Math.round(b.width.value*0.5):&quot;&quot;;c.height=b.height.value?Math.round(b.height.value*0.5):&quot;&quot;},demoSetStyle:function(){var b=document.forms[0],a=this.I(&quot;img_demo&quot;),c=tinyMCEPopup.editor.dom;if(a){c.setAttrib(a,&quot;style&quot;,b.img_style.value);c.setStyle(a,&quot;width&quot;,&quot;&quot;);c.setStyle(a,&quot;height&quot;,&quot;&quot;)}},or
 igSize:function(){var a=this,c=document.forms[0],b=a.I(&quot;s100&quot;);c.width.value=a.width=a.preloadImg.width;c.height.value=a.height=a.preloadImg.height;a.showSizeSet();a.demoSetSize();a.showSize(b)},init:function(){var a=tinyMCEPopup.editor,b;b=document.body.innerHTML;document.body.innerHTML=a.translate(b);window.setTimeout(function(){wpImage.setup()},500)},setup:function(){var q=this,l,b,m,e,j=document.forms[0],i=tinyMCEPopup.editor,k=q.I(&quot;img_demo&quot;),h=tinyMCEPopup.dom,a,g,p=&quot;&quot;,o,n;document.dir=tinyMCEPopup.editor.getParam(&quot;directionality&quot;,&quot;&quot;);if(tinyMCEPopup.editor.getParam(&quot;wpeditimage_disable_captions&quot;,false)){q.I(&quot;cap_field&quot;).style.display=&quot;none&quot;}tinyMCEPopup.restoreSelection();b=i.selection.getNode();if(b.nodeName!=&quot;IMG&quot;){return}j.img_src.value=k.src=m=i.dom.getAttrib(b,&quot;src&quot;);i.dom.setStyle(b,&quot;float&quot;,&quot;&quot;);q.getImageData();l=i.dom.getAttrib(b,&quot;class&q
 uot;);if(a=h.getParent(b,&quot;dl&quot;)){o=i.dom.getAttrib(a,&quot;class&quot;);o=o.match(/align[^ &quot;']+/i);if(o&amp;&amp;!h.hasClass(b,o)){l+=&quot; &quot;+o;tinymce.trim(l)}g=i.dom.select(&quot;dd.wp-caption-dd&quot;,a);if(g&amp;&amp;g[0]){p=i.serializer.serialize(g[0]).replace(/^&lt;p&gt;/,&quot;&quot;).replace(/&lt;\/p&gt;$/,&quot;&quot;)}}j.img_cap_text.value=p;j.img_title.value=i.dom.getAttrib(b,&quot;title&quot;);j.img_alt.value=i.dom.getAttrib(b,&quot;alt&quot;);j.border.value=i.dom.getAttrib(b,&quot;border&quot;);j.vspace.value=i.dom.getAttrib(b,&quot;vspace&quot;);j.hspace.value=i.dom.getAttrib(b,&quot;hspace&quot;);j.align.value=i.dom.getAttrib(b,&quot;align&quot;);j.width.value=q.width=i.dom.getAttrib(b,&quot;width&quot;);j.height.value=q.height=i.dom.getAttrib(b,&quot;height&quot;);j.img_classes.value=l;j.img_style.value=i.dom.getAttrib(b,&quot;style&quot;);if(h.getAttrib(b,&quot;hspace&quot;)){q.updateStyle(&quot;hspace&quot;)}if(h.getAttrib(b,&quot;border
 &quot;)){q.updateStyle(&quot;border&quot;)}if(h.getAttrib(b,&quot;vspace&quot;)){q.updateStyle(&quot;vspace&quot;)}if(n=i.dom.getParent(b,&quot;A&quot;)){j.link_href.value=q.current=i.dom.getAttrib(n,&quot;href&quot;);j.link_title.value=i.dom.getAttrib(n,&quot;title&quot;);j.link_rel.value=q.link_rel=i.dom.getAttrib(n,&quot;rel&quot;);j.link_style.value=i.dom.getAttrib(n,&quot;style&quot;);q.target_value=i.dom.getAttrib(n,&quot;target&quot;);j.link_classes.value=i.dom.getAttrib(n,&quot;class&quot;)}j.link_target.checked=(q.target_value&amp;&amp;q.target_value==&quot;_blank&quot;)?&quot;checked&quot;:&quot;&quot;;e=m.substring(m.lastIndexOf(&quot;/&quot;));e=e.replace(/-[0-9]{2,4}x[0-9]{2,4}/,&quot;&quot;);q.link=m.substring(0,m.lastIndexOf(&quot;/&quot;))+e;if(l.indexOf(&quot;alignleft&quot;)!=-1){q.I(&quot;alignleft&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;alignleft&quot;}else{if(l.indexOf(&quot;aligncenter&quot;)!=-1){q.I(&quot;aligncenter&quot;).checke
 d=&quot;checked&quot;;k.className=q.align=&quot;aligncenter&quot;}else{if(l.indexOf(&quot;alignright&quot;)!=-1){q.I(&quot;alignright&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;alignright&quot;}else{if(l.indexOf(&quot;alignnone&quot;)!=-1){q.I(&quot;alignnone&quot;).checked=&quot;checked&quot;;k.className=q.align=&quot;alignnone&quot;}}}}if(q.width&amp;&amp;q.preloadImg.width){q.showSizeSet()}document.body.style.display=&quot;&quot;},remove:function(){var a=tinyMCEPopup.editor,c,b;tinyMCEPopup.restoreSelection();b=a.selection.getNode();if(b.nodeName!=&quot;IMG&quot;){return}if((c=a.dom.getParent(b,&quot;div&quot;))&amp;&amp;a.dom.hasClass(c,&quot;mceTemp&quot;)){a.dom.remove(c)}else{if((c=a.dom.getParent(b,&quot;A&quot;))&amp;&amp;c.childNodes.length==1){a.dom.remove(c)}else{a.dom.remove(b)}}a.execCommand(&quot;mceRepaint&quot;);tinyMCEPopup.close();return},update:function(){var m=this,v=document.forms[0],g=tinyMCEPopup.editor,e,y,d=null,n,h,p,r,o=null,k=v.
 img_classes.value,l,q,u=&quot;&quot;,j,i,s,a,B,x=&quot;&quot;,c,z,w;tinyMCEPopup.restoreSelection();e=g.selection.getNode();if(e.nodeName!=&quot;IMG&quot;){return}if(v.img_src.value===&quot;&quot;){m.remove();return}if(v.img_cap_text.value!=&quot;&quot;&amp;&amp;v.width.value!=&quot;&quot;){o=1;k=k.replace(/align[^ &quot;']+\s?/gi,&quot;&quot;)}p=g.dom.getParent(e,&quot;a&quot;);h=g.dom.getParent(e,&quot;p&quot;);n=g.dom.getParent(e,&quot;dl&quot;);r=g.dom.getParent(e,&quot;div&quot;);tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(v.width.value!=e.width||v.height.value!=e.height){k=k.replace(/size-[^ &quot;']+/,&quot;&quot;)}g.dom.setAttribs(e,{src:v.img_src.value,title:v.img_title.value,alt:v.img_alt.value,width:v.width.value,height:v.height.value,style:v.img_style.value,&quot;class&quot;:k});if(v.link_href.value){if(p==null){if(!v.link_href.value.match(/https?:\/\//i)){v.link_href.value=tinyMCEPopup.editor.documentBaseURI.toAbsolute(v.link_href.value)}g.getDoc(
 ).execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;mceInsertLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(g.dom.select(&quot;a&quot;),function(b){if(g.dom.getAttrib(b,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){g.dom.setAttribs(b,{href:v.link_href.value,title:v.link_title.value,rel:v.link_rel.value,target:(v.link_target.checked==true)?&quot;_blank&quot;:&quot;&quot;,&quot;class&quot;:v.link_classes.value,style:v.link_style.value})}})}else{g.dom.setAttribs(p,{href:v.link_href.value,title:v.link_title.value,rel:v.link_rel.value,target:(v.link_target.checked==true)?&quot;_blank&quot;:&quot;&quot;,&quot;class&quot;:v.link_classes.value,style:v.link_style.value})}}if(o){a=10+parseInt(v.width.value);B=(m.align==&quot;aligncenter&quot;)?&quot;mceTemp mceIEcenter&quot;:&quot;mceTemp&quot;;w=v.img_cap_text.value;w=w.replace(/\r\n|\r/g,&quot;\n&quot;).replace(/&lt;[a-zA-Z0-9]+( [^&lt;&gt;]+)?&gt;/g,function(b){b=b.replace(/[\r\n\t]
 +/,&quot; &quot;).replace(/=&quot;[^&quot;]+&quot;/,function(f){return f.replace(/'/g,&quot;&amp;#39;&quot;)});return b.replace(/&quot;/g,&quot;'&quot;)});w=w.replace(/\n+/g,&quot;&lt;br /&gt;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;);if(n){g.dom.setAttribs(n,{&quot;class&quot;:&quot;wp-caption &quot;+m.align,style:&quot;width: &quot;+a+&quot;px;&quot;});if(r){g.dom.setAttrib(r,&quot;class&quot;,B)}if((i=g.dom.getParent(e,&quot;dt&quot;))&amp;&amp;(s=i.nextSibling)&amp;&amp;g.dom.hasClass(s,&quot;wp-caption-dd&quot;)){g.dom.setHTML(s,w)}}else{if((q=v.img_classes.value.match(/wp-image-([0-9]{1,6})/))&amp;&amp;q[1]){u=&quot;attachment_&quot;+q[1]}if(v.link_href.value&amp;&amp;(x=g.dom.getParent(e,&quot;a&quot;))){if(x.childNodes.length==1){l=g.dom.getOuterHTML(x)}else{l=g.dom.getOuterHTML(x);l=l.match(/&lt;a [^&gt;]+&gt;/i);l=l+g.dom.getOuterHTML(e)+&quot;&lt;/a&gt;&quot;}}else{l=g.dom.getOuterHTML(e)}l='&lt;dl id=&quot;'+u+'&quot; class=&quot;wp-caption '+m.align+'&quo
 t; style=&quot;width: '+a+'px&quot;&gt;&lt;dt class=&quot;wp-caption-dt&quot;&gt;'+l+'&lt;/dt&gt;&lt;dd class=&quot;wp-caption-dd&quot;&gt;'+w+&quot;&lt;/dd&gt;&lt;/dl&gt;&quot;;j=g.dom.create(&quot;div&quot;,{&quot;class&quot;:B},l);if(h){h.parentNode.insertBefore(j,h);if(h.childNodes.length==1){g.dom.remove(h)}else{if(x&amp;&amp;x.childNodes.length==1){g.dom.remove(x)}else{g.dom.remove(e)}}}else{if(c=g.dom.getParent(e,&quot;TD,TH,LI&quot;)){c.appendChild(j);if(x&amp;&amp;x.childNodes.length==1){g.dom.remove(x)}else{g.dom.remove(e)}}}}}else{if(n&amp;&amp;r){if(v.link_href.value&amp;&amp;(z=g.dom.getParent(e,&quot;a&quot;))){l=g.dom.getOuterHTML(z)}else{l=g.dom.getOuterHTML(e)}h=g.dom.create(&quot;p&quot;,{},l);r.parentNode.insertBefore(h,r);g.dom.remove(r)}}if(v.img_classes.value.indexOf(&quot;aligncenter&quot;)!=-1){if(h&amp;&amp;(!h.style||h.style.textAlign!=&quot;center&quot;)){g.dom.setStyle(h,&quot;textAlign&quot;,&quot;center&quot;)}}else{if(h&amp;&amp;h.style&amp;&am
 p;h.style.textAlign==&quot;center&quot;){g.dom.setStyle(h,&quot;textAlign&quot;,&quot;&quot;)}}if(!v.link_href.value&amp;&amp;p){y=g.selection.getBookmark();g.dom.remove(p,1);g.selection.moveToBookmark(y)}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);g.execCommand(&quot;mceRepaint&quot;);tinyMCEPopup.close()},updateStyle:function(a){var e=tinyMCEPopup.dom,c,d=document.forms[0],b=e.create(&quot;img&quot;,{style:d.img_style.value});if(tinyMCEPopup.editor.settings.inline_styles){if(a==&quot;align&quot;){e.setStyle(b,&quot;float&quot;,&quot;&quot;);e.setStyle(b,&quot;vertical-align&quot;,&quot;&quot;);c=d.align.value;if(c){if(c==&quot;left&quot;||c==&quot;right&quot;){e.setStyle(b,&quot;float&quot;,c)}else{b.style.verticalAlign=c}}}if(a==&quot;border&quot;){e.setStyle(b,&quot;border&quot;,&quot;&quot;);c=d.border.value;if(c||c==&quot;0&quot;){if(c==&quot;0&quot;){b.style.border=&quot;0&quot;}else{b.style.border=c+&quot;px solid black&quot;}}}if(a==&quot;hspace&quot;){e.s
 etStyle(b,&quot;marginLeft&quot;,&quot;&quot;);e.setStyle(b,&quot;marginRight&quot;,&quot;&quot;);c=d.hspace.value;if(c){b.style.marginLeft=c+&quot;px&quot;;b.style.marginRight=c+&quot;px&quot;}}if(a==&quot;vspace&quot;){e.setStyle(b,&quot;marginTop&quot;,&quot;&quot;);e.setStyle(b,&quot;marginBottom&quot;,&quot;&quot;);c=d.vspace.value;if(c){b.style.marginTop=c+&quot;px&quot;;b.style.marginBottom=c+&quot;px&quot;}}d.img_style.value=e.serializeStyle(e.parseStyle(b.style.cssText));this.demoSetStyle()}},checkVal:function(a){if(a.value==&quot;&quot;){if(a.id==&quot;img_src&quot;){a.value=this.I(&quot;img_demo&quot;).src||this.preloadImg.src}}},resetImageData:function(){var a=document.forms[0];a.width.value=a.height.value=&quot;&quot;},updateImageData:function(){var d=document.forms[0],b=wpImage,a=d.width.value,c=d.height.value;if(!a&amp;&amp;c){a=d.width.value=b.width=Math.round(b.preloadImg.width/(b.preloadImg.height/c))}else{if(a&amp;&amp;!c){c=d.height.value=b.height=Math.ro
 und(b.preloadImg.height/(b.preloadImg.width/a))}}if(!a){d.width.value=b.width=b.preloadImg.width}if(!c){d.height.value=b.height=b.preloadImg.height}b.showSizeSet();b.demoSetSize();if(d.img_style.value){b.demoSetStyle()}},getImageData:function(){var a=wpImage,b=document.forms[0];a.preloadImg=new Image();a.preloadImg.onload=a.updateImageData;a.preloadImg.onerror=a.resetImageData;a.preloadImg.src=tinyMCEPopup.editor.documentBaseURI.toAbsolute(b.img_src.value)}};window.onload=function(){wpImage.init()};wpImage.preInit();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjswplinkjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wplink.js (20342 => 20343)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wplink.js        2012-04-02 22:26:11 UTC (rev 20342)
+++ trunk/wp-includes/js/wplink.js        2012-04-02 22:58:19 UTC (rev 20343)
</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,keySensitivity:100,lastSearch:&quot;&quot;,textarea:&quot;&quot;,init:function(){b.dialog=f(&quot;#wp-link&quot;);b.submit=f(&quot;#wp-link-submit&quot;);b.url=f(&quot;#url-field&quot;);b.nonce=f(&quot;#_ajax_linking_nonce&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);b.dialog.keydown(wpLink.keydown);b.dialog.keyup(wpLink.keyup);b.submit.click(function(g){g.preventDefault();wpLink.update()});f(&quot;#wp-link-cancel&quot;).click(function(g){g.preventDefault();wpLink.close()});f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.s
 earch.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpdialogrefresh&quot;,wpLink.refresh);b.dialog.bind(&quot;wpdialogbeforeopen&quot;,wpLink.beforeOpen);b.dialog.bind(&quot;wpdialogclose&quot;,wpLink.onClose)},beforeOpen:function(){wpLink.range=null;if(!wpLink.isMCE()&amp;&amp;document.selection){wpLink.textarea.focus();wpLink.range=document.selection.createRange()}},open:function(){if(!wpActiveEditor){return}this.textarea=f(&quot;#&quot;+wpActiveEditor).get(0);if(!b.dialog.data(&quot;wpdialog&quot;)){b.dialog.wpdialog({title:wpLinkL10n.title,width:480,height:&quot;auto&quot;,modal:true,dialogClass:&quot;wp-dialog&quot;,zIndex:300000})}b.dialog.wpdialog(&quot;open&quot;)},isMCE:function(){return tinyMCEPopup&amp;&amp;(d=tinyMCEPopup.editor)&amp;&amp;!d.isHidden()},refresh:function(){e.search.refresh();e.recent.refresh();if(wpLink.isMCE()){wpLink.mceRefresh()}else{wpLink.setDefaultValues()}b.url.focus()[0].select();if(!e.recent.ul.children().length){e.recent.ajax()}}
 ,mceRefresh:function(){var g;d=tinyMCEPopup.editor;tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;)){b.url.val(d.dom.getAttrib(g,&quot;href&quot;));b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.prop(&quot;checked&quot;,true)}b.submit.val(wpLinkL10n.update)}else{wpLink.setDefaultValues()}tinyMCEPopup.storeSelection()},close:function(){if(wpLink.isMCE()){tinyMCEPopup.close()}else{b.dialog.wpdialog(&quot;close&quot;)}},onClose:function(){if(!wpLink.isMCE()){wpLink.textarea.focus();if(wpLink.range){wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select()}}},getAttrs:function(){return{href:b.url.val(),title:b.title.val(),target:b.openInNewTab.prop(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;}},update:function(){if(wpLink.isMCE()){wpLink.mceUpdate()}else{wpLink.htmlUpdate()}},htmlUpdate:function(){var i,j,l,h,k,g=wpLink.textarea;if(
 !g){return}i=wpLink.getAttrs();if(!i.href||i.href==&quot;http://&quot;){return}j='&lt;a href=&quot;'+i.href+'&quot;';if(i.title){j+=' title=&quot;'+i.title+'&quot;'}if(i.target){j+=' target=&quot;'+i.target+'&quot;'}j+=&quot;&gt;&quot;;if(typeof g.selectionStart!==&quot;undefined&quot;){l=g.selectionStart;h=g.selectionEnd;selection=g.value.substring(l,h);j=j+selection+&quot;&lt;/a&gt;&quot;;k=l+j.length;if(l==h){k-=&quot;&lt;/a&gt;&quot;.length}g.value=g.value.substring(0,l)+j+g.value.substring(h,g.value.length);g.selectionStart=g.selectionEnd=k}else{if(document.selection&amp;&amp;wpLink.range){g.focus();wpLink.range.text=j+wpLink.range.text+&quot;&lt;/a&gt;&quot;;wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select();wpLink.range=null}}wpLink.close();g.focus()},mceUpdate:function(){var h=tinyMCEPopup.editor,i=wpLink.getAttrs(),j,g;tinyMCEPopup.restoreSelection();j=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&q
 uot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()}return}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(j==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(h.dom.select(&quot;a&quot;),function(k){if(h.dom.getAttrib(k,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){j=k;h.dom.setAttribs(j,i)}});if(f(j).text()==&quot;#mce_temp_url#&quot;){h.dom.remove(j);j=null}}else{h.dom.setAttribs(j,i)}if(j&amp;&amp;(j.childNodes.length!=1||j.firstChild.nodeName!=&quot;IMG&quot;)){h.focus();h.selection.select(j);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()},updateFields:function(i,h,g){b.url.val(h.children(&quot;.item-permalin
 k&quot;).val());b.title.val(h.hasClass(&quot;no-title&quot;)?&quot;&quot;:h.children(&quot;.item-title&quot;).text());if(g&amp;&amp;g.type==&quot;click&quot;){b.url.focus()}},setDefaultValues:function(){b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;);b.submit.val(wpLinkL10n.save)},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.hide();e.search.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.hide();e.recent.show()}},next:function(){e.search.next();e.recent.next()},prev:function(){e.search.prev();e.recent.prev()},keydown:function(i){var h,g=f.ui.keyCode;switch(i.which){case g.UP:h=&quot;prev&quot;;case g.DOWN:h=h||&quot;next&quot;;clearInterval(wpLink.keyInterval);wpLink[h]();wpLink.keyInterval=setInterval(wpLink[h],wpLink.keySensitivity);break;default:return}i.preventDefault()},keyup:function(h){var g=f.ui.ke
 yCode;switch(h.which){case g.ESCAPE:h.stopImmediatePropagation();if(!f(document).triggerHandler(&quot;wp_CloseOnEscape&quot;,[{event:h,what:&quot;wplink&quot;,cb:wpLink.close}])){wpLink.close()}return false;break;case g.UP:case g.DOWN:clearInterval(wpLink.keyInterval);break;default:return}h.preventDefault()},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}},toggleInternalLinking:function(h){var g=f(&quot;#search-panel&quot;),i=b.dialog.wpdialog(&quot;widget&quot;),k=!g.is(&quot;:visible&quot;),j=f(window);f(this).toggleClass(&quot;toggle-arrow-active&quot;,k);b.dialog.height(&quot;auto&quot;);g.slideToggle(300,function(){setUserSetting(&quot;wplink&quot;,k?&quot;1&quot;:&quot;0&quot;);b[k?&quot;search&quot;:&quot;url&quot;].focus();var l=j.scrollTop(),o=i.offset().top,m=o+i.outerHeight(),n=m-j.height();if(n&gt;l){i.animate({top
 :n&lt;o?o-n:l},200)}});h.preventDefault()}};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);this.refresh();i.scroll(function(){g.maybeLoad()});i.delegate(&quot;li&quot;,&quot;click&quot;,function(j){g.select(f(this),j)})};f.extend(a.prototype,{refresh:function(){this.deselect();this.visible=this.element.is(&quot;:visible&quot;)},show:function(){if(!this.visible){this.deselect();this.element.show();this.visible=true}},hide:function(){this.element.hide();this.visible=false},select:function(h,k){var j,i,l,g;if(h.hasClass(&quot;unselectable&quot;)||h==this.selected){return}this.deselect();this.selected=h.addClass(&quot;selected&quot;);j=h.outerHeight();i=this.element.height();l=h.position().top;g=this.element.scrollTop();if(l&lt;0){this.element.scrollTop(g+l)}else{if(l+j&gt;i){this.element.scrollTop(g+l-i+j)}}this.element.trigger(&quot;river-select&quot;,[h,k,this])},deselect:function(){i
 f(this.selected){this.selected.removeClass(&quot;selected&quot;)}this.selected=false},prev:function(){if(!this.visible){return}var g;if(this.selected){g=this.selected.prev(&quot;li&quot;);if(g.length){this.select(g)}}},next:function(){if(!this.visible){return}var g=this.selected?this.selected.next(&quot;li&quot;):f(&quot;li:not(.unselectable):first&quot;,this.element);if(g.length){this.select(g)}},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(h,l){var i=&quot;&quot;,j=true,g=&quot;&quot;,k=l.page==1;if(!h){if(k){i+='&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(h,function(){g=j
 ?&quot;alternate&quot;:&quot;&quot;;g+=this[&quot;title&quot;]?&quot;&quot;:&quot; no-title&quot;;i+=g?'&lt;li class=&quot;'+g+'&quot;&gt;':&quot;&lt;li&gt;&quot;;i+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';i+='&lt;span class=&quot;item-title&quot;&gt;';i+=this[&quot;title&quot;]?this[&quot;title&quot;]:wpLinkL10n.noTitle;i+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;j=!j})}this.ul[k?&quot;html&quot;:&quot;append&quot;](i)},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.timeToTriggerR
 iver)}});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,_ajax_linking_nonce:b.nonce.val()};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,keySensitivity:100,lastSearch:&quot;&quot;,textarea:&quot;&quot;,init:function(){b.dialog=f(&quot;#wp-link&quot;);b.submit=f(&quot;#wp-link-submit&quot;);b.url=f(&quot;#url-field&quot;);b.nonce=f(&quot;#_ajax_linking_nonce&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);b.dialog.keydown(wpLink.keydown);b.dialog.keyup(wpLink.keyup);b.submit.click(function(g){g.preventDefault();wpLink.update()});f(&quot;#wp-link-cancel&quot;).click(function(g){g.preventDefault();wpLink.close()});f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.s
 earch.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpdialogrefresh&quot;,wpLink.refresh);b.dialog.bind(&quot;wpdialogbeforeopen&quot;,wpLink.beforeOpen);b.dialog.bind(&quot;wpdialogclose&quot;,wpLink.onClose)},beforeOpen:function(){wpLink.range=null;if(!wpLink.isMCE()&amp;&amp;document.selection){wpLink.textarea.focus();wpLink.range=document.selection.createRange()}},open:function(){if(!wpActiveEditor){return}this.textarea=f(&quot;#&quot;+wpActiveEditor).get(0);if(!b.dialog.data(&quot;wpdialog&quot;)){b.dialog.wpdialog({title:wpLinkL10n.title,width:480,height:&quot;auto&quot;,modal:true,dialogClass:&quot;wp-dialog&quot;,zIndex:300000})}b.dialog.wpdialog(&quot;open&quot;)},isMCE:function(){return tinyMCEPopup&amp;&amp;(d=tinyMCEPopup.editor)&amp;&amp;!d.isHidden()},refresh:function(){e.search.refresh();e.recent.refresh();if(wpLink.isMCE()){wpLink.mceRefresh()}else{wpLink.setDefaultValues()}b.url.focus()[0].select();if(!e.recent.ul.children().length){e.recent.ajax()}}
 ,mceRefresh:function(){var g;d=tinyMCEPopup.editor;tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;)){b.url.val(d.dom.getAttrib(g,&quot;href&quot;));b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.prop(&quot;checked&quot;,true)}b.submit.val(wpLinkL10n.update)}else{wpLink.setDefaultValues()}tinyMCEPopup.storeSelection()},close:function(){if(wpLink.isMCE()){tinyMCEPopup.close()}else{b.dialog.wpdialog(&quot;close&quot;)}},onClose:function(){if(!wpLink.isMCE()){wpLink.textarea.focus();if(wpLink.range){wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select()}}},getAttrs:function(){return{href:b.url.val(),title:b.title.val(),target:b.openInNewTab.prop(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;}},update:function(){if(wpLink.isMCE()){wpLink.mceUpdate()}else{wpLink.htmlUpdate()}},htmlUpdate:function(){var i,j,l,h,k,g=wpLink.textarea;if(
 !g){return}i=wpLink.getAttrs();if(!i.href||i.href==&quot;http://&quot;){return}j='&lt;a href=&quot;'+i.href+'&quot;';if(i.title){j+=' title=&quot;'+i.title+'&quot;'}if(i.target){j+=' target=&quot;'+i.target+'&quot;'}j+=&quot;&gt;&quot;;if(typeof g.selectionStart!==&quot;undefined&quot;){l=g.selectionStart;h=g.selectionEnd;selection=g.value.substring(l,h);j=j+selection+&quot;&lt;/a&gt;&quot;;k=l+j.length;if(l==h){k-=&quot;&lt;/a&gt;&quot;.length}g.value=g.value.substring(0,l)+j+g.value.substring(h,g.value.length);g.selectionStart=g.selectionEnd=k}else{if(document.selection&amp;&amp;wpLink.range){g.focus();wpLink.range.text=j+wpLink.range.text+&quot;&lt;/a&gt;&quot;;wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select();wpLink.range=null}}wpLink.close();g.focus()},mceUpdate:function(){var h=tinyMCEPopup.editor,i=wpLink.getAttrs(),j,g;tinyMCEPopup.restoreSelection();j=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&q
 uot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()}return}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(j==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;mceInsertLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(h.dom.select(&quot;a&quot;),function(k){if(h.dom.getAttrib(k,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){j=k;h.dom.setAttribs(j,i)}});if(f(j).text()==&quot;#mce_temp_url#&quot;){h.dom.remove(j);j=null}}else{h.dom.setAttribs(j,i)}if(j&amp;&amp;(j.childNodes.length!=1||j.firstChild.nodeName!=&quot;IMG&quot;)){h.focus();h.selection.select(j);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()},updateFields:function(i,h,g){b.url.val(h.children(&quot;.item-perma
 link&quot;).val());b.title.val(h.hasClass(&quot;no-title&quot;)?&quot;&quot;:h.children(&quot;.item-title&quot;).text());if(g&amp;&amp;g.type==&quot;click&quot;){b.url.focus()}},setDefaultValues:function(){b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;);b.submit.val(wpLinkL10n.save)},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.hide();e.search.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.hide();e.recent.show()}},next:function(){e.search.next();e.recent.next()},prev:function(){e.search.prev();e.recent.prev()},keydown:function(i){var h,g=f.ui.keyCode;switch(i.which){case g.UP:h=&quot;prev&quot;;case g.DOWN:h=h||&quot;next&quot;;clearInterval(wpLink.keyInterval);wpLink[h]();wpLink.keyInterval=setInterval(wpLink[h],wpLink.keySensitivity);break;default:return}i.preventDefault()},keyup:function(h){var g=f.ui
 .keyCode;switch(h.which){case g.ESCAPE:h.stopImmediatePropagation();if(!f(document).triggerHandler(&quot;wp_CloseOnEscape&quot;,[{event:h,what:&quot;wplink&quot;,cb:wpLink.close}])){wpLink.close()}return false;break;case g.UP:case g.DOWN:clearInterval(wpLink.keyInterval);break;default:return}h.preventDefault()},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}},toggleInternalLinking:function(h){var g=f(&quot;#search-panel&quot;),i=b.dialog.wpdialog(&quot;widget&quot;),k=!g.is(&quot;:visible&quot;),j=f(window);f(this).toggleClass(&quot;toggle-arrow-active&quot;,k);b.dialog.height(&quot;auto&quot;);g.slideToggle(300,function(){setUserSetting(&quot;wplink&quot;,k?&quot;1&quot;:&quot;0&quot;);b[k?&quot;search&quot;:&quot;url&quot;].focus();var l=j.scrollTop(),o=i.offset().top,m=o+i.outerHeight(),n=m-j.height();if(n&gt;l){i.animate({
 top:n&lt;o?o-n:l},200)}});h.preventDefault()}};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);this.refresh();i.scroll(function(){g.maybeLoad()});i.delegate(&quot;li&quot;,&quot;click&quot;,function(j){g.select(f(this),j)})};f.extend(a.prototype,{refresh:function(){this.deselect();this.visible=this.element.is(&quot;:visible&quot;)},show:function(){if(!this.visible){this.deselect();this.element.show();this.visible=true}},hide:function(){this.element.hide();this.visible=false},select:function(h,k){var j,i,l,g;if(h.hasClass(&quot;unselectable&quot;)||h==this.selected){return}this.deselect();this.selected=h.addClass(&quot;selected&quot;);j=h.outerHeight();i=this.element.height();l=h.position().top;g=this.element.scrollTop();if(l&lt;0){this.element.scrollTop(g+l)}else{if(l+j&gt;i){this.element.scrollTop(g+l-i+j)}}this.element.trigger(&quot;river-select&quot;,[h,k,this])},deselect:function(
 ){if(this.selected){this.selected.removeClass(&quot;selected&quot;)}this.selected=false},prev:function(){if(!this.visible){return}var g;if(this.selected){g=this.selected.prev(&quot;li&quot;);if(g.length){this.select(g)}}},next:function(){if(!this.visible){return}var g=this.selected?this.selected.next(&quot;li&quot;):f(&quot;li:not(.unselectable):first&quot;,this.element);if(g.length){this.select(g)}},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(h,l){var i=&quot;&quot;,j=true,g=&quot;&quot;,k=l.page==1;if(!h){if(k){i+='&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(h,function(){
 g=j?&quot;alternate&quot;:&quot;&quot;;g+=this[&quot;title&quot;]?&quot;&quot;:&quot; no-title&quot;;i+=g?'&lt;li class=&quot;'+g+'&quot;&gt;':&quot;&lt;li&gt;&quot;;i+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';i+='&lt;span class=&quot;item-title&quot;&gt;';i+=this[&quot;title&quot;]?this[&quot;title&quot;]:wpLinkL10n.noTitle;i+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;j=!j})}this.ul[k?&quot;html&quot;:&quot;append&quot;](i)},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.timeToTrigg
 erRiver)}});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,_ajax_linking_nonce:b.nonce.val()};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="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (20342 => 20343)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2012-04-02 22:26:11 UTC (rev 20342)
+++ trunk/wp-includes/version.php        2012-04-02 22:58:19 UTC (rev 20343)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $wp_version
</span><span class="cx">  */
</span><del>-$wp_version = '3.4-alpha-20339';
</del><ins>+$wp_version = '3.4-alpha-20343';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
</span></span></pre>
</div>
</div>

</body>
</html>