<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[12030] trunk: Fix tags and categories postboxes in PressThis</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12030">12030</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-10-14 07:30:10 +0000 (Wed, 14 Oct 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix tags and categories postboxes in PressThis</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsspressthiscss">trunk/wp-admin/css/press-this.css</a></li>
<li><a href="#trunkwpadmincsspressthisdevcss">trunk/wp-admin/css/press-this.dev.css</a></li>
<li><a href="#trunkwpadminjspostdevjs">trunk/wp-admin/js/post.dev.js</a></li>
<li><a href="#trunkwpadminjspostjs">trunk/wp-admin/js/post.js</a></li>
<li><a href="#trunkwpadminpressthisphp">trunk/wp-admin/press-this.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsspressthiscss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/press-this.css (12029 => 12030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/press-this.css        2009-10-14 05:53:49 UTC (rev 12029)
+++ trunk/wp-admin/css/press-this.css        2009-10-14 07:30:10 UTC (rev 12030)
</span><span class="lines">@@ -1 +1 @@
</span><del>-body{font:13px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;color:#333;margin:0;padding:0;}img{border:none;}#wphead{border-top:none;padding-top:4px;background:#444!important;}.tagchecklist span a{background:transparent url(../images/xit.gif) no-repeat 0 0;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-style:solid;border-width:1px;cursor:pointer;display:block;height:18px;margin:0 5px 0 0;padding:0 5px 0;font-size:10px;line-height:18px;float:left;}.howto{margin-top:2px;margin-bottom:3px;font-size:11px;font-style:italic;display:block;}input.text{outline-color:-moz-use-text-color;outline-style:none;outline-width:medium;width:100%;}#message{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}div#poststuff{margin:10px;}div.zerosize{border:0 none;height:0;margin:0;overflow:hidden;padding:0;position:absolute;width:0;}#poststuff #edButtonPreview.active,#poststuff #edButtonHTML.active{display:none;}.posting{margin-right:212px;position:relative;left:0;}* html .posting{width:470px;}#side-info-column{float:right;width:200px;}#side-info-column .sleeve{padding-top:5px;}#poststuff .inside{font-size:11px;margin:8px;}#poststuff h2,#poststuff h3{font-size:12px;font-weight:bold;line-height:1;margin:0;padding:7px 9px;}#tagsdiv-post_tag h3,#categorydiv h3{cursor:pointer;}h3.tb{text-shadow:0 1px 0 #fff;font-weight:bold;font-size:12px;margin-left:5px;}#TB_window{border:1px solid #333;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.postbox,.stuffbox{margin-bottom:10px;border-width:1px;border-style:solid;line-height:1;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}#title,.tbtitle{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border-style:solid;border-width:1px;font-size:1.7em;outline:none;padding:3px 4px;border-color:#dfdfdf;}.tbtitle{font-size:12px;padding:3px;}#title{width:97%;}.editor-container{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #dfdfdf;background-color:#fff;}.postdivrich{position:relative;padding-top:25px;}#actions{float:right;margin:-19px 0 0;}#extra_fields #actions{clear:both;position:relative;right:0;margin:-24px 0 0;}#actions li{float:left;list-style:none;margin-right:10px;}#extra_fields .button{margin-right:5px;padding:3px 6px;border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;}.photolist{margin-top:-10px;}#photo_saving{margin:0 8px 8px;vertical-align:middle;}#img_container{background-color:#fff;}#img_container_container{overflow:auto;}#extra_fields{margin-top:10px;position:relative;}#extra_fields .postbox{margin-bottom:5px;}#extra_fields .titlewrap{padding:0;overflow:auto;height:100px;}#img_container{position:relative;}#img_container a{display:block;float:left;overflow:hidden;vertical-align:center;}#img_container img,#img_container a{width:68px;height:68px;}#img_container img{border:none;background-color:#f4f4f4;cursor:pointer;}#img_container a,#img_container a:link,#img_container a:visited{border:1px solid #ccc;display:block;position:relative;}#img_container a:hover,#img_container a:active{border-color:#000;z-index:1000;border-width:2px;margin:-1px;}#embed-code{width:100%;height:98px;}#viewsite{padding:0;margin:0 0 20px 0;font-size:10px;clear:both;}#viewsite .button{margin:0;display:block;}.wp-hidden-children .wp-hidden-child{display:none;}#category-adder{padding:4px 0;}#category-adder h4{margin:0 0 8px;}#category-add input{width:94%;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;margin:1px;padding:3px;}#category-add select{width:70%;-x-system-font:none;border-style:solid;border-width:1px;font-family:&quot;Lucida Grande&quot;,&quot;Bitstream Vera Sans&quot;,Verdana,Arial,sans-serif;font-size:12px;height:2em;line-height:20px;padding:2px;margin:1px;vertical-align:top;}#category-add input,#category-add-sumbit{width:auto;}#categorydiv ul,#linkcategorydiv ul{list-style:none;padding:0;margin:0;}#categorydiv ul.categorychecklist ul{margin-left:18px;}#categorydiv div.tabs-panel{height:140px;overflow:auto;}ul.categorychecklist li{margin:0;padding:0;line-height:19px;}.tagsdiv .newtag{margin-right:5px;}.jaxtag{clear:both;margin:0;}.tagadd{margin-left:3px;}.tagchecklist{margin-top:3px;margin-bottom:1em;font-size:12px;overflow:auto;}.tagchecklist strong{position:absolute;font-size:.75em;}.tagchecklist span{margin-right:.5em;margin-left:10px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;}.tagchecklist span a{margin:6px 0 0 -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;}#content{margin:5px 0;padding:0 5px;border:0 none;height:365px;width:97%!important;}#saving{display:inline;vertical-align:middle;}.submit input,.button,.button-primary,.button-secondary,.button-highlighted,#postcustomstuff .submit input{font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;text-decoration:none;font-size:11px!important;line-height:16px;padding:2px 8px;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;}.button-primary{background:#21759B url(../images/button-grad.png) repeat-x scroll left top;border-color:#21759B;color:#fff;}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;}.ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;}.ac_over{cursor:pointer;}.ac_match{text-decoration:underline;}#TB_ajaxContent #options{position:absolute;top:20px;right:25px;padding:5px;}#TB_ajaxContent h3{margin-bottom:.25em;}.updated{margin:10px 0;padding:0;border-width:1px;border-style:solid;width:99%;}.updated p,.error p{margin:.6em 0;padding:0 .6em;}.error a{text-decoration:underline;}.updated a{text-decoration:none;padding-bottom:2px;}#post_status{margin-left:10px;margin-bottom:1em;display:block;}#footer{height:65px;display:block;width:640px;padding:10px 0 0 60px;margin:0;position:absolute;bottom:0;font-size:12px;}#footer p{margin:0;padding:7px 0;}#footer p a{text-decoration:none;}#footer p a:hover{text-decoration:underline;}.centered{text-align:center;}.hidden{display:none;}.postbox input[type=&quot;text&quot;],.postbox textarea,.stuffbox input[type=&quot;text&quot;],.stuffbox textarea{border-width:1px;border-style:solid;}.screen-reader-text {display: none;}
</del><span class="cx">\ No newline at end of file
</span><ins>+body{font:13px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;color:#333;margin:0;padding:0;}img{border:none;}#wphead{border-top:none;padding-top:4px;background:#444!important;}.tagchecklist span a{background:transparent url(../images/xit.gif) no-repeat 0 0;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-style:solid;border-width:1px;cursor:pointer;display:block;height:18px;margin:0 5px 0 0;padding:0 5px 0;font-size:10px;line-height:18px;float:left;}.howto{margin-top:2px;margin-bottom:3px;font-size:11px;font-style:italic;display:block;}input.text{outline-color:-moz-use-text-color;outline-style:none;outline-width:medium;width:100%;}#message{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}div#poststuff{margin:10px;}div.zerosize{border:0 none;height:0;margin:0;overflow:hidden;padding:0;position:absolute;width:0;}#poststuff #edButtonPreview.active,#poststuff #edButtonHTML.active{display:none;}.posting{margin-right:212px;position:relative;left:0;}* html .posting{width:470px;}#side-info-column{float:right;width:200px;}#side-info-column .sleeve{padding-top:5px;}#poststuff .inside{font-size:11px;margin:8px;}#poststuff h2,#poststuff h3{font-size:12px;font-weight:bold;line-height:1;margin:0;padding:7px 9px;}#tagsdiv-post_tag h3,#categorydiv h3{cursor:pointer;}h3.tb{text-shadow:0 1px 0 #fff;font-weight:bold;font-size:12px;margin-left:5px;}#TB_window{border:1px solid #333;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.postbox,.stuffbox{margin-bottom:10px;border-width:1px;border-style:solid;line-height:1;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}#title,.tbtitle{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border-style:solid;border-width:1px;font-size:1.7em;outline:none;padding:3px 4px;border-color:#dfdfdf;}.tbtitle{font-size:12px;padding:3px;}#title{width:97%;}.editor-container{-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #dfdfdf;background-color:#fff;}.postdivrich{position:relative;padding-top:25px;}#actions{float:right;margin:-19px 0 0;}#extra_fields #actions{clear:both;position:relative;right:0;margin:-24px 0 0;}#actions li{float:left;list-style:none;margin-right:10px;}#extra_fields .button{margin-right:5px;padding:3px 6px;border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;}.photolist{margin-top:-10px;}#photo_saving{margin:0 8px 8px;vertical-align:middle;}#img_container{background-color:#fff;}#img_container_container{overflow:auto;}#extra_fields{margin-top:10px;position:relative;}#extra_fields .postbox{margin-bottom:5px;}#extra_fields .titlewrap{padding:0;overflow:auto;height:100px;}#img_container{position:relative;}#img_container a{display:block;float:left;overflow:hidden;vertical-align:center;}#img_container img,#img_container a{width:68px;height:68px;}#img_container img{border:none;background-color:#f4f4f4;cursor:pointer;}#img_container a,#img_container a:link,#img_container a:visited{border:1px solid #ccc;display:block;position:relative;}#img_container a:hover,#img_container a:active{border-color:#000;z-index:1000;border-width:2px;margin:-1px;}#embed-code{width:100%;height:98px;}#viewsite{padding:0;margin:0 0 20px 0;font-size:10px;clear:both;}#viewsite .button{margin:0;display:block;}.wp-hidden-children .wp-hidden-child{display:none;}#category-adder{padding:4px 0;}#category-adder h4{margin:0 0 8px;}#category-add input{width:94%;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;margin:1px;padding:3px;}#category-add select{width:70%;-x-system-font:none;border-style:solid;border-width:1px;font-family:&quot;Lucida Grande&quot;,&quot;Bitstream Vera Sans&quot;,Verdana,Arial,sans-serif;font-size:12px;height:2em;line-height:20px;padding:2px;margin:1px;vertical-align:top;}#category-add input,#category-add-sumbit{width:auto;}#categorydiv ul,#linkcategorydiv ul{list-style:none;padding:0;margin:0;}#categorydiv ul.categorychecklist ul{margin-left:18px;}#categorydiv div.tabs-panel{height:140px;overflow:auto;}ul.categorychecklist li{margin:0;padding:0;line-height:19px;}.screen-reader-text{display:none;}.tagsdiv .newtag{margin-right:5px;}.jaxtag{clear:both;margin:0;}.tagadd{margin-left:3px;}.tagchecklist{margin-top:3px;margin-bottom:1em;font-size:12px;overflow:auto;}.tagchecklist strong{position:absolute;font-size:.75em;}.tagchecklist span{margin-right:.5em;margin-left:10px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;}.tagchecklist span a{margin:6px 0 0 -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;}#content{margin:5px 0;padding:0 5px;border:0 none;height:365px;width:97%!important;}#saving{display:inline;vertical-align:middle;}.submit input,.button,.button-primary,.button-secondary,.button-highlighted,#postcustomstuff .submit input{font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;text-decoration:none;font-size:11px!important;line-height:16px;padding:2px 8px;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;}.button-primary{background:#21759B url(../images/button-grad.png) repeat-x scroll left top;border-color:#21759B;color:#fff;}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;}.ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;}.ac_over{cursor:pointer;}.ac_match{text-decoration:underline;}#TB_ajaxContent #options{position:absolute;top:20px;right:25px;padding:5px;}#TB_ajaxContent h3{margin-bottom:.25em;}.updated{margin:10px 0;padding:0;border-width:1px;border-style:solid;width:99%;}.updated p,.error p{margin:.6em 0;padding:0 .6em;}.error a{text-decoration:underline;}.updated a{text-decoration:none;padding-bottom:2px;}#post_status{margin-left:10px;margin-bottom:1em;display:block;}#footer{height:65px;display:block;width:640px;padding:10px 0 0 60px;margin:0;position:absolute;bottom:0;font-size:12px;}#footer p{margin:0;padding:7px 0;}#footer p a{text-decoration:none;}#footer p a:hover{text-decoration:underline;}.centered{text-align:center;}.hidden{display:none;}.postbox input[type=&quot;text&quot;],.postbox textarea,.stuffbox input[type=&quot;text&quot;],.stuffbox textarea{border-width:1px;border-style:solid;}.taghint{color:#aaa;margin:-17px 6px 0 0;visibility:hidden;}input.newtag ~ div.taghint{visibility:visible;}input.newtag:focus ~ div.taghint{visibility:hidden;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincsspressthisdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/press-this.dev.css (12029 => 12030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/press-this.dev.css        2009-10-14 05:53:49 UTC (rev 12029)
+++ trunk/wp-admin/css/press-this.dev.css        2009-10-14 07:30:10 UTC (rev 12030)
</span><span class="lines">@@ -562,3 +562,18 @@
</span><span class="cx">         border-width: 1px;
</span><span class="cx">         border-style: solid;
</span><span class="cx"> }
</span><ins>+
+/* tag hints */
+.taghint {
+        color: #aaa;
+        margin: -17px 6px 0 0;
+        visibility: hidden;
+}
+
+input.newtag ~ div.taghint {
+        visibility: visible;
+}
+
+input.newtag:focus ~ div.taghint {
+        visibility: hidden;
+}
</ins></span></pre></div>
<a id="trunkwpadminjspostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.dev.js (12029 => 12030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.dev.js        2009-10-14 05:53:49 UTC (rev 12029)
+++ trunk/wp-admin/js/post.dev.js        2009-10-14 07:30:10 UTC (rev 12030)
</span><span class="lines">@@ -208,12 +208,16 @@
</span><span class="cx">                 postboxes.add_postbox_toggles('page');
</span><span class="cx"> 
</span><span class="cx">         // multi-taxonomies
</span><del>-        $('div.postbox').each(function(){
-                if ( this.id.indexOf('tagsdiv-') === 0 ) {
-                        tagBox.init();
-                        return false;
-                }
-        });
</del><ins>+        if ( $('#tagsdiv-post_tag').length ) {
+                tagBox.init();
+        } else {
+                $('#side-sortables, #normal-sortables, #advanced-sortables').children('div.postbox').each(function(){
+                        if ( this.id.indexOf('tagsdiv-') === 0 ) {
+                                tagBox.init();
+                                return false;
+                        }
+                });
+        }
</ins><span class="cx"> 
</span><span class="cx">         // categories
</span><span class="cx">         if ( $('#categorydiv').length ) {
</span></span></pre></div>
<a id="trunkwpadminjspostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.js (12029 => 12030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.js        2009-10-14 05:53:49 UTC (rev 12029)
+++ trunk/wp-admin/js/post.js        2009-10-14 07:30:10 UTC (rev 12030)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tagBox,commentsBox,editPermalink,makeSlugeditClickable;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&amp;&amp;jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(b){return b.replace(/\s*,\s*/g,&quot;,&quot;).replace(/,+/g,&quot;,&quot;).replace(/[,\s]+$/,&quot;&quot;).replace(/^[,\s]+/,&quot;&quot;)},parseTags:function(e){var h=e.id,b=h.split(&quot;-check-num-&quot;)[1],d=a(e).closest(&quot;.tagsdiv&quot;),g=d.find(&quot;.the-tags&quot;),c=g.val().split(&quot;,&quot;),f=[];delete c[b];a.each(c,function(i,j){j=a.trim(j);if(j){f.push(j)}});g.val(this.clean(f.join(&quot;,&quot;)));this.quickClicks(d);return false},quickClicks:function(c){var e=a(&quot;.the-tags&quot;,c),d=a(&quot;.tagchecklist&quot;,c),b;if(!e.length){return}b=e.val().split(&quot;,&quot;);d.empty();a.each(b,function(h,i){var f,g,j=a(c).attr(&quot;id&quot;);i=a.trim(i);if(!i.match(/^\s+$/)&amp;&amp;&quot;&quot;!=i){g=j+&quot;-check-num-&quot;+h;f='&lt;span&gt;&lt;a id=&quot;'+g+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;&amp;nbsp;'+i+&quot;&lt;/span&gt; &quot;;d.append(f);a(&quot;#&quot;+g).click(function(){tagBox.parseTags(this)})}})},flushTags:function(e,b){b=b||false;var g,c=a(&quot;.the-tags&quot;,e),f=a(&quot;input.newtag&quot;,e),d;g=b?a(b).text():f.val();tagsval=c.val();d=tagsval?tagsval+&quot;,&quot;+g:g;d=this.clean(d);d=array_unique_noempty(d.split(&quot;,&quot;)).join(&quot;,&quot;);c.val(d);this.quickClicks(e);if(!b){f.val(&quot;&quot;).focus()}return false},get:function(c){var b=c.substr(c.indexOf(&quot;-&quot;)+1);a.post(ajaxurl,{action:&quot;get-tagcloud&quot;,tax:b},function(e,d){if(0==e||&quot;success&quot;!=d){e=wpAjax.broken}e=a('&lt;p id=&quot;tagcloud-'+b+'&quot; class=&quot;the-tagcloud&quot;&gt;'+e+&quot;&lt;/p&gt;&quot;);a(&quot;a&quot;,e).click(function(){tagBox.flushTags(a(this).closest(&quot;.inside&quot;).children(&quot;.tagsdiv&quot;),this);return false});a(&quot;#&quot;+c).after(e)})},init:function(){var b=this,c=a(&quot;div.ajaxtag&quot;);a(&quot;.tagsdiv&quot;).each(function(){tagBox.quickClicks(this)});a(&quot;input.tagadd&quot;,c).click(function(){b.flushTags(a(this).closest(&quot;.tagsdiv&quot;))});a(&quot;input.newtag&quot;,c).blur(function(){var d=a(this).siblings(&quot;.taghint&quot;);if(this.value==&quot;&quot;){d.css(&quot;visibility&quot;,&quot;&quot;)}else{d.css(&quot;visibility&quot;,&quot;hidden&quot;)}}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(this).closest(&quot;.tagsdiv&quot;));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest(&quot;div.tagsdiv&quot;).attr(&quot;id&quot;);a(this).suggest(ajaxurl+&quot;?action=ajax-tag-search&amp;tax=&quot;+d,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})});a(&quot;#post&quot;).submit(function(){a(&quot;div.tagsdiv&quot;).each(function(){tagBox.flushTags(this)})});a(&quot;a.tagcloud-link&quot;).click(function(){tagBox.get(a(this).attr(&quot;id&quot;));a(this).unbind().click(function(){a(this).siblings(&quot;.the-tagcloud&quot;).toggle();return false});return false})}};commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a(&quot;#commentsdiv img.waiting&quot;).show();e={action:&quot;get-comments&quot;,mode:&quot;single&quot;,_ajax_nonce:a(&quot;#add_comment_nonce&quot;).val(),post_ID:a(&quot;#post_ID&quot;).val(),start:b,num:c};a.post(ajaxurl,e,function(f){f=wpAjax.parseAjaxResponse(f);a(&quot;#commentsdiv .widefat&quot;).show();a(&quot;#commentsdiv img.waiting&quot;).hide();if(&quot;object&quot;==typeof f&amp;&amp;f.responses[0]){a(&quot;#the-comment-list&quot;).append(f.responses[0].data);theList=theExtraList=null;a(&quot;a[className*=':']&quot;).unbind();setCommentsList();if(commentsBox.st&gt;commentsBox.total){a(&quot;#show-comments&quot;).hide()}else{a(&quot;#show-comments&quot;).html(postL10n.showcomm)}return}else{if(1==f){a(&quot;#show-comments&quot;).parent().html(postL10n.endcomm);return}}a(&quot;#the-comment-list&quot;).append('&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;'+wpAjax.broken+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)});return false}}})(jQuery);jQuery(document).ready(function(f){var d,a,b,h=&quot;&quot;,i=&quot;post&quot;==pagenow||&quot;post-new&quot;==pagenow,g=&quot;page&quot;==pagenow||&quot;page-new&quot;==pagenow;if(i){postboxes.add_postbox_toggles(&quot;post&quot;)}else{if(g){postboxes.add_postbox_toggles(&quot;page&quot;)}}f(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}});if(f(&quot;#categorydiv&quot;).length){f(&quot;a&quot;,&quot;#category-tabs&quot;).click(function(){var j=f(this).attr(&quot;href&quot;);f(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);f(&quot;#category-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();f(j).show();if(&quot;#categories-all&quot;==j){deleteUserSetting(&quot;cats&quot;)}else{setUserSetting(&quot;cats&quot;,&quot;pop&quot;)}return false});if(getUserSetting(&quot;cats&quot;)){f('a[href=&quot;#categories-pop&quot;]',&quot;#category-tabs&quot;).click()}f(&quot;#newcat&quot;).one(&quot;focus&quot;,function(){f(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});f(&quot;#category-add-sumbit&quot;).click(function(){f(&quot;#newcat&quot;).focus()});catAddBefore=function(j){if(!f(&quot;#newcat&quot;).val()){return false}j.data+=&quot;&amp;&quot;+f(&quot;:checked&quot;,&quot;#categorychecklist&quot;).serialize();return j};d=function(m,l){var k,j=f(&quot;#newcat_parent&quot;);if(&quot;undefined&quot;!=l.parsed.responses[0]&amp;&amp;(k=l.parsed.responses[0].supplemental.newcat_parent)){j.before(k);j.remove()}};f(&quot;#categorychecklist&quot;).wpList({alt:&quot;&quot;,response:&quot;category-ajax-response&quot;,addBefore:catAddBefore,addAfter:d});f(&quot;#category-add-toggle&quot;).click(function(){f(&quot;#category-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);f('a[href=&quot;#categories-all&quot;]',&quot;#category-tabs&quot;).click();return false});f(&quot;#categorychecklist&quot;).children(&quot;li.popular-category&quot;).add(f(&quot;#categorychecklist-pop&quot;).children()).find(&quot;:checkbox&quot;).live(&quot;click&quot;,function(){var j=f(this),l=j.is(&quot;:checked&quot;),k=j.val();f(&quot;#in-category-&quot;+k+&quot;, #in-popular-category-&quot;+k).attr(&quot;checked&quot;,l)})}if(f(&quot;#postcustom&quot;).length){f(&quot;#the-list&quot;).wpList({addAfter:function(j,k){f(&quot;table#list-table&quot;).show();if(typeof(autosave_update_post_ID)!=&quot;undefined&quot;){autosave_update_post_ID(k.parsed.responses[0].supplemental.postid)}},addBefore:function(j){j.data+=&quot;&amp;post_id=&quot;+f(&quot;#post_ID&quot;).val();return j}})}if(f(&quot;#submitdiv&quot;).length){a=f(&quot;#timestamp&quot;).html();b=f(&quot;#post-visibility-display&quot;).html();function e(){var j=f(&quot;#post-visibility-select&quot;);if(f(&quot;input:radio:checked&quot;,j).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);f(&quot;#sticky-span&quot;).hide()}else{f(&quot;#sticky-span&quot;).show()}if(f(&quot;input:radio:checked&quot;,j).val()!=&quot;password&quot;){f(&quot;#password-span&quot;).hide()}else{f(&quot;#password-span&quot;).show()}}function c(){var j,m,k,o,l=f(&quot;#post_status&quot;),n=f(&quot;option[value=publish]&quot;,l);j=new Date(f(&quot;#aa&quot;).val(),f(&quot;#mm&quot;).val()-1,f(&quot;#jj&quot;).val(),f(&quot;#hh&quot;).val(),f(&quot;#mn&quot;).val());m=new Date(f(&quot;#hidden_aa&quot;).val(),f(&quot;#hidden_mm&quot;).val()-1,f(&quot;#hidden_jj&quot;).val(),f(&quot;#hidden_hh&quot;).val(),f(&quot;#hidden_mn&quot;).val());k=new Date(f(&quot;#cur_aa&quot;).val(),f(&quot;#cur_mm&quot;).val()-1,f(&quot;#cur_jj&quot;).val(),f(&quot;#cur_hh&quot;).val(),f(&quot;#cur_mn&quot;).val());if(j&gt;k&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){o=postL10n.publishOnFuture;f(&quot;#publish&quot;).val(postL10n.schedule)}else{if(j&lt;=k&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){o=postL10n.publishOn;f(&quot;#publish&quot;).val(postL10n.publish)}else{o=postL10n.publishOnPast;if(g){f(&quot;#publish&quot;).val(postL10n.updatePage)}else{f(&quot;#publish&quot;).val(postL10n.updatePost)}}}if(m.toUTCString()==j.toUTCString()){f(&quot;#timestamp&quot;).html(a)}else{f(&quot;#timestamp&quot;).html(o+&quot; &lt;b&gt;&quot;+f(&quot;option[value=&quot;+f(&quot;#mm&quot;).val()+&quot;]&quot;,&quot;#mm&quot;).text()+&quot; &quot;+f(&quot;#jj&quot;).val()+&quot;, &quot;+f(&quot;#aa&quot;).val()+&quot; @ &quot;+f(&quot;#hh&quot;).val()+&quot;:&quot;+f(&quot;#mn&quot;).val()+&quot;&lt;/b&gt; &quot;)}if(f(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){if(g){f(&quot;#publish&quot;).val(postL10n.updatePage)}else{f(&quot;#publish&quot;).val(postL10n.updatePost)}if(n.length==0){l.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{n.html(postL10n.privatelyPublished)}f(&quot;option[value=publish]&quot;,l).attr(&quot;selected&quot;,true);f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(f(&quot;#original_post_status&quot;).val()==&quot;future&quot;||f(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(n.length){n.remove();l.val(f(&quot;#hidden_post_status&quot;).val())}}else{n.html(postL10n.published)}f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}f(&quot;#post-status-display&quot;).html(f(&quot;option:selected&quot;,l).text());if(f(&quot;option:selected&quot;,l).val()==&quot;private&quot;||f(&quot;option:selected&quot;,l).val()==&quot;publish&quot;){f(&quot;#save-post&quot;).hide()}else{f(&quot;#save-post&quot;).show();if(f(&quot;option:selected&quot;,l).val()==&quot;pending&quot;){f(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{f(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}}f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(f(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){e();f(&quot;#post-visibility-select&quot;).slideDown(&quot;normal&quot;);f(this).hide()}return false});f(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){f(&quot;#post-visibility-select&quot;).slideUp(&quot;normal&quot;);f(&quot;#visibility-radio-&quot;+f(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);f(&quot;#post_password&quot;).val(f(&quot;#hidden_post_password&quot;).val());f(&quot;#sticky&quot;).attr(&quot;checked&quot;,f(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));f(&quot;#post-visibility-display&quot;).html(b);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});f(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var j=f(&quot;#post-visibility-select&quot;);j.slideUp(&quot;normal&quot;);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(f(&quot;input:radio:checked&quot;,j).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==f(&quot;#sticky&quot;).attr(&quot;checked&quot;)){h=&quot;Sticky&quot;}else{h=&quot;&quot;}f(&quot;#post-visibility-display&quot;).html(postL10n[f(&quot;input:radio:checked&quot;,j).val()+h]);return false});f(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){e()});f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(f(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){f(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);f(this).hide()}return false});f(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);f(&quot;#mm&quot;).val(f(&quot;#hidden_mm&quot;).val());f(&quot;#jj&quot;).val(f(&quot;#hidden_jj&quot;).val());f(&quot;#aa&quot;).val(f(&quot;#hidden_aa&quot;).val());f(&quot;#hh&quot;).val(f(&quot;#hidden_hh&quot;).val());f(&quot;#mn&quot;).val(f(&quot;#hidden_mn&quot;).val());f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(f(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){f(&quot;#post-status-select&quot;).slideDown(&quot;normal&quot;);f(this).hide()}return false});f(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});f(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);f(&quot;#post_status&quot;).val(f(&quot;#hidden_post_status&quot;).val());f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(f(&quot;#edit-slug-box&quot;).length){editPermalink=function(j){var k,n=0,m=f(&quot;#editable-post-name&quot;),o=m.html(),r=f(&quot;#post_name&quot;),s=r.html(),p=f(&quot;#edit-slug-buttons&quot;),q=p.html(),l=f(&quot;#editable-post-name-full&quot;).html();f(&quot;#view-post-btn&quot;).hide();p.html('&lt;a href=&quot;#&quot; class=&quot;save button&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);p.children(&quot;.save&quot;).click(function(){var t=m.children(&quot;input&quot;).val();f.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:j,new_slug:t,new_title:f(&quot;#title&quot;).val(),samplepermalinknonce:f(&quot;#samplepermalinknonce&quot;).val()},function(u){f(&quot;#edit-slug-box&quot;).html(u);p.html(q);r.attr(&quot;value&quot;,t);makeSlugeditClickable();f(&quot;#view-post-btn&quot;).show()});return false});f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){f(&quot;#view-post-btn&quot;).show();m.html(o);p.html(q);r.attr(&quot;value&quot;,s);return false});for(k=0;k&lt;l.length;++k){if(&quot;%&quot;==l.charAt(k)){n++}}slug_value=(n&gt;l.length/4)?&quot;&quot;:l;m.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(u){var t=u.keyCode||0;if(13==t){p.children(&quot;.save&quot;).click();return false}if(27==t){p.children(&quot;.cancel&quot;).click();return false}r.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){f(&quot;#editable-post-name&quot;).click(function(){f(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}});
</del><span class="cx">\ No newline at end of file
</span><ins>+var tagBox,commentsBox,editPermalink,makeSlugeditClickable;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&amp;&amp;jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(b){return b.replace(/\s*,\s*/g,&quot;,&quot;).replace(/,+/g,&quot;,&quot;).replace(/[,\s]+$/,&quot;&quot;).replace(/^[,\s]+/,&quot;&quot;)},parseTags:function(e){var h=e.id,b=h.split(&quot;-check-num-&quot;)[1],d=a(e).closest(&quot;.tagsdiv&quot;),g=d.find(&quot;.the-tags&quot;),c=g.val().split(&quot;,&quot;),f=[];delete c[b];a.each(c,function(i,j){j=a.trim(j);if(j){f.push(j)}});g.val(this.clean(f.join(&quot;,&quot;)));this.quickClicks(d);return false},quickClicks:function(c){var e=a(&quot;.the-tags&quot;,c),d=a(&quot;.tagchecklist&quot;,c),b;if(!e.length){return}b=e.val().split(&quot;,&quot;);d.empty();a.each(b,function(h,i){var f,g,j=a(c).attr(&quot;id&quot;);i=a.trim(i);if(!i.match(/^\s+$/)&amp;&amp;&quot;&quot;!=i){g=j+&quot;-check-num-&quot;+h;f='&lt;span&gt;&lt;a id=&quot;'+g+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;&amp;nbsp;'+i+&quot;&lt;/span&gt; &quot;;d.append(f);a(&quot;#&quot;+g).click(function(){tagBox.parseTags(this)})}})},flushTags:function(e,b){b=b||false;var g,c=a(&quot;.the-tags&quot;,e),f=a(&quot;input.newtag&quot;,e),d;g=b?a(b).text():f.val();tagsval=c.val();d=tagsval?tagsval+&quot;,&quot;+g:g;d=this.clean(d);d=array_unique_noempty(d.split(&quot;,&quot;)).join(&quot;,&quot;);c.val(d);this.quickClicks(e);if(!b){f.val(&quot;&quot;).focus()}return false},get:function(c){var b=c.substr(c.indexOf(&quot;-&quot;)+1);a.post(ajaxurl,{action:&quot;get-tagcloud&quot;,tax:b},function(e,d){if(0==e||&quot;success&quot;!=d){e=wpAjax.broken}e=a('&lt;p id=&quot;tagcloud-'+b+'&quot; class=&quot;the-tagcloud&quot;&gt;'+e+&quot;&lt;/p&gt;&quot;);a(&quot;a&quot;,e).click(function(){tagBox.flushTags(a(this).closest(&quot;.inside&quot;).children(&quot;.tagsdiv&quot;),this);return false});a(&quot;#&quot;+c).after(e)})},init:function(){var b=this,c=a(&quot;div.ajaxtag&quot;);a(&quot;.tagsdiv&quot;).each(function(){tagBox.quickClicks(this)});a(&quot;input.tagadd&quot;,c).click(function(){b.flushTags(a(this).closest(&quot;.tagsdiv&quot;))});a(&quot;input.newtag&quot;,c).blur(function(){var d=a(this).siblings(&quot;.taghint&quot;);if(this.value==&quot;&quot;){d.css(&quot;visibility&quot;,&quot;&quot;)}else{d.css(&quot;visibility&quot;,&quot;hidden&quot;)}}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(this).closest(&quot;.tagsdiv&quot;));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest(&quot;div.tagsdiv&quot;).attr(&quot;id&quot;);a(this).suggest(ajaxurl+&quot;?action=ajax-tag-search&amp;tax=&quot;+d,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})});a(&quot;#post&quot;).submit(function(){a(&quot;div.tagsdiv&quot;).each(function(){tagBox.flushTags(this)})});a(&quot;a.tagcloud-link&quot;).click(function(){tagBox.get(a(this).attr(&quot;id&quot;));a(this).unbind().click(function(){a(this).siblings(&quot;.the-tagcloud&quot;).toggle();return false});return false})}};commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a(&quot;#commentsdiv img.waiting&quot;).show();e={action:&quot;get-comments&quot;,mode:&quot;single&quot;,_ajax_nonce:a(&quot;#add_comment_nonce&quot;).val(),post_ID:a(&quot;#post_ID&quot;).val(),start:b,num:c};a.post(ajaxurl,e,function(f){f=wpAjax.parseAjaxResponse(f);a(&quot;#commentsdiv .widefat&quot;).show();a(&quot;#commentsdiv img.waiting&quot;).hide();if(&quot;object&quot;==typeof f&amp;&amp;f.responses[0]){a(&quot;#the-comment-list&quot;).append(f.responses[0].data);theList=theExtraList=null;a(&quot;a[className*=':']&quot;).unbind();setCommentsList();if(commentsBox.st&gt;commentsBox.total){a(&quot;#show-comments&quot;).hide()}else{a(&quot;#show-comments&quot;).html(postL10n.showcomm)}return}else{if(1==f){a(&quot;#show-comments&quot;).parent().html(postL10n.endcomm);return}}a(&quot;#the-comment-list&quot;).append('&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;'+wpAjax.broken+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)});return false}}})(jQuery);jQuery(document).ready(function(f){var d,a,b,h=&quot;&quot;,i=&quot;post&quot;==pagenow||&quot;post-new&quot;==pagenow,g=&quot;page&quot;==pagenow||&quot;page-new&quot;==pagenow;if(i){postboxes.add_postbox_toggles(&quot;post&quot;)}else{if(g){postboxes.add_postbox_toggles(&quot;page&quot;)}}if(f(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{f(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}if(f(&quot;#categorydiv&quot;).length){f(&quot;a&quot;,&quot;#category-tabs&quot;).click(function(){var j=f(this).attr(&quot;href&quot;);f(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);f(&quot;#category-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();f(j).show();if(&quot;#categories-all&quot;==j){deleteUserSetting(&quot;cats&quot;)}else{setUserSetting(&quot;cats&quot;,&quot;pop&quot;)}return false});if(getUserSetting(&quot;cats&quot;)){f('a[href=&quot;#categories-pop&quot;]',&quot;#category-tabs&quot;).click()}f(&quot;#newcat&quot;).one(&quot;focus&quot;,function(){f(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});f(&quot;#category-add-sumbit&quot;).click(function(){f(&quot;#newcat&quot;).focus()});catAddBefore=function(j){if(!f(&quot;#newcat&quot;).val()){return false}j.data+=&quot;&amp;&quot;+f(&quot;:checked&quot;,&quot;#categorychecklist&quot;).serialize();return j};d=function(m,l){var k,j=f(&quot;#newcat_parent&quot;);if(&quot;undefined&quot;!=l.parsed.responses[0]&amp;&amp;(k=l.parsed.responses[0].supplemental.newcat_parent)){j.before(k);j.remove()}};f(&quot;#categorychecklist&quot;).wpList({alt:&quot;&quot;,response:&quot;category-ajax-response&quot;,addBefore:catAddBefore,addAfter:d});f(&quot;#category-add-toggle&quot;).click(function(){f(&quot;#category-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);f('a[href=&quot;#categories-all&quot;]',&quot;#category-tabs&quot;).click();return false});f(&quot;#categorychecklist&quot;).children(&quot;li.popular-category&quot;).add(f(&quot;#categorychecklist-pop&quot;).children()).find(&quot;:checkbox&quot;).live(&quot;click&quot;,function(){var j=f(this),l=j.is(&quot;:checked&quot;),k=j.val();f(&quot;#in-category-&quot;+k+&quot;, #in-popular-category-&quot;+k).attr(&quot;checked&quot;,l)})}if(f(&quot;#postcustom&quot;).length){f(&quot;#the-list&quot;).wpList({addAfter:function(j,k){f(&quot;table#list-table&quot;).show();if(typeof(autosave_update_post_ID)!=&quot;undefined&quot;){autosave_update_post_ID(k.parsed.responses[0].supplemental.postid)}},addBefore:function(j){j.data+=&quot;&amp;post_id=&quot;+f(&quot;#post_ID&quot;).val();return j}})}if(f(&quot;#submitdiv&quot;).length){a=f(&quot;#timestamp&quot;).html();b=f(&quot;#post-visibility-display&quot;).html();function e(){var j=f(&quot;#post-visibility-select&quot;);if(f(&quot;input:radio:checked&quot;,j).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);f(&quot;#sticky-span&quot;).hide()}else{f(&quot;#sticky-span&quot;).show()}if(f(&quot;input:radio:checked&quot;,j).val()!=&quot;password&quot;){f(&quot;#password-span&quot;).hide()}else{f(&quot;#password-span&quot;).show()}}function c(){var j,m,k,o,l=f(&quot;#post_status&quot;),n=f(&quot;option[value=publish]&quot;,l);j=new Date(f(&quot;#aa&quot;).val(),f(&quot;#mm&quot;).val()-1,f(&quot;#jj&quot;).val(),f(&quot;#hh&quot;).val(),f(&quot;#mn&quot;).val());m=new Date(f(&quot;#hidden_aa&quot;).val(),f(&quot;#hidden_mm&quot;).val()-1,f(&quot;#hidden_jj&quot;).val(),f(&quot;#hidden_hh&quot;).val(),f(&quot;#hidden_mn&quot;).val());k=new Date(f(&quot;#cur_aa&quot;).val(),f(&quot;#cur_mm&quot;).val()-1,f(&quot;#cur_jj&quot;).val(),f(&quot;#cur_hh&quot;).val(),f(&quot;#cur_mn&quot;).val());if(j&gt;k&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){o=postL10n.publishOnFuture;f(&quot;#publish&quot;).val(postL10n.schedule)}else{if(j&lt;=k&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){o=postL10n.publishOn;f(&quot;#publish&quot;).val(postL10n.publish)}else{o=postL10n.publishOnPast;if(g){f(&quot;#publish&quot;).val(postL10n.updatePage)}else{f(&quot;#publish&quot;).val(postL10n.updatePost)}}}if(m.toUTCString()==j.toUTCString()){f(&quot;#timestamp&quot;).html(a)}else{f(&quot;#timestamp&quot;).html(o+&quot; &lt;b&gt;&quot;+f(&quot;option[value=&quot;+f(&quot;#mm&quot;).val()+&quot;]&quot;,&quot;#mm&quot;).text()+&quot; &quot;+f(&quot;#jj&quot;).val()+&quot;, &quot;+f(&quot;#aa&quot;).val()+&quot; @ &quot;+f(&quot;#hh&quot;).val()+&quot;:&quot;+f(&quot;#mn&quot;).val()+&quot;&lt;/b&gt; &quot;)}if(f(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){if(g){f(&quot;#publish&quot;).val(postL10n.updatePage)}else{f(&quot;#publish&quot;).val(postL10n.updatePost)}if(n.length==0){l.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{n.html(postL10n.privatelyPublished)}f(&quot;option[value=publish]&quot;,l).attr(&quot;selected&quot;,true);f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(f(&quot;#original_post_status&quot;).val()==&quot;future&quot;||f(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(n.length){n.remove();l.val(f(&quot;#hidden_post_status&quot;).val())}}else{n.html(postL10n.published)}f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}f(&quot;#post-status-display&quot;).html(f(&quot;option:selected&quot;,l).text());if(f(&quot;option:selected&quot;,l).val()==&quot;private&quot;||f(&quot;option:selected&quot;,l).val()==&quot;publish&quot;){f(&quot;#save-post&quot;).hide()}else{f(&quot;#save-post&quot;).show();if(f(&quot;option:selected&quot;,l).val()==&quot;pending&quot;){f(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{f(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}}f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(f(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){e();f(&quot;#post-visibility-select&quot;).slideDown(&quot;normal&quot;);f(this).hide()}return false});f(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){f(&quot;#post-visibility-select&quot;).slideUp(&quot;normal&quot;);f(&quot;#visibility-radio-&quot;+f(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);f(&quot;#post_password&quot;).val(f(&quot;#hidden_post_password&quot;).val());f(&quot;#sticky&quot;).attr(&quot;checked&quot;,f(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));f(&quot;#post-visibility-display&quot;).html(b);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});f(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var j=f(&quot;#post-visibility-select&quot;);j.slideUp(&quot;normal&quot;);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(f(&quot;input:radio:checked&quot;,j).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==f(&quot;#sticky&quot;).attr(&quot;checked&quot;)){h=&quot;Sticky&quot;}else{h=&quot;&quot;}f(&quot;#post-visibility-display&quot;).html(postL10n[f(&quot;input:radio:checked&quot;,j).val()+h]);return false});f(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){e()});f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(f(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){f(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);f(this).hide()}return false});f(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);f(&quot;#mm&quot;).val(f(&quot;#hidden_mm&quot;).val());f(&quot;#jj&quot;).val(f(&quot;#hidden_jj&quot;).val());f(&quot;#aa&quot;).val(f(&quot;#hidden_aa&quot;).val());f(&quot;#hh&quot;).val(f(&quot;#hidden_hh&quot;).val());f(&quot;#mn&quot;).val(f(&quot;#hidden_mn&quot;).val());f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(f(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){f(&quot;#post-status-select&quot;).slideDown(&quot;normal&quot;);f(this).hide()}return false});f(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});f(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);f(&quot;#post_status&quot;).val(f(&quot;#hidden_post_status&quot;).val());f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(f(&quot;#edit-slug-box&quot;).length){editPermalink=function(j){var k,n=0,m=f(&quot;#editable-post-name&quot;),o=m.html(),r=f(&quot;#post_name&quot;),s=r.html(),p=f(&quot;#edit-slug-buttons&quot;),q=p.html(),l=f(&quot;#editable-post-name-full&quot;).html();f(&quot;#view-post-btn&quot;).hide();p.html('&lt;a href=&quot;#&quot; class=&quot;save button&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);p.children(&quot;.save&quot;).click(function(){var t=m.children(&quot;input&quot;).val();f.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:j,new_slug:t,new_title:f(&quot;#title&quot;).val(),samplepermalinknonce:f(&quot;#samplepermalinknonce&quot;).val()},function(u){f(&quot;#edit-slug-box&quot;).html(u);p.html(q);r.attr(&quot;value&quot;,t);makeSlugeditClickable();f(&quot;#view-post-btn&quot;).show()});return false});f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){f(&quot;#view-post-btn&quot;).show();m.html(o);p.html(q);r.attr(&quot;value&quot;,s);return false});for(k=0;k&lt;l.length;++k){if(&quot;%&quot;==l.charAt(k)){n++}}slug_value=(n&gt;l.length/4)?&quot;&quot;:l;m.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(u){var t=u.keyCode||0;if(13==t){p.children(&quot;.save&quot;).click();return false}if(27==t){p.children(&quot;.cancel&quot;).click();return false}r.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){f(&quot;#editable-post-name&quot;).click(function(){f(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminpressthisphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/press-this.php (12029 => 12030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/press-this.php        2009-10-14 05:53:49 UTC (rev 12029)
+++ trunk/wp-admin/press-this.php        2009-10-14 07:30:10 UTC (rev 12030)
</span><span class="lines">@@ -338,7 +338,7 @@
</span><span class="cx"> //&lt;![CDATA[
</span><span class="cx"> addLoadEvent = function(func){if(typeof jQuery!=&quot;undefined&quot;)jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
</span><span class="cx"> var userSettings = {'url':'&lt;?php echo SITECOOKIEPATH; ?&gt;','uid':'&lt;?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user-&gt;ID; ?&gt;','time':'&lt;?php echo time() ?&gt;'};
</span><del>-var ajaxurl = '&lt;?php echo admin_url('admin-ajax.php'); ?&gt;';
</del><ins>+var ajaxurl = '&lt;?php echo admin_url('admin-ajax.php'); ?&gt;', pagenow = 'press-this';
</ins><span class="cx"> //]]&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -505,10 +505,11 @@
</span><span class="cx">                                                 &lt;p class=&quot;jaxtag&quot;&gt;
</span><span class="cx">                                                         &lt;label class=&quot;screen-reader-text&quot; for=&quot;newtag&quot;&gt;&lt;?php _e('Post Tags'); ?&gt;&lt;/label&gt;
</span><span class="cx">                                                         &lt;input type=&quot;hidden&quot; name=&quot;tax_input[post_tag]&quot; class=&quot;the-tags&quot; id=&quot;tax-input[post_tag]&quot; value=&quot;&quot; /&gt;
</span><del>-                                                        &lt;span class=&quot;ajaxtag&quot; style=&quot;display:none;&quot;&gt;
-                                                                &lt;input type=&quot;text&quot; name=&quot;newtag[post_tag]&quot; class=&quot;newtag form-input-tip&quot; size=&quot;16&quot; autocomplete=&quot;off&quot; value=&quot;&lt;?php esc_attr_e('Add new tag'); ?&gt;&quot; /&gt;
</del><ins>+                                                        &lt;div class=&quot;ajaxtag&quot;&gt;
+                                                                &lt;input type=&quot;text&quot; name=&quot;newtag[post_tag]&quot; class=&quot;newtag form-input-tip&quot; size=&quot;16&quot; autocomplete=&quot;off&quot; value=&quot;&quot; /&gt;
</ins><span class="cx">                                                                 &lt;input type=&quot;button&quot; class=&quot;button tagadd&quot; value=&quot;&lt;?php esc_attr_e('Add'); ?&gt;&quot; tabindex=&quot;3&quot; /&gt;
</span><del>-                                                        &lt;/span&gt;
</del><ins>+                                                                &lt;div class=&quot;taghint&quot;&gt;&lt;?php _e('Add new tag'); ?&gt;&lt;/div&gt;
+                                                        &lt;/div&gt;
</ins><span class="cx">                                                 &lt;/p&gt;
</span><span class="cx">                                                 &lt;div class=&quot;tagchecklist&quot;&gt;&lt;/div&gt;
</span><span class="cx">                                         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (12029 => 12030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2009-10-14 05:53:49 UTC (rev 12029)
+++ trunk/wp-includes/script-loader.php        2009-10-14 07:30:10 UTC (rev 12030)
</span><span class="lines">@@ -268,7 +268,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20091012' );
</span><span class="cx">                 $scripts-&gt;add_data( 'postbox', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), '20091012' );
</del><ins>+                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), '20091014' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'post', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'post', 'postL10n', array(
</span><span class="cx">                         'tagsUsed' =&gt;  __('Tags used on this post:'),
</span><span class="lines">@@ -444,7 +444,7 @@
</span><span class="cx">         $styles-&gt;add( 'dashboard', &quot;/wp-admin/css/dashboard$suffix.css&quot;, array(), '20090514' );
</span><span class="cx">         $styles-&gt;add( 'install', &quot;/wp-admin/css/install$suffix.css&quot;, array(), '20090514' );
</span><span class="cx">         $styles-&gt;add( 'theme-editor', &quot;/wp-admin/css/theme-editor$suffix.css&quot;, array(), '20090625' );
</span><del>-        $styles-&gt;add( 'press-this', &quot;/wp-admin/css/press-this$suffix.css&quot;, array(), '20090514' );
</del><ins>+        $styles-&gt;add( 'press-this', &quot;/wp-admin/css/press-this$suffix.css&quot;, array(), '20091014' );
</ins><span class="cx">         $styles-&gt;add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20090514' );
</span><span class="cx">         $styles-&gt;add( 'login', &quot;/wp-admin/css/login$suffix.css&quot;, array(), '20091010' );
</span><span class="cx">         $styles-&gt;add( 'plugin-install', &quot;/wp-admin/css/plugin-install$suffix.css&quot;, array(), '20090514' );
</span></span></pre>
</div>
</div>

</body>
</html>