<!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>[18222] trunk: Do not run bulk edit when the user clicks on a filter, fixes #17733</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/18222">18222</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-06-10 00:01:16 +0000 (Fri, 10 Jun 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Do not run bulk edit when the user clicks on a filter, fixes <a href="http://trac.wordpress.org/ticket/17733">#17733</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditphp">trunk/wp-admin/edit.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablephp">trunk/wp-admin/includes/class-wp-list-table.php</a></li>
<li><a href="#trunkwpadminjsinlineeditpostdevjs">trunk/wp-admin/js/inline-edit-post.dev.js</a></li>
<li><a href="#trunkwpadminjsinlineeditpostjs">trunk/wp-admin/js/inline-edit-post.js</a></li>
<li><a href="#trunkwpadminjsinlineedittaxdevjs">trunk/wp-admin/js/inline-edit-tax.dev.js</a></li>
<li><a href="#trunkwpadminjsinlineedittaxjs">trunk/wp-admin/js/inline-edit-tax.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit.php (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit.php        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-admin/edit.php        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -120,13 +120,15 @@
</span><span class="cx">                         $sendback = add_query_arg('deleted', $deleted, $sendback);
</span><span class="cx">                         break;
</span><span class="cx">                 case 'edit':
</span><del>-                        $done = bulk_edit_posts($_REQUEST);
</del><ins>+                        if ( isset($_REQUEST['bulk_edit']) ) {
+                                $done = bulk_edit_posts($_REQUEST);
</ins><span class="cx"> 
</span><del>-                        if ( is_array($done) ) {
-                                $done['updated'] = count( $done['updated'] );
-                                $done['skipped'] = count( $done['skipped'] );
-                                $done['locked'] = count( $done['locked'] );
-                                $sendback = add_query_arg( $done, $sendback );
</del><ins>+                                if ( is_array($done) ) {
+                                        $done['updated'] = count( $done['updated'] );
+                                        $done['skipped'] = count( $done['skipped'] );
+                                        $done['locked'] = count( $done['locked'] );
+                                        $sendback = add_query_arg( $done, $sendback );
+                                }
</ins><span class="cx">                         }
</span><span class="cx">                         break;
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-list-table.php (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table.php        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-admin/includes/class-wp-list-table.php        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -288,8 +288,13 @@
</span><span class="cx"> 
</span><span class="cx">                 echo &quot;&lt;select name='action$two'&gt;\n&quot;;
</span><span class="cx">                 echo &quot;&lt;option value='-1' selected='selected'&gt;&quot; . __( 'Bulk Actions' ) . &quot;&lt;/option&gt;\n&quot;;
</span><del>-                foreach ( $this-&gt;_actions as $name =&gt; $title )
-                        echo &quot;\t&lt;option value='$name'&gt;$title&lt;/option&gt;\n&quot;;
</del><ins>+                
+                foreach ( $this-&gt;_actions as $name =&gt; $title ) {
+                        $class = 'edit' == $name ? ' class=&quot;hide-if-no-js&quot;' : '';
+
+                        echo &quot;\t&lt;option value='$name'$class&gt;$title&lt;/option&gt;\n&quot;;
+                }
+
</ins><span class="cx">                 echo &quot;&lt;/select&gt;\n&quot;;
</span><span class="cx"> 
</span><span class="cx">                 submit_button( __( 'Apply' ), 'button-secondary action', false, false, array( 'id' =&gt; &quot;doaction$two&quot; ) );
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.dev.js (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.dev.js        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-admin/js/inline-edit-post.dev.js        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -74,9 +74,9 @@
</span><span class="cx">                         }
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $('#post-query-submit').click(function(e){
-                        if ( $('form#posts-filter tr.inline-editor').length &gt; 0 )
-                                t.revert();
</del><ins>+                $('#post-query-submit').mousedown(function(e){
+                        t.revert();
+                        $('select[name^=&quot;action&quot;]').val('-1');
</ins><span class="cx">                 });
</span><span class="cx">         },
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.js (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.js        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-admin/js/inline-edit-post.js        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;pages&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#post-&quot;;d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a('#inline-edit .inline-edit-private input[value=&quot;private&quot;]').click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).prop(&quot;checked&quot;)){e.val(&quot;&quot;).prop(&quot;disabled&quot;,true)}else{e.prop(&quot;disabled&quot;,false)}});a(&
 quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;)});a(&quot;span.cathide&quot;).click(function(){a(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;)});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#post-query-submit&quot;).c
 lick(function(f){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},setBulk:function(){var e=&quot;&quot;,d=this.type,b,f=true;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(g){if(a(this).prop(&quot;checked&quot;)){f=false;var h=a(this).val(),c;c=a(&quot;#inline_&quot;+h+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;e+='&lt;div id=&quot;ttle'+h+'&quot;&gt;&lt;a id=&quot;_'+h+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+c+&quot;&lt;/div&gt;&quot;}});if(f){return this.revert()}a(&quo
 t;#bulk-titles&quot;).html(e);a(&quot;#bulk-titles a&quot;).click(function(){var c=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+c+'&quot;]').prop(&quot;checked&quot;,false);a(&quot;#ttle&quot;+c).remove()});if(&quot;post&quot;==d){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}a(&quot;html, body&quot;).animate({scrollTop:0},&quot;fast&quot;)},edit:function(b){var o=this,j,d,g,n,i,h,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}d=a(&quot;#
 inline-edit&quot;).clone(true);a(&quot;td&quot;,d).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);if(!a(':input[name=&quot;post_author&quot;] option[value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;]',d).val()){a(':input[name=&quot;post_author&quot;]',d).prepend('&lt;option value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;&gt;'+a(&quot;#&quot;+o.type+&quot;-&quot;+b+&quot; .author&quot;).text()+&quot;&lt;/option&gt;&quot;)}if(a(':input[name=&quot;post_author&quot;] option',d).length==1){a(&quot;label.inline-edit-author&quot;,d).hide()}for(var k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).prop(&quot;checked&quot;,true)}if(a(&quo
 t;.ping_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;ping_status&quot;]',d).prop(&quot;checked&quot;,true)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).prop(&quot;checked&quot;,true)}a(&quot;.post_category&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;ul.&quot;+taxname+&quot;-checklist :checkbox&quot;,d).val(f.split(&quot;,&quot;))}});a(&quot;.tags_input&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;textarea.tax_input_&quot;+taxname,d).val(f);a(&quot;textarea.tax_input_&quot;+taxname,d).suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+taxname,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}});i=a(&quot;._status&quot;,g).text();if(&quot;future&quot;!=i){a('select[name=&quot;_status&quot;] option[value=
 &quot;future&quot;]',d).remove()}if(&quot;private&quot;==i){a('input[name=&quot;keep_private&quot;]',d).prop(&quot;checked&quot;,true);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).prop(&quot;disabled&quot;,true)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();return false},save:function(e){var d,b,c=a(&quot;.post_status_page&quot;).val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save&quot;,post_type:typenow,post_ID:e,edit_date:&quot;true&quot;,post_status:c};b=a(&quot;#edit-&quot;+e+&quo
 t; :input&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.post(&quot;admin-ajax.php&quot;,d,function(f){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(f){if(-1!=f.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+e).remove();a(&quot;#edit-&quot;+e).before(f).remove();a(inlineEditPost.what+e).hide().fadeIn()}else{f=f.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(f).show()}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(inlineEditL10n.error).show()}},&quot;html&quot;);return false},revert:function(){var b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(b){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&quot;).append(a(&quot;#bulk-edit&quot;))}e
 lse{a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;pages&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#post-&quot;;d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a('#inline-edit .inline-edit-private input[value=&quot;private&quot;]').click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).prop(&quot;checked&quot;)){e.val(&quot;&quot;).prop(&quot;disabled&quot;,true)}else{e.prop(&quot;disabled&quot;,false)}});a(&
 quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;)});a(&quot;span.cathide&quot;).click(function(){a(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;)});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#post-query-submit&quot;).m
 ousedown(function(f){c.revert();a('select[name^=&quot;action&quot;]').val(&quot;-1&quot;)})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},setBulk:function(){var e=&quot;&quot;,d=this.type,b,f=true;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(g){if(a(this).prop(&quot;checked&quot;)){f=false;var h=a(this).val(),c;c=a(&quot;#inline_&quot;+h+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;e+='&lt;div id=&quot;ttle'+h+'&quot;&gt;&lt;a id=&quot;_'+h+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+c+&quot;&lt;/div&gt;&quot;}});if(f){return this.revert()}a(&quot;#bu
 lk-titles&quot;).html(e);a(&quot;#bulk-titles a&quot;).click(function(){var c=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+c+'&quot;]').prop(&quot;checked&quot;,false);a(&quot;#ttle&quot;+c).remove()});if(&quot;post&quot;==d){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}a(&quot;html, body&quot;).animate({scrollTop:0},&quot;fast&quot;)},edit:function(b){var o=this,j,d,g,n,i,h,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}d=a(&quot;#inlin
 e-edit&quot;).clone(true);a(&quot;td&quot;,d).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);if(!a(':input[name=&quot;post_author&quot;] option[value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;]',d).val()){a(':input[name=&quot;post_author&quot;]',d).prepend('&lt;option value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;&gt;'+a(&quot;#&quot;+o.type+&quot;-&quot;+b+&quot; .author&quot;).text()+&quot;&lt;/option&gt;&quot;)}if(a(':input[name=&quot;post_author&quot;] option',d).length==1){a(&quot;label.inline-edit-author&quot;,d).hide()}for(var k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).prop(&quot;checked&quot;,true)}if(a(&quot;.pi
 ng_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;ping_status&quot;]',d).prop(&quot;checked&quot;,true)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).prop(&quot;checked&quot;,true)}a(&quot;.post_category&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;ul.&quot;+taxname+&quot;-checklist :checkbox&quot;,d).val(f.split(&quot;,&quot;))}});a(&quot;.tags_input&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;textarea.tax_input_&quot;+taxname,d).val(f);a(&quot;textarea.tax_input_&quot;+taxname,d).suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+taxname,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}});i=a(&quot;._status&quot;,g).text();if(&quot;future&quot;!=i){a('select[name=&quot;_status&quot;] option[value=&quot
 ;future&quot;]',d).remove()}if(&quot;private&quot;==i){a('input[name=&quot;keep_private&quot;]',d).prop(&quot;checked&quot;,true);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).prop(&quot;disabled&quot;,true)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();return false},save:function(e){var d,b,c=a(&quot;.post_status_page&quot;).val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save&quot;,post_type:typenow,post_ID:e,edit_date:&quot;true&quot;,post_status:c};b=a(&quot;#edit-&quot;+e+&quot; :i
 nput&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.post(&quot;admin-ajax.php&quot;,d,function(f){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(f){if(-1!=f.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+e).remove();a(&quot;#edit-&quot;+e).before(f).remove();a(inlineEditPost.what+e).hide().fadeIn()}else{f=f.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(f).show()}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(inlineEditL10n.error).show()}},&quot;html&quot;);return false},revert:function(){var b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(b){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&quot;).append(a(&quot;#bulk-edit&quot;))}else{a
 (&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsinlineedittaxdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-tax.dev.js (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-tax.dev.js        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-admin/js/inline-edit-tax.dev.js        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -20,9 +20,8 @@
</span><span class="cx">                 $('a.save', row).click(function() { return inlineEditTax.save(this); });
</span><span class="cx">                 $('input, select', row).keydown(function(e) { if(e.which == 13) return inlineEditTax.save(this); });
</span><span class="cx"> 
</span><del>-                $('#posts-filter input[type=&quot;submit&quot;]').click(function(e){
-                        if ( $('form#posts-filter tr.inline-editor').length &gt; 0 )
-                                t.revert();
</del><ins>+                $('#posts-filter input[type=&quot;submit&quot;]').mousedown(function(e){
+                        t.revert();
</ins><span class="cx">                 });
</span><span class="cx">         },
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjsinlineedittaxjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-tax.js (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-tax.js        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-admin/js/inline-edit-tax.js        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a){inlineEditTax={init:function(){var b=this,c=a(&quot;#inline-edit&quot;);b.type=a(&quot;#the-list&quot;).attr(&quot;class&quot;).substr(5);b.what=&quot;#&quot;+b.type+&quot;-&quot;;a(&quot;.editinline&quot;).live(&quot;click&quot;,function(){inlineEditTax.edit(this);return false});c.keyup(function(d){if(d.which==27){return inlineEditTax.revert()}});a(&quot;a.cancel&quot;,c).click(function(){return inlineEditTax.revert()});a(&quot;a.save&quot;,c).click(function(){return inlineEditTax.save(this)});a(&quot;input, select&quot;,c).keydown(function(d){if(d.which==13){return inlineEditTax.save(this)}});a('#posts-filter input[type=&quot;submit&quot;]').click(function(d){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){b.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},edit:function(d){var c=this,b;c.revert();if(typeof(d)==&quot;object&quot;){d=c.getId(d)}b=a(&quot
 ;#inline-edit&quot;).clone(true),rowData=a(&quot;#inline_&quot;+d);a(&quot;td&quot;,b).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(c.what+d).hasClass(&quot;alternate&quot;)){a(b).addClass(&quot;alternate&quot;)}a(c.what+d).hide().after(b);a(':input[name=&quot;name&quot;]',b).val(a(&quot;.name&quot;,rowData).text());a(':input[name=&quot;slug&quot;]',b).val(a(&quot;.slug&quot;,rowData).text());a(b).attr(&quot;id&quot;,&quot;edit-&quot;+d).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,b).eq(0).focus();return false},save:function(e){var d,b,c=a('input[name=&quot;taxonomy&quot;]').val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save-tax&quot;,tax_type:this.type,tax_ID:e,taxonomy:c};b=a(&quot;#edit-&quot;+e+&quot; :input&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.post(&quot;admin-ajax.php&quot;,d,function
 (g){var h,f;a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(g){if(-1!=g.indexOf(&quot;&lt;tr&quot;)){a(inlineEditTax.what+e).remove();f=a(g).attr(&quot;id&quot;);a(&quot;#edit-&quot;+e).before(g).remove();h=f?a(&quot;#&quot;+f):a(inlineEditTax.what+e);h.hide().fadeIn()}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(g).show()}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(inlineEditL10n.error).show()}});return false},revert:function(){var b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(b){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}return false},getId:function(c){var d=c.tagName==&quot;TR&quot;?c.id:a(c).parents(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditTax.init()})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){inlineEditTax={init:function(){var b=this,c=a(&quot;#inline-edit&quot;);b.type=a(&quot;#the-list&quot;).attr(&quot;class&quot;).substr(5);b.what=&quot;#&quot;+b.type+&quot;-&quot;;a(&quot;.editinline&quot;).live(&quot;click&quot;,function(){inlineEditTax.edit(this);return false});c.keyup(function(d){if(d.which==27){return inlineEditTax.revert()}});a(&quot;a.cancel&quot;,c).click(function(){return inlineEditTax.revert()});a(&quot;a.save&quot;,c).click(function(){return inlineEditTax.save(this)});a(&quot;input, select&quot;,c).keydown(function(d){if(d.which==13){return inlineEditTax.save(this)}});a('#posts-filter input[type=&quot;submit&quot;]').mousedown(function(d){b.revert()})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},edit:function(d){var c=this,b;c.revert();if(typeof(d)==&quot;object&quot;){d=c.getId(d)}b=a(&quot;#inline-edit&quot;).clone(true),rowData=a(&quot;#inline_&quot;
 +d);a(&quot;td&quot;,b).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(c.what+d).hasClass(&quot;alternate&quot;)){a(b).addClass(&quot;alternate&quot;)}a(c.what+d).hide().after(b);a(':input[name=&quot;name&quot;]',b).val(a(&quot;.name&quot;,rowData).text());a(':input[name=&quot;slug&quot;]',b).val(a(&quot;.slug&quot;,rowData).text());a(b).attr(&quot;id&quot;,&quot;edit-&quot;+d).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,b).eq(0).focus();return false},save:function(e){var d,b,c=a('input[name=&quot;taxonomy&quot;]').val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save-tax&quot;,tax_type:this.type,tax_ID:e,taxonomy:c};b=a(&quot;#edit-&quot;+e+&quot; :input&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.post(&quot;admin-ajax.php&quot;,d,function(g){var h,f;a(&quot;table.widefat .inline-edit-save .waiting&qu
 ot;).hide();if(g){if(-1!=g.indexOf(&quot;&lt;tr&quot;)){a(inlineEditTax.what+e).remove();f=a(g).attr(&quot;id&quot;);a(&quot;#edit-&quot;+e).before(g).remove();h=f?a(&quot;#&quot;+f):a(inlineEditTax.what+e);h.hide().fadeIn()}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(g).show()}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save .error&quot;).html(inlineEditL10n.error).show()}});return false},revert:function(){var b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(b){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}return false},getId:function(c){var d=c.tagName==&quot;TR&quot;?c.id:a(c).parents(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditTax.init()})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (18221 => 18222)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-06-09 21:55:39 UTC (rev 18221)
+++ trunk/wp-includes/script-loader.php        2011-06-10 00:01:16 UTC (rev 18222)
</span><span class="lines">@@ -385,7 +385,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'theme-preview', &quot;/wp-admin/js/theme-preview$suffix.js&quot;, array( 'thickbox', 'jquery' ), '20100407' );
</span><span class="cx">                 $scripts-&gt;add_data( 'theme-preview', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20110605' );
</del><ins>+                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20110609' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'inline-edit-post', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'inline-edit-post', 'inlineEditL10n', array(
</span><span class="cx">                         'error' =&gt; __('Error while saving the changes.'),
</span><span class="lines">@@ -394,7 +394,7 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(inlineEditL10n);}catch(e){};'
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'inline-edit-tax', &quot;/wp-admin/js/inline-edit-tax$suffix.js&quot;, array( 'jquery' ), '20110512' );
</del><ins>+                $scripts-&gt;add( 'inline-edit-tax', &quot;/wp-admin/js/inline-edit-tax$suffix.js&quot;, array( 'jquery' ), '20110609' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'inline-edit-tax', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'inline-edit-tax', 'inlineEditL10n', array(
</span><span class="cx">                         'error' =&gt; __('Error while saving the changes.'),
</span></span></pre>
</div>
</div>

</body>
</html>