<!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>[17981] trunk/wp-includes: Fix updating of custom fields, fixes #17483</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/17981">17981</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-05-21 14:38:56 +0000 (Sat, 21 May 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix updating of custom fields, fixes <a href="http://trac.wordpress.org/ticket/17483">#17483</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjswplistsdevjs">trunk/wp-includes/js/wp-lists.dev.js</a></li>
<li><a href="#trunkwpincludesjswplistsjs">trunk/wp-includes/js/wp-lists.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="trunkwpincludesjswplistsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-lists.dev.js (17980 => 17981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-lists.dev.js        2011-05-21 14:01:03 UTC (rev 17980)
+++ trunk/wp-includes/js/wp-lists.dev.js        2011-05-21 14:38:56 UTC (rev 17981)
</span><span class="lines">@@ -344,8 +344,7 @@
</span><span class="cx">                         else
</span><span class="cx">                                 list.append(e);
</span><span class="cx"> 
</span><del>-                } else if ( 0 === $('#' + s.element).size() ) {
-
</del><ins>+                } else if ( 'comment' != s.what || 0 === $('#' + s.element).length ) {
</ins><span class="cx">                         if ( s.pos &lt; 0 ) {
</span><span class="cx">                                 list.prepend(e);
</span><span class="cx">                         } else {
</span></span></pre></div>
<a id="trunkwpincludesjswplistsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-lists.js (17980 => 17981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-lists.js        2011-05-21 14:01:03 UTC (rev 17980)
+++ trunk/wp-includes/js/wp-lists.js        2011-05-21 14:38:56 UTC (rev 17981)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(b){var a={add:&quot;ajaxAdd&quot;,del:&quot;ajaxDel&quot;,dim:&quot;ajaxDim&quot;,process:&quot;process&quot;,recolor:&quot;recolor&quot;},c;c={settings:{url:ajaxurl,type:&quot;POST&quot;,response:&quot;ajax-response&quot;,what:&quot;&quot;,alt:&quot;alternate&quot;,altOffset:0,addColor:null,delColor:null,dimAddColor:null,dimDelColor:null,confirm:null,addBefore:null,addAfter:null,delBefore:null,delAfter:null,dimBefore:null,dimAfter:null},nonce:function(g,f){var d=wpAjax.unserialize(g.attr(&quot;href&quot;));return f.nonce||d._ajax_nonce||b(&quot;#&quot;+f.element+' input[name=&quot;_ajax_nonce&quot;]').val()||d._wpnonce||b(&quot;#&quot;+f.element+' input[name=&quot;_wpnonce&quot;]').val()||0},parseClass:function(h,f){var i=[],d;try{d=b(h).attr(&quot;class&quot;)||&quot;&quot;;d=d.match(new RegExp(f+&quot;:[\\S]+&quot;));if(d){i=d[0].split(&quot;:&quot;)}}catch(g){}return i},pre:function(i,g,d){var f,h;g=b.extend({},this.wpList.settings,{element:null,non
 ce:0,target:i.get(0)},g||{});if(b.isFunction(g.confirm)){if(&quot;add&quot;!=d){f=b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;);b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,&quot;#FF9966&quot;)}h=g.confirm.call(this,i,g,d,f);if(&quot;add&quot;!=d){b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,f)}if(!h){return false}}return g},ajaxAdd:function(g,m){g=b(g);m=m||{};var h=this,l=c.parseClass(g,&quot;add&quot;),j,d,f,i,k;m=c.pre.call(h,g,m,&quot;add&quot;);m.element=l[2]||g.attr(&quot;id&quot;)||m.element||null;if(l[3]){m.addColor=&quot;#&quot;+l[3]}else{m.addColor=m.addColor||&quot;#FFFF33&quot;}if(!m){return false}if(!g.is('[class^=&quot;add:'+h.id+':&quot;]')){return !c.add.call(h,g,m)}if(!m.element){return true}m.action=&quot;add-&quot;+m.what;m.nonce=c.nonce(g,m);j=b(&quot;#&quot;+m.element+&quot; :input&quot;).not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');d=wpAjax.validateForm(&quot;#&q
 uot;+m.element);if(!d){return false}m.data=b.param(b.extend({_ajax_nonce:m.nonce,action:m.action},wpAjax.unserialize(l[4]||&quot;&quot;)));f=b.isFunction(j.fieldSerialize)?j.fieldSerialize():j.serialize();if(f){m.data+=&quot;&amp;&quot;+f}if(b.isFunction(m.addBefore)){m=m.addBefore(m);if(!m){return true}}if(!m.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}m.success=function(e){i=wpAjax.parseAjaxResponse(e,m.response,m.element);k=e;if(!i||i.errors){return false}if(true===i){return true}jQuery.each(i.responses,function(){c.add.call(h,this.data,b.extend({},m,{pos:this.position||0,id:this.id||0,oldId:this.oldId||null}))});h.wpList.recolor();b(h).trigger(&quot;wpListAddEnd&quot;,[m,h.wpList]);c.clear.call(h,&quot;#&quot;+m.element)};m.complete=function(e,n){if(b.isFunction(m.addAfter)){var o=b.extend({xml:e,status:n,parsed:i},m);m.addAfter(k,o)}};b.ajax(m);return false},ajaxDel:function(k,i){k=b(k);i=i||{};var j=this,d=c.parseClass(k,&quot;delete&quot;),h,g,f;i=c.pre.call(j,k,
 i,&quot;delete&quot;);i.element=d[2]||i.element||null;if(d[3]){i.delColor=&quot;#&quot;+d[3]}else{i.delColor=i.delColor||&quot;#faa&quot;}if(!i||!i.element){return false}i.action=&quot;delete-&quot;+i.what;i.nonce=c.nonce(k,i);i.data=b.extend({action:i.action,id:i.element.split(&quot;-&quot;).pop(),_ajax_nonce:i.nonce},wpAjax.unserialize(d[4]||&quot;&quot;));if(b.isFunction(i.delBefore)){i=i.delBefore(i,j);if(!i){return true}}if(!i.data._ajax_nonce){return true}h=b(&quot;#&quot;+i.element);if(&quot;none&quot;!=i.delColor){h.css(&quot;backgroundColor&quot;,i.delColor).fadeOut(350,function(){j.wpList.recolor();b(j).trigger(&quot;wpListDelEnd&quot;,[i,j.wpList])})}else{j.wpList.recolor();b(j).trigger(&quot;wpListDelEnd&quot;,[i,j.wpList])}i.success=function(e){g=wpAjax.parseAjaxResponse(e,i.response,i.element);f=e;if(!g||g.errors){h.stop().stop().css(&quot;backgroundColor&quot;,&quot;#faa&quot;).show().queue(function(){j.wpList.recolor();b(this).dequeue()});return false}};i.com
 plete=function(e,l){if(b.isFunction(i.delAfter)){h.queue(function(){var m=b.extend({xml:e,status:l,parsed:g},i);i.delAfter(f,m)}).dequeue()}};b.ajax(i);return false},ajaxDim:function(h,n){if(b(h).parent().css(&quot;display&quot;)==&quot;none&quot;){return false}h=b(h);n=n||{};var i=this,m=c.parseClass(h,&quot;dim&quot;),g,d,f,k,j,l;n=c.pre.call(i,h,n,&quot;dim&quot;);n.element=m[2]||n.element||null;n.dimClass=m[3]||n.dimClass||null;if(m[4]){n.dimAddColor=&quot;#&quot;+m[4]}else{n.dimAddColor=n.dimAddColor||&quot;#FFFF33&quot;}if(m[5]){n.dimDelColor=&quot;#&quot;+m[5]}else{n.dimDelColor=n.dimDelColor||&quot;#FF3333&quot;}if(!n||!n.element||!n.dimClass){return true}n.action=&quot;dim-&quot;+n.what;n.nonce=c.nonce(h,n);n.data=b.extend({action:n.action,id:n.element.split(&quot;-&quot;).pop(),dimClass:n.dimClass,_ajax_nonce:n.nonce},wpAjax.unserialize(m[6]||&quot;&quot;));if(b.isFunction(n.dimBefore)){n=n.dimBefore(n);if(!n){return true}}g=b(&quot;#&quot;+n.element);d=g.toggleCla
 ss(n.dimClass).is(&quot;.&quot;+n.dimClass);f=c.getColor(g);g.toggleClass(n.dimClass);k=d?n.dimAddColor:n.dimDelColor;if(&quot;none&quot;!=k){g.animate({backgroundColor:k},&quot;fast&quot;).queue(function(){g.toggleClass(n.dimClass);b(this).dequeue()}).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;);b(i).trigger(&quot;wpListDimEnd&quot;,[n,i.wpList])}})}else{b(i).trigger(&quot;wpListDimEnd&quot;,[n,i.wpList])}if(!n.data._ajax_nonce){return true}n.success=function(e){j=wpAjax.parseAjaxResponse(e,n.response,n.element);l=e;if(!j||j.errors){g.stop().stop().css(&quot;backgroundColor&quot;,&quot;#FF3333&quot;)[d?&quot;removeClass&quot;:&quot;addClass&quot;](n.dimClass).show().queue(function(){i.wpList.recolor();b(this).dequeue()});return false}};n.complete=function(e,o){if(b.isFunction(n.dimAfter)){g.queue(function(){var p=b.extend({xml:e,status:o,parsed:j},n);n.dimAfter(l,p)}).dequeue()}};b.ajax(n);return false},getColor:func
 tion(e){var d=jQuery(e).css(&quot;backgroundColor&quot;);return d||&quot;#ffffff&quot;},add:function(k,g){k=b(k);var i=b(this),d=false,j={pos:0,id:0,oldId:null},l,h,f;if(&quot;string&quot;==typeof g){g={what:g}}g=b.extend(j,this.wpList.settings,g);if(!k.size()||!g.what){return false}if(g.oldId){d=b(&quot;#&quot;+g.what+&quot;-&quot;+g.oldId)}if(g.id&amp;&amp;(g.id!=g.oldId||!d||!d.size())){b(&quot;#&quot;+g.what+&quot;-&quot;+g.id).remove()}if(d&amp;&amp;d.size()){d.before(k);d.remove()}else{if(isNaN(g.pos)){l=&quot;after&quot;;if(&quot;-&quot;==g.pos.substr(0,1)){g.pos=g.pos.substr(1);l=&quot;before&quot;}h=i.find(&quot;#&quot;+g.pos);if(1===h.size()){h[l](k)}else{i.append(k)}}else{if(0===b(&quot;#&quot;+g.element).size()){if(g.pos&lt;0){i.prepend(k)}else{i.append(k)}}}}if(g.alt){if((i.children(&quot;:visible&quot;).index(k[0])+g.altOffset)%2){k.removeClass(g.alt)}else{k.addClass(g.alt)}}if(&quot;none&quot;!=g.addColor){f=c.getColor(k);k.css(&quot;backgroundColor&quot;,g.ad
 dColor).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}i.each(function(){this.wpList.process(k)});return k},clear:function(h){var g=this,f,d;h=b(h);if(g.wpList&amp;&amp;h.parents(&quot;#&quot;+g.id).size()){return}h.find(&quot;:input&quot;).each(function(){if(b(this).parents(&quot;.form-no-clear&quot;).size()){return}f=this.type.toLowerCase();d=this.tagName.toLowerCase();if(&quot;text&quot;==f||&quot;password&quot;==f||&quot;textarea&quot;==d){this.value=&quot;&quot;}else{if(&quot;checkbox&quot;==f||&quot;radio&quot;==f){this.checked=false}else{if(&quot;select&quot;==d){this.selectedIndex=null}}}})},process:function(e){var f=this,d=b(e||document);d.delegate('form[class^=&quot;add:'+f.id+':&quot;]',&quot;submit&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;add:'+f.id+':&quot;]:not(form)',&quot;click&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;delete:'+f.id+':&quot;]'
 ,&quot;click&quot;,function(){return f.wpList.del(this)});d.delegate('[class^=&quot;dim:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.dim(this)})},recolor:function(){var f=this,e,d;if(!f.wpList.settings.alt){return}e=b(&quot;.list-item:visible&quot;,f);if(!e.size()){e=b(f).children(&quot;:visible&quot;)}d=[&quot;:even&quot;,&quot;:odd&quot;];if(f.wpList.settings.altOffset%2){d.reverse()}e.filter(d[0]).addClass(f.wpList.settings.alt).end().filter(d[1]).removeClass(f.wpList.settings.alt)},init:function(){var d=this;d.wpList.process=function(e){d.each(function(){this.wpList.process(e)})};d.wpList.recolor=function(){d.each(function(){this.wpList.recolor()})}}};b.fn.wpList=function(d){this.each(function(){var e=this;this.wpList={settings:b.extend({},c.settings,{what:c.parseClass(this,&quot;list&quot;)[1]||&quot;&quot;},d)};b.each(a,function(g,h){e.wpList[g]=function(i,f){return c[h].call(e,i,f)}})});c.init.call(this);this.wpList.process();return this}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(b){var a={add:&quot;ajaxAdd&quot;,del:&quot;ajaxDel&quot;,dim:&quot;ajaxDim&quot;,process:&quot;process&quot;,recolor:&quot;recolor&quot;},c;c={settings:{url:ajaxurl,type:&quot;POST&quot;,response:&quot;ajax-response&quot;,what:&quot;&quot;,alt:&quot;alternate&quot;,altOffset:0,addColor:null,delColor:null,dimAddColor:null,dimDelColor:null,confirm:null,addBefore:null,addAfter:null,delBefore:null,delAfter:null,dimBefore:null,dimAfter:null},nonce:function(g,f){var d=wpAjax.unserialize(g.attr(&quot;href&quot;));return f.nonce||d._ajax_nonce||b(&quot;#&quot;+f.element+' input[name=&quot;_ajax_nonce&quot;]').val()||d._wpnonce||b(&quot;#&quot;+f.element+' input[name=&quot;_wpnonce&quot;]').val()||0},parseClass:function(h,f){var i=[],d;try{d=b(h).attr(&quot;class&quot;)||&quot;&quot;;d=d.match(new RegExp(f+&quot;:[\\S]+&quot;));if(d){i=d[0].split(&quot;:&quot;)}}catch(g){}return i},pre:function(i,g,d){var f,h;g=b.extend({},this.wpList.settings,{element:null,non
 ce:0,target:i.get(0)},g||{});if(b.isFunction(g.confirm)){if(&quot;add&quot;!=d){f=b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;);b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,&quot;#FF9966&quot;)}h=g.confirm.call(this,i,g,d,f);if(&quot;add&quot;!=d){b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,f)}if(!h){return false}}return g},ajaxAdd:function(g,m){g=b(g);m=m||{};var h=this,l=c.parseClass(g,&quot;add&quot;),j,d,f,i,k;m=c.pre.call(h,g,m,&quot;add&quot;);m.element=l[2]||g.attr(&quot;id&quot;)||m.element||null;if(l[3]){m.addColor=&quot;#&quot;+l[3]}else{m.addColor=m.addColor||&quot;#FFFF33&quot;}if(!m){return false}if(!g.is('[class^=&quot;add:'+h.id+':&quot;]')){return !c.add.call(h,g,m)}if(!m.element){return true}m.action=&quot;add-&quot;+m.what;m.nonce=c.nonce(g,m);j=b(&quot;#&quot;+m.element+&quot; :input&quot;).not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');d=wpAjax.validateForm(&quot;#&q
 uot;+m.element);if(!d){return false}m.data=b.param(b.extend({_ajax_nonce:m.nonce,action:m.action},wpAjax.unserialize(l[4]||&quot;&quot;)));f=b.isFunction(j.fieldSerialize)?j.fieldSerialize():j.serialize();if(f){m.data+=&quot;&amp;&quot;+f}if(b.isFunction(m.addBefore)){m=m.addBefore(m);if(!m){return true}}if(!m.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}m.success=function(e){i=wpAjax.parseAjaxResponse(e,m.response,m.element);k=e;if(!i||i.errors){return false}if(true===i){return true}jQuery.each(i.responses,function(){c.add.call(h,this.data,b.extend({},m,{pos:this.position||0,id:this.id||0,oldId:this.oldId||null}))});h.wpList.recolor();b(h).trigger(&quot;wpListAddEnd&quot;,[m,h.wpList]);c.clear.call(h,&quot;#&quot;+m.element)};m.complete=function(e,n){if(b.isFunction(m.addAfter)){var o=b.extend({xml:e,status:n,parsed:i},m);m.addAfter(k,o)}};b.ajax(m);return false},ajaxDel:function(k,i){k=b(k);i=i||{};var j=this,d=c.parseClass(k,&quot;delete&quot;),h,g,f;i=c.pre.call(j,k,
 i,&quot;delete&quot;);i.element=d[2]||i.element||null;if(d[3]){i.delColor=&quot;#&quot;+d[3]}else{i.delColor=i.delColor||&quot;#faa&quot;}if(!i||!i.element){return false}i.action=&quot;delete-&quot;+i.what;i.nonce=c.nonce(k,i);i.data=b.extend({action:i.action,id:i.element.split(&quot;-&quot;).pop(),_ajax_nonce:i.nonce},wpAjax.unserialize(d[4]||&quot;&quot;));if(b.isFunction(i.delBefore)){i=i.delBefore(i,j);if(!i){return true}}if(!i.data._ajax_nonce){return true}h=b(&quot;#&quot;+i.element);if(&quot;none&quot;!=i.delColor){h.css(&quot;backgroundColor&quot;,i.delColor).fadeOut(350,function(){j.wpList.recolor();b(j).trigger(&quot;wpListDelEnd&quot;,[i,j.wpList])})}else{j.wpList.recolor();b(j).trigger(&quot;wpListDelEnd&quot;,[i,j.wpList])}i.success=function(e){g=wpAjax.parseAjaxResponse(e,i.response,i.element);f=e;if(!g||g.errors){h.stop().stop().css(&quot;backgroundColor&quot;,&quot;#faa&quot;).show().queue(function(){j.wpList.recolor();b(this).dequeue()});return false}};i.com
 plete=function(e,l){if(b.isFunction(i.delAfter)){h.queue(function(){var m=b.extend({xml:e,status:l,parsed:g},i);i.delAfter(f,m)}).dequeue()}};b.ajax(i);return false},ajaxDim:function(h,n){if(b(h).parent().css(&quot;display&quot;)==&quot;none&quot;){return false}h=b(h);n=n||{};var i=this,m=c.parseClass(h,&quot;dim&quot;),g,d,f,k,j,l;n=c.pre.call(i,h,n,&quot;dim&quot;);n.element=m[2]||n.element||null;n.dimClass=m[3]||n.dimClass||null;if(m[4]){n.dimAddColor=&quot;#&quot;+m[4]}else{n.dimAddColor=n.dimAddColor||&quot;#FFFF33&quot;}if(m[5]){n.dimDelColor=&quot;#&quot;+m[5]}else{n.dimDelColor=n.dimDelColor||&quot;#FF3333&quot;}if(!n||!n.element||!n.dimClass){return true}n.action=&quot;dim-&quot;+n.what;n.nonce=c.nonce(h,n);n.data=b.extend({action:n.action,id:n.element.split(&quot;-&quot;).pop(),dimClass:n.dimClass,_ajax_nonce:n.nonce},wpAjax.unserialize(m[6]||&quot;&quot;));if(b.isFunction(n.dimBefore)){n=n.dimBefore(n);if(!n){return true}}g=b(&quot;#&quot;+n.element);d=g.toggleCla
 ss(n.dimClass).is(&quot;.&quot;+n.dimClass);f=c.getColor(g);g.toggleClass(n.dimClass);k=d?n.dimAddColor:n.dimDelColor;if(&quot;none&quot;!=k){g.animate({backgroundColor:k},&quot;fast&quot;).queue(function(){g.toggleClass(n.dimClass);b(this).dequeue()}).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;);b(i).trigger(&quot;wpListDimEnd&quot;,[n,i.wpList])}})}else{b(i).trigger(&quot;wpListDimEnd&quot;,[n,i.wpList])}if(!n.data._ajax_nonce){return true}n.success=function(e){j=wpAjax.parseAjaxResponse(e,n.response,n.element);l=e;if(!j||j.errors){g.stop().stop().css(&quot;backgroundColor&quot;,&quot;#FF3333&quot;)[d?&quot;removeClass&quot;:&quot;addClass&quot;](n.dimClass).show().queue(function(){i.wpList.recolor();b(this).dequeue()});return false}};n.complete=function(e,o){if(b.isFunction(n.dimAfter)){g.queue(function(){var p=b.extend({xml:e,status:o,parsed:j},n);n.dimAfter(l,p)}).dequeue()}};b.ajax(n);return false},getColor:func
 tion(e){var d=jQuery(e).css(&quot;backgroundColor&quot;);return d||&quot;#ffffff&quot;},add:function(k,g){k=b(k);var i=b(this),d=false,j={pos:0,id:0,oldId:null},l,h,f;if(&quot;string&quot;==typeof g){g={what:g}}g=b.extend(j,this.wpList.settings,g);if(!k.size()||!g.what){return false}if(g.oldId){d=b(&quot;#&quot;+g.what+&quot;-&quot;+g.oldId)}if(g.id&amp;&amp;(g.id!=g.oldId||!d||!d.size())){b(&quot;#&quot;+g.what+&quot;-&quot;+g.id).remove()}if(d&amp;&amp;d.size()){d.before(k);d.remove()}else{if(isNaN(g.pos)){l=&quot;after&quot;;if(&quot;-&quot;==g.pos.substr(0,1)){g.pos=g.pos.substr(1);l=&quot;before&quot;}h=i.find(&quot;#&quot;+g.pos);if(1===h.size()){h[l](k)}else{i.append(k)}}else{if(&quot;comment&quot;!=g.what||0===b(&quot;#&quot;+g.element).length){if(g.pos&lt;0){i.prepend(k)}else{i.append(k)}}}}if(g.alt){if((i.children(&quot;:visible&quot;).index(k[0])+g.altOffset)%2){k.removeClass(g.alt)}else{k.addClass(g.alt)}}if(&quot;none&quot;!=g.addColor){f=c.getColor(k);k.css(&qu
 ot;backgroundColor&quot;,g.addColor).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}i.each(function(){this.wpList.process(k)});return k},clear:function(h){var g=this,f,d;h=b(h);if(g.wpList&amp;&amp;h.parents(&quot;#&quot;+g.id).size()){return}h.find(&quot;:input&quot;).each(function(){if(b(this).parents(&quot;.form-no-clear&quot;).size()){return}f=this.type.toLowerCase();d=this.tagName.toLowerCase();if(&quot;text&quot;==f||&quot;password&quot;==f||&quot;textarea&quot;==d){this.value=&quot;&quot;}else{if(&quot;checkbox&quot;==f||&quot;radio&quot;==f){this.checked=false}else{if(&quot;select&quot;==d){this.selectedIndex=null}}}})},process:function(e){var f=this,d=b(e||document);d.delegate('form[class^=&quot;add:'+f.id+':&quot;]',&quot;submit&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;add:'+f.id+':&quot;]:not(form)',&quot;click&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&
 quot;delete:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.del(this)});d.delegate('[class^=&quot;dim:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.dim(this)})},recolor:function(){var f=this,e,d;if(!f.wpList.settings.alt){return}e=b(&quot;.list-item:visible&quot;,f);if(!e.size()){e=b(f).children(&quot;:visible&quot;)}d=[&quot;:even&quot;,&quot;:odd&quot;];if(f.wpList.settings.altOffset%2){d.reverse()}e.filter(d[0]).addClass(f.wpList.settings.alt).end().filter(d[1]).removeClass(f.wpList.settings.alt)},init:function(){var d=this;d.wpList.process=function(e){d.each(function(){this.wpList.process(e)})};d.wpList.recolor=function(){d.each(function(){this.wpList.recolor()})}}};b.fn.wpList=function(d){this.each(function(){var e=this;this.wpList={settings:b.extend({},c.settings,{what:c.parseClass(this,&quot;list&quot;)[1]||&quot;&quot;},d)};b.each(a,function(g,h){e.wpList[g]=function(i,f){return c[h].call(e,i,f)}})});c.init.call(this);this.wpList.proce
 ss();return this}})(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 (17980 => 17981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-05-21 14:01:03 UTC (rev 17980)
+++ trunk/wp-includes/script-loader.php        2011-05-21 14:38:56 UTC (rev 17981)
</span><span class="lines">@@ -112,7 +112,7 @@
</span><span class="cx">         $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110515' );
</span><span class="cx">         $scripts-&gt;add_data( 'autosave', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20110518' );
</del><ins>+        $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20110521' );
</ins><span class="cx">         $scripts-&gt;add_data( 'wp-lists', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');
</span></span></pre>
</div>
</div>

</body>
</html>