<!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>[18070] trunk: s/Colse/Close/, props nacin, fixes #17399</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://trac.wordpress.org/changeset/18070">18070</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-05-29 05:07:32 +0000 (Sun, 29 May 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>s/Colse/Close/, props nacin, fixes <a href="http://trac.wordpress.org/ticket/17399">#17399</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjscommondevjs">trunk/wp-admin/js/common.dev.js</a></li>
<li><a href="#trunkwpadminjscommonjs">trunk/wp-admin/js/common.js</a></li>
<li><a href="#trunkwpadminjswpfullscreendevjs">trunk/wp-admin/js/wp-fullscreen.dev.js</a></li>
<li><a href="#trunkwpadminjswpfullscreenjs">trunk/wp-admin/js/wp-fullscreen.js</a></li>
<li><a href="#trunkwpincludesjsthickboxthickboxjs">trunk/wp-includes/js/thickbox/thickbox.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>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjscommondevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.dev.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.dev.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-admin/js/common.dev.js        2011-05-29 05:07:32 UTC (rev 18070)
</span><span class="lines">@@ -344,7 +344,7 @@
</span><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> // internal use
</span><del>-$(document).bind( 'wp_ColseOnEscape', function( e, data ) {
</del><ins>+$(document).bind( 'wp_CloseOnEscape', function( e, data ) {
</ins><span class="cx">         if ( typeof(data.cb) != 'function' )
</span><span class="cx">                 return;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjscommonjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-admin/js/common.js        2011-05-29 05:07:32 UTC (rev 18070)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var showNotice,adminMenu,columns,validateForm,screenMeta;(function(a){adminMenu={init:function(){var b=a(&quot;#adminmenu&quot;);a(&quot;.wp-menu-toggle&quot;,b).each(function(){var c=a(this),d=c.siblings(&quot;.wp-submenu&quot;);if(d.length){c.click(function(){adminMenu.toggle(d)})}else{c.hide()}});this.favorites();a(&quot;#collapse-menu&quot;,b).click(function(){if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){adminMenu.fold(1);deleteUserSetting(&quot;mfold&quot;)}else{adminMenu.fold();setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){this.fold()}},restoreMenuState:function(){},toggle:function(b){b.slideToggle(150,function(){var c=b.removeAttr(&quot;style&quot;).parent().toggleClass(&quot;wp-menu-open&quot;).attr(&quot;id&quot;);if(c){a(&quot;li.wp-has-submenu&quot;,&quot;#adminmenu&quot;).each(function(f,g){if(c==g.id){var d=a(g).hasClass(&quot;wp-menu-open&quot;)?&quot;o&quot;:&quot;c&quot;
 ;setUserSetting(&quot;m&quot;+f,d)}})}});return false},fold:function(b){if(b){a(&quot;body&quot;).removeClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).unbind()}else{a(&quot;body&quot;).addClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).hoverIntent({over:function(j){var d,c,g,k,i;d=a(this).find(&quot;.wp-submenu&quot;);c=a(this).offset().top+d.height()+1;g=a(&quot;#wpwrap&quot;).height();k=60+c-g;i=a(window).height()+a(window).scrollTop()-15;if(i&lt;(c-k)){k=c-i}if(k&gt;1){d.css({marginTop:&quot;-&quot;+k+&quot;px&quot;})}else{if(d.css(&quot;marginTop&quot;)){d.css({marginTop:&quot;&quot;})}}d.addClass(&quot;sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;).css({marginTop:&quot;&quot;})},timeout:220,sensitivity:8,interval:100})}},favorites:function(){a(&quot;#favorite-inside&quot;).width(a(&quot;#favorite-actions&quot;).width()-4);a(&quot;#favorite-toggle, #favorite-inside&quot;
 ).bind(&quot;mouseenter&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideUp&quot;).addClass(&quot;slideDown&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideDown&quot;)){a(&quot;#favorite-inside&quot;).slideDown(100);a(&quot;#favorite-first&quot;).addClass(&quot;slide-down&quot;)}},200)}).bind(&quot;mouseleave&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideDown&quot;).addClass(&quot;slideUp&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideUp&quot;)){a(&quot;#favorite-inside&quot;).slideUp(100,function(){a(&quot;#favorite-first&quot;).removeClass(&quot;slide-down&quot;)})}},300)})}};a(document).ready(function(){adminMenu.init()});columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})
 },saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=function(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&q
 uot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={links:{&quot;screen-options-link-wrap&quot;:&quot;screen-options-wrap&quot;,&quot;contextual-help-link-wrap&quot;:&quot;contextual-help-wrap&quot;},init:function(){a(&quot;.screen-meta-toggle&quot;).click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.links[this.id]){return}b=a(&quot;#&quot;+screenMeta.links[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){a(&quot;.screen-meta-toggle&quot;).not(c).css(&quot;visibility&quot;,&quot;hidden
 &quot;);b.slideDown(&quot;fast&quot;,function(){c.addClass(&quot;screen-meta-active&quot;)})},close:function(b,c){b.slideUp(&quot;fast&quot;,function(){c.removeClass(&quot;screen-meta-active&quot;);a(&quot;.screen-meta-toggle&quot;).css(&quot;visibility&quot;,&quot;&quot;)})}};a(document).ready(function(){var g=false,b,e,d,c,f;a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();f={doc:a(document),element:a(&quot;#user_info&quot;),open:function(){if(!f.element.hasClass(&quot;active&quot;)){f.element.addClass(&quot;active&quot;);f.doc.one(&quot;click&quot;,f.close);return false}},close:function(){f.element.removeClass(&quot;active&quot;)}};f.element.click(f.open);a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(h){if(&quot;un
 defined&quot;==h.shiftKey){return true}if(h.shiftKey){if(!g){return true}b=a(g).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);e=b.index(g);d=b.index(this);c=a(this).prop(&quot;checked&quot;);if(0&lt;e&amp;&amp;0&lt;d&amp;&amp;e!=d){b.slice(e,d).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return c}return false})}}g=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(j){var k=a(this).prop(&quot;checked&quot;),i=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,h=j.shiftKey||i;a(this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(h){return a(this).prop(&quot;checked&quot;)}else{if(k){return true}}return false});a(this).clo
 sest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(h){return false}else{if(k){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(m){if(m.keyCode!=9){return true}var j=m.target,o=j.selectionStart,i=j.selectionEnd,n=j.value,h,l;try{this.lastKey=9}catch(k){}if(document.selection){j.focus();l=document.selection.createRange();l.text=&quot;\t&quot;}else{if(o&gt;=0){h=this.scrollTop;j.value=n.substring(0,o).concat(&quot;\t&quot;,n.substring(i));j.selectionStart=j.selectionEnd=o+1;this.scrollTop=h}}if(m.stopPropagation){m.stopPropagation()}if(m.preventDefault){m.preventDefault()}});a(&quot;#newc
 ontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(h){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}})});a(document).bind(&quot;wp_ColseOnEscape&quot;,function(c,b){if(typeof(b.cb)!=&quot;function&quot;){return}if(typeof(b.condition)!=&quot;function&quot;||b.condition()){b.cb()}return true})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var showNotice,adminMenu,columns,validateForm,screenMeta;(function(a){adminMenu={init:function(){var b=a(&quot;#adminmenu&quot;);a(&quot;.wp-menu-toggle&quot;,b).each(function(){var c=a(this),d=c.siblings(&quot;.wp-submenu&quot;);if(d.length){c.click(function(){adminMenu.toggle(d)})}else{c.hide()}});this.favorites();a(&quot;#collapse-menu&quot;,b).click(function(){if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){adminMenu.fold(1);deleteUserSetting(&quot;mfold&quot;)}else{adminMenu.fold();setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){this.fold()}},restoreMenuState:function(){},toggle:function(b){b.slideToggle(150,function(){var c=b.removeAttr(&quot;style&quot;).parent().toggleClass(&quot;wp-menu-open&quot;).attr(&quot;id&quot;);if(c){a(&quot;li.wp-has-submenu&quot;,&quot;#adminmenu&quot;).each(function(f,g){if(c==g.id){var d=a(g).hasClass(&quot;wp-menu-open&quot;)?&quot;o&quot;:&quot;c&quot;
 ;setUserSetting(&quot;m&quot;+f,d)}})}});return false},fold:function(b){if(b){a(&quot;body&quot;).removeClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).unbind()}else{a(&quot;body&quot;).addClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).hoverIntent({over:function(j){var d,c,g,k,i;d=a(this).find(&quot;.wp-submenu&quot;);c=a(this).offset().top+d.height()+1;g=a(&quot;#wpwrap&quot;).height();k=60+c-g;i=a(window).height()+a(window).scrollTop()-15;if(i&lt;(c-k)){k=c-i}if(k&gt;1){d.css({marginTop:&quot;-&quot;+k+&quot;px&quot;})}else{if(d.css(&quot;marginTop&quot;)){d.css({marginTop:&quot;&quot;})}}d.addClass(&quot;sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;).css({marginTop:&quot;&quot;})},timeout:220,sensitivity:8,interval:100})}},favorites:function(){a(&quot;#favorite-inside&quot;).width(a(&quot;#favorite-actions&quot;).width()-4);a(&quot;#favorite-toggle, #favorite-inside&quot;
 ).bind(&quot;mouseenter&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideUp&quot;).addClass(&quot;slideDown&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideDown&quot;)){a(&quot;#favorite-inside&quot;).slideDown(100);a(&quot;#favorite-first&quot;).addClass(&quot;slide-down&quot;)}},200)}).bind(&quot;mouseleave&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideDown&quot;).addClass(&quot;slideUp&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideUp&quot;)){a(&quot;#favorite-inside&quot;).slideUp(100,function(){a(&quot;#favorite-first&quot;).removeClass(&quot;slide-down&quot;)})}},300)})}};a(document).ready(function(){adminMenu.init()});columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})
 },saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=function(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&q
 uot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={links:{&quot;screen-options-link-wrap&quot;:&quot;screen-options-wrap&quot;,&quot;contextual-help-link-wrap&quot;:&quot;contextual-help-wrap&quot;},init:function(){a(&quot;.screen-meta-toggle&quot;).click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.links[this.id]){return}b=a(&quot;#&quot;+screenMeta.links[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){a(&quot;.screen-meta-toggle&quot;).not(c).css(&quot;visibility&quot;,&quot;hidden
 &quot;);b.slideDown(&quot;fast&quot;,function(){c.addClass(&quot;screen-meta-active&quot;)})},close:function(b,c){b.slideUp(&quot;fast&quot;,function(){c.removeClass(&quot;screen-meta-active&quot;);a(&quot;.screen-meta-toggle&quot;).css(&quot;visibility&quot;,&quot;&quot;)})}};a(document).ready(function(){var g=false,b,e,d,c,f;a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();f={doc:a(document),element:a(&quot;#user_info&quot;),open:function(){if(!f.element.hasClass(&quot;active&quot;)){f.element.addClass(&quot;active&quot;);f.doc.one(&quot;click&quot;,f.close);return false}},close:function(){f.element.removeClass(&quot;active&quot;)}};f.element.click(f.open);a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(h){if(&quot;un
 defined&quot;==h.shiftKey){return true}if(h.shiftKey){if(!g){return true}b=a(g).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);e=b.index(g);d=b.index(this);c=a(this).prop(&quot;checked&quot;);if(0&lt;e&amp;&amp;0&lt;d&amp;&amp;e!=d){b.slice(e,d).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return c}return false})}}g=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(j){var k=a(this).prop(&quot;checked&quot;),i=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,h=j.shiftKey||i;a(this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(h){return a(this).prop(&quot;checked&quot;)}else{if(k){return true}}return false});a(this).clo
 sest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(h){return false}else{if(k){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(m){if(m.keyCode!=9){return true}var j=m.target,o=j.selectionStart,i=j.selectionEnd,n=j.value,h,l;try{this.lastKey=9}catch(k){}if(document.selection){j.focus();l=document.selection.createRange();l.text=&quot;\t&quot;}else{if(o&gt;=0){h=this.scrollTop;j.value=n.substring(0,o).concat(&quot;\t&quot;,n.substring(i));j.selectionStart=j.selectionEnd=o+1;this.scrollTop=h}}if(m.stopPropagation){m.stopPropagation()}if(m.preventDefault){m.preventDefault()}});a(&quot;#newc
 ontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(h){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}})});a(document).bind(&quot;wp_CloseOnEscape&quot;,function(c,b){if(typeof(b.cb)!=&quot;function&quot;){return}if(typeof(b.condition)!=&quot;function&quot;||b.condition()){b.cb()}return true})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreendevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.dev.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.dev.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-admin/js/wp-fullscreen.dev.js        2011-05-29 05:07:32 UTC (rev 18070)
