<!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 { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { 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>[12522] trunk/wp-includes: Upgrade SWFobject JS to 2.2.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12522">12522</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2009-12-23 16:44:46 +0000 (Wed, 23 Dec 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Upgrade SWFobject JS to 2.2. Props niallkennedy. fixes <a href="http://trac.wordpress.org/ticket/11109">#11109</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsswfobjectjs">trunk/wp-includes/js/swfobject.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="trunkwpincludesjsswfobjectjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/swfobject.js (12521 => 12522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/swfobject.js        2009-12-23 16:31:57 UTC (rev 12521)
+++ trunk/wp-includes/js/swfobject.js        2009-12-23 16:44:46 UTC (rev 12522)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><del>-/* SWFObject v2.1 &lt;http://code.google.com/p/swfobject/&gt;
-        Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
-        This software is released under the MIT License &lt;http://www.opensource.org/licenses/mit-license.php&gt;
</del><ins>+/*        SWFObject v2.2 &lt;http://code.google.com/p/swfobject/&gt; 
+        is released under the MIT License &lt;http://www.opensource.org/licenses/mit-license.php&gt; 
</ins><span class="cx"> */
</span><del>-var swfobject=function(){var b=&quot;undefined&quot;,Q=&quot;object&quot;,n=&quot;Shockwave Flash&quot;,p=&quot;ShockwaveFlash.ShockwaveFlash&quot;,P=&quot;application/x-shockwave-flash&quot;,m=&quot;SWFObjectExprInst&quot;,j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&amp;&amp;typeof K.getElementsByTagName!=b&amp;&amp;typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&amp;&amp;typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&amp;&amp;!(typeof T.mimeTypes!=b&amp;&amp;T.mimeTypes[P]&amp;&amp;!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,&quot;$1&quot;);AC[0]=parseInt(x.replace(/^(.*)\..*$/,&quot;$1&quot;),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,&quot;$1&quot;),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,&quot;$1&quot;),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+&quot;.7&quot;)}catch(t){try{y=new ActiveXObject(p+&quot;.6&quot;);AC=[6,0,21];y.AllowScriptAccess=&quot;always&quot;}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&amp;&amp;y){try{x=y.GetVariable(&quot;$version&quot;);if(x){x=x.split(&quot; &quot;)[1].split(&quot;,&quot;);AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,&quot;$1&quot;)):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&amp;&amp;h.win){try{K.write(&quot;&lt;script id=__ie_ondomload defer=true src=//:&gt;&lt;\/script&gt;&quot;);J=C(&quot;__ie_ondomload&quot;);if(J){I(J,&quot;onreadystatechange&quot;,S)}}catch(q){}}if(h.webkit&amp;&amp;typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener(&quot;DOMContentLoaded&quot;,E,null)}R(E)}();function S(){if(J.readyState==&quot;complete&quot;){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&amp;&amp;h.win){var v=a(&quot;span&quot;);try{var u=K.getElementsByTagName(&quot;body&quot;)[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r&lt;q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener(&quot;load&quot;,r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener(&quot;load&quot;,r,false)}else{if(typeof j.attachEvent!=b){I(j,&quot;onload&quot;,r)}else{if(typeof j.onload==&quot;function&quot;){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q&lt;t;q++){var u=N[q].id;if(h.pv[0]&gt;0){var r=C(u);if(r){N[q].width=r.getAttribute(&quot;width&quot;)?r.getAttribute(&quot;width&quot;):&quot;0&quot;;N[q].height=r.getAttribute(&quot;height&quot;)?r.getAttribute(&quot;height&quot;):&quot;0&quot;;if(c(N[q].swfVersion)){if(h.webkit&amp;&amp;h.webkit&lt;312){Y(r)}W(u,true)}else{if(N[q].expressInstall&amp;&amp;!A&amp;&amp;c(&quot;6.0.65&quot;)&amp;&amp;(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a(&quot;embed&quot;),y=q.attributes;if(y){var v=y.length;for(var u=0;u&lt;v;u++){if(y[u].nodeName==&quot;DATA&quot;){w.setAttribute(&quot;src&quot;,y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r&lt;z;r++){if(x[r].nodeType==1&amp;&amp;x[r].nodeName==&quot;PARAM&quot;){w.setAttribute(x[r].getAttribute(&quot;name&quot;),x[r].getAttribute(&quot;value&quot;))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&amp;&amp;parseInt(w.width,10)&lt;310){w.width=&quot;310&quot;}if(!(/%$/.test(w.height))&amp;&amp;parseInt(w.height,10)&lt;137){w.height=&quot;137&quot;}K.title=K.title.slice(0,47)+&quot; - Flash Player Installation&quot;;var z=h.ie&amp;&amp;h.win?&quot;ActiveX&quot;:&quot;PlugIn&quot;,q=K.title,r=&quot;MMredirectURL=&quot;+j.location+&quot;&amp;MMplayerType=&quot;+z+&quot;&amp;MMdoctitle=&quot;+q,x=w.id;if(h.ie&amp;&amp;h.win&amp;&amp;u.readyState!=4){var t=a(&quot;div&quot;);x+=&quot;SWFObjectNew&quot;;t.setAttribute(&quot;id&quot;,x);u.parentNode.insertBefore(t,u);u.style.display=&quot;none&quot;;var v=function(){u.parentNode.removeChild(u)};I(j,&quot;onload&quot;,v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&amp;&amp;h.win&amp;&amp;t.readyState!=4){var r=a(&quot;div&quot;);t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display=&quot;none&quot;;var q=function(){t.parentNode.removeChild(t)};I(j,&quot;onload&quot;,q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a(&quot;div&quot;);if(h.win&amp;&amp;h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t&lt;q;t++){if(!(w[t].nodeType==1&amp;&amp;w[t].nodeName==&quot;PARAM&quot;)&amp;&amp;!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&amp;&amp;h.win){var AF=&quot;&quot;;for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()==&quot;data&quot;){AE.movie=AG[AB]}else{if(AB.toLowerCase()==&quot;styleclass&quot;){AF+=' class=&quot;'+AG[AB]+'&quot;'}else{if(AB.toLowerCase()!=&quot;classid&quot;){AF+=&quot; &quot;+AB+'=&quot;'+AG[AB]+'&quot;'}}}}}var AD=&quot;&quot;;for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='&lt;param name=&quot;'+AA+'&quot; value=&quot;'+AE[AA]+'&quot; /&gt;'}}v.outerHTML='&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;'+AF+&quot;&gt;&quot;+AD+&quot;&lt;/object&gt;&quot;;i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&amp;&amp;h.webkit&lt;312){var AC=a(&quot;embed&quot;);AC.setAttribute(&quot;type&quot;,P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()==&quot;data&quot;){AC.setAttribute(&quot;src&quot;,AG[z])}else{if(z.toLowerCase()==&quot;styleclass&quot;){AC.setAttribute(&quot;class&quot;,AG[z])}else{if(z.toLowerCase()!=&quot;classid&quot;){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!=&quot;movie&quot;){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute(&quot;type&quot;,P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()==&quot;styleclass&quot;){u.setAttribute(&quot;class&quot;,AG[x])}else{if(x.toLowerCase()!=&quot;classid&quot;){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&amp;&amp;w.toLowerCase()!=&quot;movie&quot;){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a(&quot;param&quot;);u.setAttribute(&quot;name&quot;,q);u.setAttribute(&quot;value&quot;,r);t.appendChild(u)}function X(r){var q=C(r);if(q&amp;&amp;(q.nodeName==&quot;OBJECT&quot;||q.nodeName==&quot;EMBED&quot;)){if(h.ie&amp;&amp;h.win){if(q.readyState==4){B(r)}else{j.attachEvent(&quot;onload&quot;,function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]==&quot;function&quot;){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(&quot;.&quot;);q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]&gt;q[0]||(r[0]==q[0]&amp;&amp;r[1]&gt;q[1])||(r[0]==q[0]&amp;&amp;r[1]==q[1]&amp;&amp;r[2]&gt;=q[2]))?true:false}function V(v,r){if(h.ie&amp;&amp;h.mac){return }var u=K.getElementsByTagName(&quot;head&quot;)[0],t=a(&quot;style&quot;);t.setAttribute(&quot;type&quot;,&quot;text/css&quot;);t.setAttribute(&quot;media&quot;,&quot;screen&quot;);if(!(h.ie&amp;&amp;h.win)&amp;&amp;typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+&quot; {&quot;+r+&quot;}&quot;))}u.appendChild(t);if(h.ie&amp;&amp;h.win&amp;&amp;typeof K.styleSheets!=b&amp;&amp;K.styleSheets.length&gt;0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?&quot;visible&quot;:&quot;hidden&quot;;if(e&amp;&amp;C(t)){C(t).style.visibility=r}else{V(&quot;#&quot;+t,&quot;visibility:&quot;+r)}}function g(s){var r=/[\\\&quot;&lt;&gt;\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&amp;&amp;h.win){window.attachEvent(&quot;onunload&quot;,function(){var w=d.length;for(var v=0;v&lt;w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u&lt;t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&amp;&amp;typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+=&quot;&quot;;AD+=&quot;&quot;;if(c(q)){W(AE,false);var AA={};if(AC&amp;&amp;typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&amp;&amp;typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&amp;&amp;typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+=&quot;&amp;&quot;+t+&quot;=&quot;+r[t]}else{y.flashvars=t+&quot;=&quot;+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&amp;&amp;!A&amp;&amp;c(&quot;6.0.65&quot;)&amp;&amp;(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split(&quot;&amp;&quot;);for(var r=0;r&lt;t.length;r++){if(t[r].substring(0,t[r].indexOf(&quot;=&quot;))==v){return g(t[r].substring((t[r].indexOf(&quot;=&quot;)+1)))}}}return&quot;&quot;},expressInstallCallback:function(){if(A&amp;&amp;M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&amp;&amp;h.win){M.style.display=&quot;block&quot;}}M=null;l=null;A=false}}}}}();
</del><span class="cx">\ No newline at end of file
</span><ins>+var swfobject=function(){var D=&quot;undefined&quot;,r=&quot;object&quot;,S=&quot;Shockwave Flash&quot;,W=&quot;ShockwaveFlash.ShockwaveFlash&quot;,q=&quot;application/x-shockwave-flash&quot;,R=&quot;SWFObjectExprInst&quot;,x=&quot;onreadystatechange&quot;,O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&amp;&amp;typeof j.getElementsByTagName!=D&amp;&amp;typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,&quot;$1&quot;)):false,X=!+&quot;\v1&quot;,ag=[0,0,0],ab=null;if(typeof t.plugins!=D&amp;&amp;typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&amp;&amp;!(typeof t.mimeTypes!=D&amp;&amp;t.mimeTypes[q]&amp;&amp;!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,&quot;$1&quot;);ag[0]=parseInt(ab.replace(/^(.*)\..*$/,&quot;$1&quot;),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,&quot;$1&quot;),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,&quot;$1&quot;),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable(&quot;$version&quot;);if(ab){X=true;ab=ab.split(&quot; &quot;)[1].split(&quot;,&quot;);ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&amp;&amp;j.readyState==&quot;complete&quot;)||(typeof j.readyState==D&amp;&amp;(j.getElementsByTagName(&quot;body&quot;)[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener(&quot;DOMContentLoaded&quot;,f,false)}if(M.ie&amp;&amp;M.win){j.attachEvent(x,function(){if(j.readyState==&quot;complete&quot;){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll(&quot;left&quot;)}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName(&quot;body&quot;)[0].appendChild(C(&quot;span&quot;));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y&lt;X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener(&quot;load&quot;,Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener(&quot;load&quot;,Y,false)}else{if(typeof O.attachEvent!=D){i(O,&quot;onload&quot;,Y)}else{if(typeof O.onload==&quot;function&quot;){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName(&quot;body&quot;)[0];var aa=C(r);aa.setAttribute(&quot;type&quot;,q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable(&quot;$version&quot;);if(ab){ab=ab.split(&quot; &quot;)[1].split(&quot;,&quot;);M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y&lt;10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag&gt;0){for(var af=0;af&lt;ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]&gt;0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&amp;&amp;!(M.wk&amp;&amp;M.wk&lt;312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&amp;&amp;A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute(&quot;width&quot;)||&quot;0&quot;;ai.height=ae.getAttribute(&quot;height&quot;)||&quot;0&quot;;if(ae.getAttribute(&quot;class&quot;)){ai.styleclass=ae.getAttribute(&quot;class&quot;)}if(ae.getAttribute(&quot;align&quot;)){ai.align=ae.getAttribute(&quot;align&quot;)}var ah={};var X=ae.getElementsByTagName(&quot;param&quot;);var ac=X.length;for(var ad=0;ad&lt;ac;ad++){if(X[ad].getAttribute(&quot;name&quot;).toLowerCase()!=&quot;movie&quot;){ah[X[ad].getAttribute(&quot;name&quot;)]=X[ad].getAttribute(&quot;value&quot;)}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&amp;&amp;typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&amp;&amp;Y.nodeName==&quot;OBJECT&quot;){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&amp;&amp;F(&quot;6.0.65&quot;)&amp;&amp;(M.win||M.mac)&amp;&amp;!(M.wk&amp;&amp;M.wk&lt;312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName==&quot;OBJECT&quot;){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&amp;&amp;parseInt(aa.width,10)&lt;310)){aa.width=&quot;310&quot;}if(typeof aa.height==D||(!/%$/.test(aa.height)&amp;&amp;parseInt(aa.height,10)&lt;137)){aa.height=&quot;137&quot;}j.title=j.title.slice(0,47)+&quot; - Flash Player Installation&quot;;var ad=M.ie&amp;&amp;M.win?&quot;ActiveX&quot;:&quot;PlugIn&quot;,ac=&quot;MMredirectURL=&quot;+O.location.toString().replace(/&amp;/g,&quot;%26&quot;)+&quot;&amp;MMplayerType=&quot;+ad+&quot;&amp;MMdoctitle=&quot;+j.title;if(typeof ab.flashvars!=D){ab.flashvars+=&quot;&amp;&quot;+ac}else{ab.flashvars=ac}if(M.ie&amp;&amp;M.win&amp;&amp;ae.readyState!=4){var Y=C(&quot;div&quot;);X+=&quot;SWFObjectNew&quot;;Y.setAttribute(&quot;id&quot;,X);ae.parentNode.insertBefore(Y,ae);ae.style.display=&quot;none&quot;;(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&amp;&amp;M.win&amp;&amp;Y.readyState!=4){var X=C(&quot;div&quot;);Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display=&quot;none&quot;;(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C(&quot;div&quot;);if(M.win&amp;&amp;M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z&lt;X;Z++){if(!(ad[Z].nodeType==1&amp;&amp;ad[Z].nodeName==&quot;PARAM&quot;)&amp;&amp;!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&amp;&amp;M.wk&lt;312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&amp;&amp;M.win){var ah=&quot;&quot;;for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()==&quot;data&quot;){ag.movie=ai[ae]}else{if(ae.toLowerCase()==&quot;styleclass&quot;){ah+=' class=&quot;'+ai[ae]+'&quot;'}else{if(ae.toLowerCase()!=&quot;classid&quot;){ah+=&quot; &quot;+ae+'=&quot;'+ai[ae]+'&quot;'}}}}}var af=&quot;&quot;;for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='&lt;param name=&quot;'+ad+'&quot; value=&quot;'+ag[ad]+'&quot; /&gt;'}}aa.outerHTML='&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;'+ah+&quot;&gt;&quot;+af+&quot;&lt;/object&gt;&quot;;N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute(&quot;type&quot;,q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()==&quot;styleclass&quot;){Z.setAttribute(&quot;class&quot;,ai[ac])}else{if(ac.toLowerCase()!=&quot;classid&quot;){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&amp;&amp;ab.toLowerCase()!=&quot;movie&quot;){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C(&quot;param&quot;);aa.setAttribute(&quot;name&quot;,X);aa.setAttribute(&quot;value&quot;,Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&amp;&amp;X.nodeName==&quot;OBJECT&quot;){if(M.ie&amp;&amp;M.win){X.style.display=&quot;none&quot;;(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]==&quot;function&quot;){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(&quot;.&quot;);X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]&gt;X[0]||(Y[0]==X[0]&amp;&amp;Y[1]&gt;X[1])||(Y[0]==X[0]&amp;&amp;Y[1]==X[1]&amp;&amp;Y[2]&gt;=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&amp;&amp;M.mac){return}var aa=j.getElementsByTagName(&quot;head&quot;)[0];if(!aa){return}var X=(ad&amp;&amp;typeof ad==&quot;string&quot;)?ad:&quot;screen&quot;;if(ab){n=null;G=null}if(!n||G!=X){var Z=C(&quot;style&quot;);Z.setAttribute(&quot;type&quot;,&quot;text/css&quot;);Z.setAttribute(&quot;media&quot;,X);n=aa.appendChild(Z);if(M.ie&amp;&amp;M.win&amp;&amp;typeof j.styleSheets!=D&amp;&amp;j.styleSheets.length&gt;0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&amp;&amp;M.win){if(n&amp;&amp;typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&amp;&amp;typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+&quot; {&quot;+Y+&quot;}&quot;))}}}function w(Z,X){if(!m){return}var Y=X?&quot;visible&quot;:&quot;hidden&quot;;if(J&amp;&amp;c(Z)){c(Z).style.visibility=Y}else{v(&quot;#&quot;+Z,&quot;visibility:&quot;+Y)}}function L(Y){var Z=/[\\\&quot;&lt;&gt;\.;]/;var X=Z.exec(Y)!=null;return X&amp;&amp;typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&amp;&amp;M.win){window.attachEvent(&quot;onunload&quot;,function(){var ac=I.length;for(var ab=0;ab&lt;ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa&lt;Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&amp;&amp;ab&amp;&amp;X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&amp;&amp;!(M.wk&amp;&amp;M.wk&lt;312)&amp;&amp;ab&amp;&amp;ah&amp;&amp;ae&amp;&amp;ag&amp;&amp;Y){w(ah,false);K(function(){ae+=&quot;&quot;;ag+=&quot;&quot;;var aj={};if(af&amp;&amp;typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&amp;&amp;typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&amp;&amp;typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+=&quot;&amp;&quot;+ai+&quot;=&quot;+Z[ai]}else{am.flashvars=ai+&quot;=&quot;+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&amp;&amp;A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&amp;&amp;A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split(&quot;?&quot;)[1]}if(aa==null){return L(Z)}var Y=Z.split(&quot;&amp;&quot;);for(var X=0;X&lt;Y.length;X++){if(Y[X].substring(0,Y[X].indexOf(&quot;=&quot;))==aa){return L(Y[X].substring((Y[X].indexOf(&quot;=&quot;)+1)))}}}return&quot;&quot;},expressInstallCallback:function(){if(a){var X=c(R);if(X&amp;&amp;l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&amp;&amp;M.win){l.style.display=&quot;block&quot;}}if(E){E(B)}}a=false}}}}();
</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 (12521 => 12522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2009-12-23 16:31:57 UTC (rev 12521)
+++ trunk/wp-includes/script-loader.php        2009-12-23 16:44:46 UTC (rev 12522)
</span><span class="lines">@@ -179,7 +179,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'jcrop', &quot;/wp-includes/js/jcrop/jquery.Jcrop$suffix.js&quot;, array('jquery'), '0.9.8');
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'swfobject', &quot;/wp-includes/js/swfobject.js&quot;, false, '2.1');
</del><ins>+        $scripts-&gt;add( 'swfobject', &quot;/wp-includes/js/swfobject.js&quot;, false, '2.2');
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2201');
</span><span class="cx">         $scripts-&gt;add( 'swfupload-swfobject', '/wp-includes/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload', 'swfobject'), '2201');
</span></span></pre>
</div>
</div>

</body>
</html>