</span><span class="lines">@@ -498,7 +498,7 @@
</span><span class="cx">                                                 }
</span><span class="cx">                                         };
</span><span class="cx"> 
</span><del>-                                        if ( ! jQuery(document).triggerHandler( 'wp_ColseOnEscape', [data] ) )
</del><ins>+                                        if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [data] ) )
</ins><span class="cx">                                                 fullscreen.off();
</span><span class="cx">                                 }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreenjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-admin/js/wp-fullscreen.js        2011-05-29 05:07:32 UTC (rev 18070)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var PubSub,fullscreen,wptitlehint;PubSub=function(){this.topics={}};PubSub.prototype.subscribe=function(a,b){if(!this.topics[a]){this.topics[a]=[]}this.topics[a].push(b);return b};PubSub.prototype.unsubscribe=function(b,e){var c,a,d=this.topics[b];if(!d){return e||[]}if(e){for(c=0,a=d.length;c&lt;a;c++){if(e==d[c]){d.splice(c,1)}}return e}else{this.topics[b]=[];return d}};PubSub.prototype.publish=function(c,b){var d,a,e,f=this.topics[c];if(!f){return}b=b||[];for(d=0,a=f.length;d&lt;a;d++){e=(f[d].apply(null,b)===false||e)}return !e};(function(c){var b,e,d,a;fullscreen=b={};e=b.pubsub=new PubSub();timer=0;block=false;a=b.settings={visible:false,mode:&quot;tinymce&quot;,editor_id:&quot;content&quot;,title_id:&quot;title&quot;,timer:0};d=function(i,h,g){g=g||1250;if(block){return}block=true;setTimeout(function(){block=false},400);if(a.timer){clearTimeout(a.timer)}else{e.publish(i)}function f(){e.publish(h);a.timer=0}a.timer=setTimeout(f,g)};b.on=function(){if(a.visi
 ble){return}a.mode=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)?&quot;tinymce&quot;:&quot;html&quot;;if(!a.element){b.ui.init()}a.is_mce_on=a.has_tinymce&amp;&amp;typeof(tinyMCE.get(a.editor_id))!=&quot;undefined&quot;;b.ui.fade(&quot;show&quot;,&quot;showing&quot;,&quot;shown&quot;)};b.off=function(){if(!a.visible){return}b.ui.fade(&quot;hide&quot;,&quot;hiding&quot;,&quot;hidden&quot;)};b.switchmode=function(g){var f=a.mode;if(!g||!a.visible||!a.has_tinymce){return f}if(f==g){return f}e.publish(&quot;switchMode&quot;,[f,g]);a.mode=g;e.publish(&quot;switchedMode&quot;,[f,g]);return g};b.save=function(){var h=c(&quot;#hiddenaction&quot;),f=h.val(),i=c(&quot;#wp-fullscreen-save img&quot;),g=c(&quot;#wp-fullscreen-save span&quot;);i.show();b.savecontent();h.val(&quot;wp-fullscreen-save-post&quot;);c.post(ajaxurl,c(&quot;form#post&quot;).serialize(),function(j){i.hide();g.show();setTimeout(function(){g.fadeOut(1000)},3000);if(j.last_edited){c(&quot;#wp-fullscreen-save i
 nput&quot;).attr(&quot;title&quot;,j.last_edited)}},&quot;json&quot;);h.val(f)};b.savecontent=function(){var f,g;c(&quot;#&quot;+a.title_id).val(c(&quot;#wp-fullscreen-title&quot;).val());if(a.mode===&quot;tinymce&quot;&amp;&amp;(f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;))){g=f.save()}else{g=c(&quot;#wp_mce_fullscreen&quot;).val()}c(&quot;#&quot;+a.editor_id).val(g);c(document).triggerHandler(&quot;wpcountwords&quot;,[g])};set_title_hint=function(f){if(!f.val().length){f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;&quot;)}else{f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};b.dfw_width=function(h){var g=c(&quot;#wp-fullscreen-wrap&quot;),f=g.width();if(!h){g.width(c(&quot;#wp-fullscreen-central-toolbar&quot;).width());deleteUserSetting(&quot;dfw_width&quot;);return}if(f&lt;200||f&gt;1200){return}g.width(h+f);setUserSetting(&quot;dfw_width&quot;,h+f)};e.subscribe(&quot;showToolbar&quot;,function(){a.toolbars.removeClass(&quot;
 fade-1000&quot;).addClass(&quot;fade-300&quot;);b.fade.In(a.toolbars,300,function(){e.publish(&quot;toolbarShown&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).addClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;hideToolbar&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;).addClass(&quot;fade-1000&quot;);b.fade.Out(a.toolbars,1000,function(){e.publish(&quot;toolbarHidden&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).removeClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;toolbarShown&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;)});e.subscribe(&quot;toolbarHidden&quot;,function(){a.toolbars.removeClass(&quot;fade-1000&quot;)});e.subscribe(&quot;show&quot;,function(){var f=c(&quot;#wp-fullscreen-title&quot;).val(c(&quot;#&quot;+a.title_id).val());set_title_hint(f);c(&quot;#wp-fullscreen-save input&quot;).attr(&quot;title&quot;,c(&quot;#last-edit&quot;).text());a.textarea_obj.value=edCanvas.value;if(a.has_tinymce&amp;&amp;a.mo
 de===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}a._edCanvas=edCanvas;edCanvas=a.textarea_obj;a.orig_y=c(window).scrollTop()});e.subscribe(&quot;showing&quot;,function(){c(document.body).addClass(&quot;fullscreen-active&quot;);b.refresh_buttons();c(document).bind(&quot;mousemove.fullscreen&quot;,function(f){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)});d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000);b.bind_resize();setTimeout(b.resize_textarea,200);scrollTo(0,0)});e.subscribe(&quot;shown&quot;,function(){a.visible=true;if(a.has_tinymce&amp;&amp;!a.is_mce_on){htmled=document.getElementById(a.editor_id),old_val=htmled.value;htmled.value=switchEditors.wpautop(old_val);tinyMCE.settings.setup=function(f){f.onInit.add(function(g){g.hide();delete tinyMCE.settings.setup;g.getElement().value=old_val})};tinyMCE.execCommand(&quot;mceAddControl&quot;,false,a.editor_id);a.is_mce_on=true}});e.subscribe(&quot;hide&quot;,function(){b.saveconten
 t();c(document).unbind(&quot;.fullscreen&quot;);c(a.textarea_obj).unbind(&quot;.grow&quot;);if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenSave&quot;)}set_title_hint(c(&quot;#&quot;+a.title_id));edCanvas=a._edCanvas;edCanvas.value=a.textarea_obj.value});e.subscribe(&quot;hiding&quot;,function(){if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:visible&quot;)){switchEditors.go(a.editor_id,&quot;tinymce&quot;)}else{if(a.mode==&quot;html&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)){switchEditors.go(a.editor_id,&quot;html&quot;)}}c(document.body).removeClass(&quot;fullscreen-active&quot;);scrollTo(0,a.orig_y)});e.subscribe(&quot;hidden&quot;,function(){a.visible=false;c(&quot;#wp_mce_fullscreen&quot;).removeAttr(&quot;style&quot;);if(a.has_tinymce&amp;&amp;a.is_mce_on){tinyMCE.execCommand(&quot;wpFullScreenClose&quot;)}a.textarea_obj.value=&quot;&quot;;b.ol
 dheight=0});e.subscribe(&quot;switchMode&quot;,function(h,g){var f;if(!a.has_tinymce||!a.is_mce_on){return}f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;);if(h===&quot;html&quot;&amp;&amp;g===&quot;tinymce&quot;){a.textarea_obj.value=switchEditors.wpautop(a.textarea_obj.value);if(&quot;undefined&quot;==typeof(f)){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}else{f.show()}}else{if(h===&quot;tinymce&quot;&amp;&amp;g===&quot;html&quot;){if(f){f.hide()}}}});e.subscribe(&quot;switchedMode&quot;,function(g,f){b.refresh_buttons(true);if(f===&quot;html&quot;){setTimeout(b.resize_textarea,200)}});b.b=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Bold&quot;)}};b.i=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Italic&quot;)}};b.ul=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertUnorderedList&quot;)}};b.ol=function(){if(a.has_tinymce&amp;&amp
 ;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertOrderedList&quot;)}};b.link=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Link&quot;)}else{wpLink.open()}};b.unlink=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;unlink&quot;)}};b.atd=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceWritingImprovementTool&quot;)}};b.help=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Help&quot;)}};b.blockquote=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceBlockQuote&quot;)}};b.refresh_buttons=function(f){f=f||false;if(a.mode===&quot;html&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-tmce-mode&quot;).addClass(&quot;wp-html-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).addClass(&
 quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).addClass(&quot;wp-html-mode&quot;)}}else{if(a.mode===&quot;tinymce&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-html-mode&quot;).addClass(&quot;wp-tmce-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).removeClass(&quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).removeClass(&quot;wp-html-mode&quot;)}}}};b.ui={init:function(){var f=c(&quot;#fullscreen-topbar&quot;),h=c(&quot;#wp_mce_fullscreen&quot;),g=0;a.toolbars=f.add(c(&quot;#wp-fullscreen-status&quot;));a.element=c(&quot;#fullscreen-fader&quot;);a.textarea_obj=h[0];a.has_tinymce=typeof(tinyMCE)!=&quot;undefined&quot;;if(!a.has_tinymce){c(&quot;#wp-fullscreen-mode-bar&quot;).hide()}if(wptitlehint){wptitlehint(&quot;wp-fullscreen-title&quot;)}c(document).keyup(function(k){var l=k.keyCode||k.charCode,i,j;if(!fullscreen.settings.visible){return
  true}if(navigator.platform&amp;&amp;navigator.platform.indexOf(&quot;Mac&quot;)!=-1){i=k.ctrlKey}else{i=k.altKey}if(27==l){j={event:k,what:&quot;dfw&quot;,cb:fullscreen.off,condition:function(){if(c(&quot;#TB_window&quot;).is(&quot;:visible&quot;)||c(&quot;.wp-dialog&quot;).is(&quot;:visible&quot;)){return false}return true}};if(!jQuery(document).triggerHandler(&quot;wp_ColseOnEscape&quot;,[j])){fullscreen.off()}}if(i&amp;&amp;(61==l||107==l||187==l)){b.dfw_width(25)}if(i&amp;&amp;(45==l||109==l||189==l)){b.dfw_width(-25)}if(i&amp;&amp;48==l){b.dfw_width(0)}return false});if(typeof(wpWordCount)!=&quot;undefined&quot;){h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==g){return true}if(13==i||8==g||46==g){c(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}g=i;return true})}f.mouseenter(function(i){a.toolbars.addClass(&quot;fullscreen-make-sticky&quot;);c(document).unbind(&quot;.fullscreen&quot;);clearTimeout(a.timer);a.timer=0}).mouseleave(function(i){a.toolb
 ars.removeClass(&quot;fullscreen-make-sticky&quot;);if(a.visible){c(document).bind(&quot;mousemove.fullscreen&quot;,function(j){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)})}})},fade:function(g,f,h){if(!a.element){b.ui.init()}if(g&amp;&amp;!e.publish(g)){return}b.fade.In(a.element,600,function(){if(f){e.publish(f)}b.fade.Out(a.element,600,function(){if(h){e.publish(h)}})})}};b.fade={transitionend:&quot;transitionend webkitTransitionEnd oTransitionEnd&quot;,sensitivity:100,In:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(b.fade.transitions){if(g.is(&quot;:visible&quot;)){g.addClass(&quot;fade-trigger&quot;);return g}g.show();g.first().one(this.transitionend,function(){i()});setTimeout(function(){g.addClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.css(&quot;opacity&quot;,1);g.first().fadeIn(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeIn(h)}}return g},Out:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(!g.is(&quot;:visi
 ble&quot;)){return g}if(b.fade.transitions){g.first().one(b.fade.transitionend,function(){if(g.hasClass(&quot;fade-trigger&quot;)){return}g.hide();i()});setTimeout(function(){g.removeClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.first().fadeOut(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeOut(h)}}return g},transitions:(function(){var f=document.documentElement.style;return(typeof(f.WebkitTransition)==&quot;string&quot;||typeof(f.MozTransition)==&quot;string&quot;||typeof(f.OTransition)==&quot;string&quot;||typeof(f.transition)==&quot;string&quot;)})()};b.bind_resize=function(){c(a.textarea_obj).bind(&quot;keypress.grow click.grow paste.grow&quot;,function(){setTimeout(b.resize_textarea,200)})};b.oldheight=0;b.resize_textarea=function(){var f=a.textarea_obj,g;g=f.scrollHeight&gt;300?f.scrollHeight:300;if(g!=b.oldheight){f.style.height=g+&quot;px&quot;;b.oldheight=g}}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var PubSub,fullscreen,wptitlehint;PubSub=function(){this.topics={}};PubSub.prototype.subscribe=function(a,b){if(!this.topics[a]){this.topics[a]=[]}this.topics[a].push(b);return b};PubSub.prototype.unsubscribe=function(b,e){var c,a,d=this.topics[b];if(!d){return e||[]}if(e){for(c=0,a=d.length;c&lt;a;c++){if(e==d[c]){d.splice(c,1)}}return e}else{this.topics[b]=[];return d}};PubSub.prototype.publish=function(c,b){var d,a,e,f=this.topics[c];if(!f){return}b=b||[];for(d=0,a=f.length;d&lt;a;d++){e=(f[d].apply(null,b)===false||e)}return !e};(function(c){var b,e,d,a;fullscreen=b={};e=b.pubsub=new PubSub();timer=0;block=false;a=b.settings={visible:false,mode:&quot;tinymce&quot;,editor_id:&quot;content&quot;,title_id:&quot;title&quot;,timer:0};d=function(i,h,g){g=g||1250;if(block){return}block=true;setTimeout(function(){block=false},400);if(a.timer){clearTimeout(a.timer)}else{e.publish(i)}function f(){e.publish(h);a.timer=0}a.timer=setTimeout(f,g)};b.on=function(){if(a.visi
 ble){return}a.mode=c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)?&quot;tinymce&quot;:&quot;html&quot;;if(!a.element){b.ui.init()}a.is_mce_on=a.has_tinymce&amp;&amp;typeof(tinyMCE.get(a.editor_id))!=&quot;undefined&quot;;b.ui.fade(&quot;show&quot;,&quot;showing&quot;,&quot;shown&quot;)};b.off=function(){if(!a.visible){return}b.ui.fade(&quot;hide&quot;,&quot;hiding&quot;,&quot;hidden&quot;)};b.switchmode=function(g){var f=a.mode;if(!g||!a.visible||!a.has_tinymce){return f}if(f==g){return f}e.publish(&quot;switchMode&quot;,[f,g]);a.mode=g;e.publish(&quot;switchedMode&quot;,[f,g]);return g};b.save=function(){var h=c(&quot;#hiddenaction&quot;),f=h.val(),i=c(&quot;#wp-fullscreen-save img&quot;),g=c(&quot;#wp-fullscreen-save span&quot;);i.show();b.savecontent();h.val(&quot;wp-fullscreen-save-post&quot;);c.post(ajaxurl,c(&quot;form#post&quot;).serialize(),function(j){i.hide();g.show();setTimeout(function(){g.fadeOut(1000)},3000);if(j.last_edited){c(&quot;#wp-fullscreen-save i
 nput&quot;).attr(&quot;title&quot;,j.last_edited)}},&quot;json&quot;);h.val(f)};b.savecontent=function(){var f,g;c(&quot;#&quot;+a.title_id).val(c(&quot;#wp-fullscreen-title&quot;).val());if(a.mode===&quot;tinymce&quot;&amp;&amp;(f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;))){g=f.save()}else{g=c(&quot;#wp_mce_fullscreen&quot;).val()}c(&quot;#&quot;+a.editor_id).val(g);c(document).triggerHandler(&quot;wpcountwords&quot;,[g])};set_title_hint=function(f){if(!f.val().length){f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;&quot;)}else{f.siblings(&quot;label&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};b.dfw_width=function(h){var g=c(&quot;#wp-fullscreen-wrap&quot;),f=g.width();if(!h){g.width(c(&quot;#wp-fullscreen-central-toolbar&quot;).width());deleteUserSetting(&quot;dfw_width&quot;);return}if(f&lt;200||f&gt;1200){return}g.width(h+f);setUserSetting(&quot;dfw_width&quot;,h+f)};e.subscribe(&quot;showToolbar&quot;,function(){a.toolbars.removeClass(&quot;
 fade-1000&quot;).addClass(&quot;fade-300&quot;);b.fade.In(a.toolbars,300,function(){e.publish(&quot;toolbarShown&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).addClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;hideToolbar&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;).addClass(&quot;fade-1000&quot;);b.fade.Out(a.toolbars,1000,function(){e.publish(&quot;toolbarHidden&quot;)},true);c(&quot;#wp-fullscreen-body&quot;).removeClass(&quot;wp-fullscreen-focus&quot;)});e.subscribe(&quot;toolbarShown&quot;,function(){a.toolbars.removeClass(&quot;fade-300&quot;)});e.subscribe(&quot;toolbarHidden&quot;,function(){a.toolbars.removeClass(&quot;fade-1000&quot;)});e.subscribe(&quot;show&quot;,function(){var f=c(&quot;#wp-fullscreen-title&quot;).val(c(&quot;#&quot;+a.title_id).val());set_title_hint(f);c(&quot;#wp-fullscreen-save input&quot;).attr(&quot;title&quot;,c(&quot;#last-edit&quot;).text());a.textarea_obj.value=edCanvas.value;if(a.has_tinymce&amp;&amp;a.mo
 de===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}a._edCanvas=edCanvas;edCanvas=a.textarea_obj;a.orig_y=c(window).scrollTop()});e.subscribe(&quot;showing&quot;,function(){c(document.body).addClass(&quot;fullscreen-active&quot;);b.refresh_buttons();c(document).bind(&quot;mousemove.fullscreen&quot;,function(f){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)});d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000);b.bind_resize();setTimeout(b.resize_textarea,200);scrollTo(0,0)});e.subscribe(&quot;shown&quot;,function(){a.visible=true;if(a.has_tinymce&amp;&amp;!a.is_mce_on){htmled=document.getElementById(a.editor_id),old_val=htmled.value;htmled.value=switchEditors.wpautop(old_val);tinyMCE.settings.setup=function(f){f.onInit.add(function(g){g.hide();delete tinyMCE.settings.setup;g.getElement().value=old_val})};tinyMCE.execCommand(&quot;mceAddControl&quot;,false,a.editor_id);a.is_mce_on=true}});e.subscribe(&quot;hide&quot;,function(){b.saveconten
 t();c(document).unbind(&quot;.fullscreen&quot;);c(a.textarea_obj).unbind(&quot;.grow&quot;);if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;){tinyMCE.execCommand(&quot;wpFullScreenSave&quot;)}set_title_hint(c(&quot;#&quot;+a.title_id));edCanvas=a._edCanvas;edCanvas.value=a.textarea_obj.value});e.subscribe(&quot;hiding&quot;,function(){if(a.has_tinymce&amp;&amp;a.mode===&quot;tinymce&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:visible&quot;)){switchEditors.go(a.editor_id,&quot;tinymce&quot;)}else{if(a.mode==&quot;html&quot;&amp;&amp;c(&quot;#&quot;+a.editor_id).is(&quot;:hidden&quot;)){switchEditors.go(a.editor_id,&quot;html&quot;)}}c(document.body).removeClass(&quot;fullscreen-active&quot;);scrollTo(0,a.orig_y)});e.subscribe(&quot;hidden&quot;,function(){a.visible=false;c(&quot;#wp_mce_fullscreen&quot;).removeAttr(&quot;style&quot;);if(a.has_tinymce&amp;&amp;a.is_mce_on){tinyMCE.execCommand(&quot;wpFullScreenClose&quot;)}a.textarea_obj.value=&quot;&quot;;b.ol
 dheight=0});e.subscribe(&quot;switchMode&quot;,function(h,g){var f;if(!a.has_tinymce||!a.is_mce_on){return}f=tinyMCE.get(&quot;wp_mce_fullscreen&quot;);if(h===&quot;html&quot;&amp;&amp;g===&quot;tinymce&quot;){a.textarea_obj.value=switchEditors.wpautop(a.textarea_obj.value);if(&quot;undefined&quot;==typeof(f)){tinyMCE.execCommand(&quot;wpFullScreenInit&quot;)}else{f.show()}}else{if(h===&quot;tinymce&quot;&amp;&amp;g===&quot;html&quot;){if(f){f.hide()}}}});e.subscribe(&quot;switchedMode&quot;,function(g,f){b.refresh_buttons(true);if(f===&quot;html&quot;){setTimeout(b.resize_textarea,200)}});b.b=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Bold&quot;)}};b.i=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;Italic&quot;)}};b.ul=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertUnorderedList&quot;)}};b.ol=function(){if(a.has_tinymce&amp;&amp
 ;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;InsertOrderedList&quot;)}};b.link=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Link&quot;)}else{wpLink.open()}};b.unlink=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;unlink&quot;)}};b.atd=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceWritingImprovementTool&quot;)}};b.help=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;WP_Help&quot;)}};b.blockquote=function(){if(a.has_tinymce&amp;&amp;&quot;tinymce&quot;===a.mode){tinyMCE.execCommand(&quot;mceBlockQuote&quot;)}};b.refresh_buttons=function(f){f=f||false;if(a.mode===&quot;html&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-tmce-mode&quot;).addClass(&quot;wp-html-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).addClass(&
 quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).addClass(&quot;wp-html-mode&quot;)}}else{if(a.mode===&quot;tinymce&quot;){c(&quot;#wp-fullscreen-mode-bar&quot;).removeClass(&quot;wp-html-mode&quot;).addClass(&quot;wp-tmce-mode&quot;);if(f){c(&quot;#wp-fullscreen-button-bar&quot;).fadeOut(150,function(){c(this).removeClass(&quot;wp-html-mode&quot;).fadeIn(150)})}else{c(&quot;#wp-fullscreen-button-bar&quot;).removeClass(&quot;wp-html-mode&quot;)}}}};b.ui={init:function(){var f=c(&quot;#fullscreen-topbar&quot;),h=c(&quot;#wp_mce_fullscreen&quot;),g=0;a.toolbars=f.add(c(&quot;#wp-fullscreen-status&quot;));a.element=c(&quot;#fullscreen-fader&quot;);a.textarea_obj=h[0];a.has_tinymce=typeof(tinyMCE)!=&quot;undefined&quot;;if(!a.has_tinymce){c(&quot;#wp-fullscreen-mode-bar&quot;).hide()}if(wptitlehint){wptitlehint(&quot;wp-fullscreen-title&quot;)}c(document).keyup(function(k){var l=k.keyCode||k.charCode,i,j;if(!fullscreen.settings.visible){return
  true}if(navigator.platform&amp;&amp;navigator.platform.indexOf(&quot;Mac&quot;)!=-1){i=k.ctrlKey}else{i=k.altKey}if(27==l){j={event:k,what:&quot;dfw&quot;,cb:fullscreen.off,condition:function(){if(c(&quot;#TB_window&quot;).is(&quot;:visible&quot;)||c(&quot;.wp-dialog&quot;).is(&quot;:visible&quot;)){return false}return true}};if(!jQuery(document).triggerHandler(&quot;wp_CloseOnEscape&quot;,[j])){fullscreen.off()}}if(i&amp;&amp;(61==l||107==l||187==l)){b.dfw_width(25)}if(i&amp;&amp;(45==l||109==l||189==l)){b.dfw_width(-25)}if(i&amp;&amp;48==l){b.dfw_width(0)}return false});if(typeof(wpWordCount)!=&quot;undefined&quot;){h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==g){return true}if(13==i||8==g||46==g){c(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}g=i;return true})}f.mouseenter(function(i){a.toolbars.addClass(&quot;fullscreen-make-sticky&quot;);c(document).unbind(&quot;.fullscreen&quot;);clearTimeout(a.timer);a.timer=0}).mouseleave(function(i){a.toolb
 ars.removeClass(&quot;fullscreen-make-sticky&quot;);if(a.visible){c(document).bind(&quot;mousemove.fullscreen&quot;,function(j){d(&quot;showToolbar&quot;,&quot;hideToolbar&quot;,2000)})}})},fade:function(g,f,h){if(!a.element){b.ui.init()}if(g&amp;&amp;!e.publish(g)){return}b.fade.In(a.element,600,function(){if(f){e.publish(f)}b.fade.Out(a.element,600,function(){if(h){e.publish(h)}})})}};b.fade={transitionend:&quot;transitionend webkitTransitionEnd oTransitionEnd&quot;,sensitivity:100,In:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(b.fade.transitions){if(g.is(&quot;:visible&quot;)){g.addClass(&quot;fade-trigger&quot;);return g}g.show();g.first().one(this.transitionend,function(){i()});setTimeout(function(){g.addClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.css(&quot;opacity&quot;,1);g.first().fadeIn(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeIn(h)}}return g},Out:function(g,h,i,f){i=i||c.noop;h=h||400;f=f||false;if(!g.is(&quot;:visi
 ble&quot;)){return g}if(b.fade.transitions){g.first().one(b.fade.transitionend,function(){if(g.hasClass(&quot;fade-trigger&quot;)){return}g.hide();i()});setTimeout(function(){g.removeClass(&quot;fade-trigger&quot;)},this.sensitivity)}else{if(f){g.stop()}g.first().fadeOut(h,i);if(g.length&gt;1){g.not(&quot;:first&quot;).fadeOut(h)}}return g},transitions:(function(){var f=document.documentElement.style;return(typeof(f.WebkitTransition)==&quot;string&quot;||typeof(f.MozTransition)==&quot;string&quot;||typeof(f.OTransition)==&quot;string&quot;||typeof(f.transition)==&quot;string&quot;)})()};b.bind_resize=function(){c(a.textarea_obj).bind(&quot;keypress.grow click.grow paste.grow&quot;,function(){setTimeout(b.resize_textarea,200)})};b.oldheight=0;b.resize_textarea=function(){var f=a.textarea_obj,g;g=f.scrollHeight&gt;300?f.scrollHeight:300;if(g!=b.oldheight){f.style.height=g+&quot;px&quot;;b.oldheight=g}}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsthickboxthickboxjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/thickbox/thickbox.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/thickbox/thickbox.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-includes/js/thickbox/thickbox.js        2011-05-29 05:07:32 UTC (rev 18070)
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx">                                 e.stopImmediatePropagation();
</span><span class="cx"> 
</span><span class="cx">                                 if ( e.which == 27 ){ // close
</span><del>-                                        if ( ! jQuery(document).triggerHandler( 'wp_ColseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
</del><ins>+                                        if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
</ins><span class="cx">                                                 tb_remove();
</span><span class="cx"> 
</span><span class="cx">                                 } else if ( e.which == 190 ){ // display previous image
</span><span class="lines">@@ -253,7 +253,7 @@
</span><span class="cx"> 
</span><span class="cx">                                 if ( e.which == 27 ){ // close
</span><span class="cx">                                         e.stopImmediatePropagation();
</span><del>-                                        if ( ! jQuery(document).triggerHandler( 'wp_ColseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
</del><ins>+                                        if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
</ins><span class="cx">                                                 tb_remove();
</span><span class="cx"> 
</span><span class="cx">                                         return false;
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2011-05-29 05:07:32 UTC (rev 18070)
</span><span class="lines">@@ -337,7 +337,7 @@
</span><span class="cx">                         switch( event.which ) {
</span><span class="cx">                                 case key.ESCAPE:
</span><span class="cx">                                         event.stopImmediatePropagation();
</span><del>-                                        if ( ! $(document).triggerHandler( 'wp_ColseOnEscape', [{ event: event, what: 'wplink', cb: wpLink.close }] ) )
</del><ins>+                                        if ( ! $(document).triggerHandler( 'wp_CloseOnEscape', [{ event: event, what: 'wplink', cb: wpLink.close }] ) )
</ins><span class="cx">                                                 wpLink.close();
</span><span class="cx"> 
</span><span class="cx">                                         return false;
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js (18069 => 18070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2011-05-29 02:04:52 UTC (rev 18069)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2011-05-29 05:07:32 UTC (rev 18070)
</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:function(){return edCanvas},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.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){wpLink.update();g.preventDefault()});f(&quot;#wp-link-cancel&quot;).click(wpLink.close);f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpd
 ialogrefresh&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(!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(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.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;'}i
 f(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://&quot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execComma
 nd(&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-permalink&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.f
 ocus()}},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_ColseOnEscape&quot;,[{event:h,what:&quot;wplink&quot;,cb:wpLi
 nk.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.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.allLoad
 ed)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page,_ajax_linking_nonce:f(&quot;#_ajax_linking_nonce&quot;).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:function(){return edCanvas},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.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){wpLink.update();g.preventDefault()});f(&quot;#wp-link-cancel&quot;).click(wpLink.close);f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpd
 ialogrefresh&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(!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(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.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;'}i
 f(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://&quot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execComma
 nd(&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-permalink&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.f
 ocus()}},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:wpLi
 nk.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.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.allLoad
 ed)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page,_ajax_linking_nonce:f(&quot;#_ajax_linking_nonce&quot;).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>
</div>

</body>
</html>