<!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>[22572] trunk: Compress scripts/styles: 3.5-beta3-22572.</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://core.trac.wordpress.org/changeset/22572">22572</a></dd>
<dt>Author</dt> <dd>bumpbot</dd>
<dt>Date</dt> <dd>2012-11-14 15:00:31 +0000 (Wed, 14 Nov 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Compress scripts/styles: 3.5-beta3-22572. TinyMCE updated.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjscustomizecontrolsminjs">trunk/wp-admin/js/customize-controls.min.js</a></li>
<li><a href="#trunkwpadminjsmediauploadminjs">trunk/wp-admin/js/media-upload.min.js</a></li>
<li><a href="#trunkwpincludescssmediaviewsmincss">trunk/wp-includes/css/media-views.min.css</a></li>
<li><a href="#trunkwpincludesjsmceviewminjs">trunk/wp-includes/js/mce-view.min.js</a></li>
<li><a href="#trunkwpincludesjsshortcodeminjs">trunk/wp-includes/js/shortcode.min.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpgalleryeditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js</a></li>
<li><a href="#trunkwpincludesjstinymcewptinymcejsgz">trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjscustomizecontrolsminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/customize-controls.min.js (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/customize-controls.min.js        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-admin/js/customize-controls.min.js        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a,c){var b=wp.customize;b.Setting=b.Value.extend({initialize:function(g,f,d){var e;b.Value.prototype.initialize.call(this,f,d);this.id=g;this.transport=this.transport||&quot;refresh&quot;;this.bind(this.preview)},preview:function(){switch(this.transport){case&quot;refresh&quot;:return this.previewer.refresh();case&quot;postMessage&quot;:return this.previewer.send(&quot;setting&quot;,[this.id,this()])}}});b.Control=b.Class.extend({initialize:function(i,e){var g=this,d,h,f;this.params={};c.extend(this,e||{});this.id=i;this.selector=&quot;#customize-control-&quot;+i.replace(&quot;]&quot;,&quot;&quot;).replace(&quot;[&quot;,&quot;-&quot;);this.container=c(this.selector);f=c.map(this.params.settings,function(j){return j});b.apply(b,f.concat(function(){var j;g.settings={};for(j in g.params.settings){g.settings[j]=b(g.params.settings[j])}g.setting=g.settings[&quot;default&quot;]||null;g.ready()}));g.elements=[];d=this.container.find(&quot;[data-customize-setti
 ng-link]&quot;);h={};d.each(function(){var k=c(this),j;if(k.is(&quot;:radio&quot;)){j=k.prop(&quot;name&quot;);if(h[j]){return}h[j]=true;k=d.filter('[name=&quot;'+j+'&quot;]')}b(k.data(&quot;customizeSettingLink&quot;),function(m){var l=new b.Element(k);g.elements.push(l);l.sync(m);l.set(m())})})},ready:function(){},dropdownInit:function(){var f=this,e=this.container.find(&quot;.dropdown-status&quot;),g=this.params,h=function(i){if(typeof i===&quot;string&quot;&amp;&amp;g.statuses&amp;&amp;g.statuses[i]){e.html(g.statuses[i]).show()}else{e.hide()}};var d=false;this.container.on(&quot;click focus&quot;,&quot;.dropdown&quot;,function(i){i.preventDefault();if(!d){f.container.toggleClass(&quot;open&quot;)}if(f.container.hasClass(&quot;open&quot;)){f.container.parent().parent().find(&quot;li.library-selected&quot;).focus()}d=true;setTimeout(function(){d=false},400)});this.setting.bind(h);h(this.setting())}});b.ColorControl=b.Control.extend({ready:function(){var e=this,d=this.cont
 ainer.find(&quot;.color-picker-hex&quot;);d.val(e.setting()).wpColorPicker({change:function(g,f){e.setting.set(d.wpColorPicker(&quot;color&quot;))},clear:function(){e.setting.set(false)}})}});b.UploadControl=b.Control.extend({ready:function(){var d=this;this.params.removed=this.params.removed||&quot;&quot;;this.success=c.proxy(this.success,this);this.uploader=c.extend({container:this.container,browser:this.container.find(&quot;.upload&quot;),dropzone:this.container.find(&quot;.upload-dropzone&quot;),success:this.success,plupload:{},params:{}},this.uploader||{});if(d.params.extensions){d.uploader.plupload.filters=[{title:b.l10n.allowedFiles,extensions:d.params.extensions}]}if(d.params.context){d.uploader.params[&quot;post_data[context]&quot;]=this.params.context}if(b.settings.theme.stylesheet){d.uploader.params[&quot;post_data[theme]&quot;]=b.settings.theme.stylesheet}this.uploader=new wp.Uploader(this.uploader);this.remover=this.container.find(&quot;.remove&quot;);this.remov
 er.click(function(e){d.setting.set(d.params.removed);e.preventDefault()});this.removerVisibility=c.proxy(this.removerVisibility,this);this.setting.bind(this.removerVisibility);this.removerVisibility(this.setting.get())},success:function(d){this.setting.set(d.get(&quot;url&quot;))},removerVisibility:function(d){this.remover.toggle(d!=this.params.removed)}});b.ImageControl=b.UploadControl.extend({ready:function(){var e=this,d;this.uploader={init:function(f){var h,g;if(this.supports.dragdrop){return}h=e.container.find(&quot;.upload-fallback&quot;);g=h.children().detach();this.browser.detach().empty().append(g);h.append(this.browser).show()}};b.UploadControl.prototype.ready.call(this);this.thumbnail=this.container.find(&quot;.preview-thumbnail img&quot;);this.thumbnailSrc=c.proxy(this.thumbnailSrc,this);this.setting.bind(this.thumbnailSrc);this.library=this.container.find(&quot;.library&quot;);this.tabs={};d=this.library.find(&quot;.library-content&quot;);this.library.children(&
 quot;ul&quot;).children(&quot;li&quot;).each(function(){var g=c(this),h=g.data(&quot;customizeTab&quot;),f=d.filter('[data-customize-tab=&quot;'+h+'&quot;]');e.tabs[h]={both:g.add(f),link:g,panel:f}});this.library.children(&quot;ul&quot;).on(&quot;click keydown&quot;,&quot;li&quot;,function(g){if(g.type===&quot;keydown&quot;&amp;&amp;13!==g.which){return}var h=c(this).data(&quot;customizeTab&quot;),f=e.tabs[h];g.preventDefault();if(f.link.hasClass(&quot;library-selected&quot;)){return}e.selected.both.removeClass(&quot;library-selected&quot;);e.selected=f;e.selected.both.addClass(&quot;library-selected&quot;)});this.library.on(&quot;click keydown&quot;,&quot;a&quot;,function(f){if(f.type===&quot;keydown&quot;&amp;&amp;13!==f.which){return}var g=c(this).data(&quot;customizeImageValue&quot;);if(g){e.setting.set(g);f.preventDefault()}});if(this.tabs.uploaded){this.tabs.uploaded.target=this.library.find(&quot;.uploaded-target&quot;);if(!this.tabs.uploaded.panel.find(&quot;.thumbn
 ail&quot;).length){this.tabs.uploaded.both.addClass(&quot;hidden&quot;)}}d.each(function(){var f=e.tabs[c(this).data(&quot;customizeTab&quot;)];if(!f.link.hasClass(&quot;hidden&quot;)){e.selected=f;f.both.addClass(&quot;library-selected&quot;);return false}});this.dropdownInit()},success:function(d){b.UploadControl.prototype.success.call(this,d);if(this.tabs.uploaded&amp;&amp;this.tabs.uploaded.target.length){this.tabs.uploaded.both.removeClass(&quot;hidden&quot;);d.element=c('&lt;a href=&quot;#&quot; class=&quot;thumbnail&quot;&gt;&lt;/a&gt;').data(&quot;customizeImageValue&quot;,d.get(&quot;url&quot;)).append('&lt;img src=&quot;'+d.get(&quot;url&quot;)+'&quot; /&gt;').appendTo(this.tabs.uploaded.target)}},thumbnailSrc:function(d){if(/^(https?:)?\/\//.test(d)){this.thumbnail.prop(&quot;src&quot;,d).show()}else{this.thumbnail.hide()}}});b.defaultConstructor=b.Setting;b.control=new b.Values({defaultConstructor:b.Control});b.PreviewFrame=b.Messenger.extend({sensitivity:2000,in
 itialize:function(g,f){var e=c.Deferred(),d=this;e.promise(this);this.container=g.container;this.signature=g.signature;c.extend(g,{channel:b.PreviewFrame.uuid()});b.Messenger.prototype.initialize.call(this,g,f);this.add(&quot;previewUrl&quot;,g.previewUrl);this.query=c.extend(g.query||{},{customize_messenger_channel:this.channel()});this.run(e)},run:function(e){var d=this,f=false,g=false;if(this._ready){this.unbind(&quot;ready&quot;,this._ready)}this._ready=function(){g=true;if(f){e.resolveWith(d)}};this.bind(&quot;ready&quot;,this._ready);this.request=c.ajax(this.previewUrl(),{type:&quot;POST&quot;,data:this.query,xhrFields:{withCredentials:true}});this.request.fail(function(){e.rejectWith(d,[&quot;request failure&quot;])});this.request.done(function(j){var i=d.request.getResponseHeader(&quot;Location&quot;),h=d.signature,k;if(i&amp;&amp;i!=d.previewUrl()){e.rejectWith(d,[&quot;redirect&quot;,i]);return}if(&quot;0&quot;===j){d.login(e);return}if(&quot;-1&quot;===j){e.reject
 With(d,[&quot;cheatin&quot;]);return}k=j.lastIndexOf(h);if(-1===k||k&lt;j.lastIndexOf(&quot;&lt;/html&gt;&quot;)){e.rejectWith(d,[&quot;unsigned&quot;]);return}j=j.slice(0,k)+j.slice(k+h.length);d.iframe=c(&quot;&lt;iframe /&gt;&quot;).appendTo(d.container);d.iframe.one(&quot;load&quot;,function(){f=true;if(g){e.resolveWith(d)}else{setTimeout(function(){e.rejectWith(d,[&quot;ready timeout&quot;])},d.sensitivity)}});d.targetWindow(d.iframe[0].contentWindow);d.targetWindow().document.open();d.targetWindow().document.write(j);d.targetWindow().document.close()})},login:function(e){var d=this,f;f=function(){e.rejectWith(d,[&quot;logged out&quot;])};if(this.triedLogin){return f()}c.get(b.settings.url.ajax,{action:&quot;logged-in&quot;}).fail(f).done(function(g){var h;if(&quot;1&quot;!==g){f()}h=c('&lt;iframe src=&quot;'+d.previewUrl()+'&quot; /&gt;').hide();h.appendTo(d.container);h.load(function(){d.triedLogin=true;h.remove();d.run(e)})})},destroy:function(){b.Messenger.prototype
 .destroy.call(this);this.request.abort();if(this.iframe){this.iframe.remove()}delete this.request;delete this.iframe;delete this.targetWindow}});(function(){var d=0;b.PreviewFrame.uuid=function(){return&quot;preview-&quot;+d++}}());b.Previewer=b.Messenger.extend({refreshBuffer:250,initialize:function(h,f){var d=this,g=/^https?/,e;c.extend(this,f||{});this.refresh=(function(i){var j=i.refresh,l=function(){k=null;j.call(i)},k;return function(){if(typeof k!==&quot;number&quot;){if(i.loading){i.abort()}else{return l()}}clearTimeout(k);k=setTimeout(l,i.refreshBuffer)}})(this);this.container=b.ensure(h.container);this.allowedUrls=h.allowedUrls;this.signature=h.signature;h.url=window.location.href;b.Messenger.prototype.initialize.call(this,h);this.add(&quot;scheme&quot;,this.origin()).link(this.origin).setter(function(j){var i=j.match(g);return i?i[0]:&quot;&quot;});this.add(&quot;previewUrl&quot;,h.previewUrl).setter(function(j){var i;if(/\/wp-admin(\/|$)/.test(j.replace(/[#?].*$/
 ,&quot;&quot;))){return null}c.each([j.replace(g,d.scheme()),j],function(l,k){c.each(d.allowedUrls,function(m,n){if(0===k.indexOf(n)){i=k;return false}});if(i){return false}});return i?i:null});this.previewUrl.bind(this.refresh);this.scroll=0;this.bind(&quot;scroll&quot;,function(i){this.scroll=i});this.bind(&quot;url&quot;,this.previewUrl)},query:function(){},abort:function(){if(this.loading){this.loading.destroy();delete this.loading}},refresh:function(){var d=this;this.abort();this.loading=new b.PreviewFrame({url:this.url(),previewUrl:this.previewUrl(),query:this.query()||{},container:this.container,signature:this.signature});this.loading.done(function(){this.bind(&quot;synced&quot;,function(){if(d.preview){d.preview.destroy()}d.preview=this;delete d.loading;d.targetWindow(this.targetWindow());d.channel(this.channel());d.send(&quot;active&quot;)});this.send(&quot;sync&quot;,{scroll:d.scroll,settings:b.get()})});this.loading.fail(function(f,e){if(&quot;redirect&quot;===f&a
 mp;&amp;e){d.previewUrl(e)}if(&quot;logged out&quot;===f){if(d.preview){d.preview.destroy();delete d.preview}d.login().done(d.refresh)}if(&quot;cheatin&quot;===f){d.cheatin()}})},login:function(){var g=this,d,f,e;if(this._login){return this._login}d=c.Deferred();this._login=d.promise();f=new b.Messenger({channel:&quot;login&quot;,url:b.settings.url.login});e=c('&lt;iframe src=&quot;'+b.settings.url.login+'&quot; /&gt;').appendTo(this.container);f.targetWindow(e[0].contentWindow);f.bind(&quot;login&quot;,function(){e.remove();f.destroy();delete g._login;d.resolve()});return this._login},cheatin:function(){c(document.body).empty().addClass(&quot;cheatin&quot;).append(&quot;&lt;p&gt;&quot;+b.l10n.cheatin+&quot;&lt;/p&gt;&quot;)}});b.controlConstructor={color:b.ColorControl,upload:b.UploadControl,image:b.ImageControl};c(function(){b.settings=window._wpCustomizeSettings;b.l10n=window._wpCustomizeControlsL10n;if(!b.settings){return}if(!c.support.postMessage||(!c.support.cors&amp;&
 amp;b.settings.isCrossDomain)){return window.location=b.settings.url.fallback}var d=c(document.body),f=d.children(&quot;.wp-full-overlay&quot;),i,j,g;c(&quot;#customize-controls&quot;).on(&quot;keydown&quot;,function(k){if(c(k.target).is(&quot;textarea&quot;)){return}if(13===k.which){k.preventDefault()}});j=new b.Previewer({container:&quot;#customize-preview&quot;,form:&quot;#customize-controls&quot;,previewUrl:b.settings.url.preview,allowedUrls:b.settings.url.allowed,signature:&quot;WP_CUSTOMIZER_SIGNATURE&quot;},{nonce:b.settings.nonce,query:function(){return{wp_customize:&quot;on&quot;,theme:b.settings.theme.stylesheet,customized:JSON.stringify(b.get()),nonce:this.nonce.preview}},save:function(){var k=this,m=c.extend(this.query(),{action:&quot;customize_save&quot;,nonce:this.nonce.save}),l=c.post(b.settings.url.ajax,m);b.trigger(&quot;save&quot;,l);d.addClass(&quot;saving&quot;);l.always(function(){d.removeClass(&quot;saving&quot;)});l.done(function(n){if(&quot;0&quot;===
 n){k.preview.iframe.hide();k.login().done(function(){k.save();k.preview.iframe.show()});return}if(&quot;-1&quot;===n){k.cheatin();return}b.trigger(&quot;saved&quot;)})}});j.bind(&quot;nonce&quot;,function(k){c.extend(this.nonce,k)});c.each(b.settings.settings,function(l,k){b.create(l,l,k.value,{transport:k.transport,previewer:j})});c.each(b.settings.controls,function(n,l){var k=b.controlConstructor[l.type]||b.Control,m;m=b.control.add(n,new k(n,{params:l,previewer:j}))});if(j.previewUrl()){j.refresh()}else{j.previewUrl(b.settings.url.home)}(function(){var m=new b.Values(),l=m.create(&quot;saved&quot;),k=m.create(&quot;activated&quot;);m.bind(&quot;change&quot;,function(){var o=c(&quot;#save&quot;),n=c(&quot;.back&quot;);if(!k()){o.val(b.l10n.activate).prop(&quot;disabled&quot;,false);n.text(b.l10n.cancel)}else{if(l()){o.val(b.l10n.saved).prop(&quot;disabled&quot;,true);n.text(b.l10n.close)}else{o.val(b.l10n.save).prop(&quot;disabled&quot;,false);n.text(b.l10n.cancel)}}});l(t
 rue);k(b.settings.theme.active);b.bind(&quot;change&quot;,function(){m(&quot;saved&quot;).set(false)});b.bind(&quot;saved&quot;,function(){m(&quot;saved&quot;).set(true);m(&quot;activated&quot;).set(true)});k.bind(function(n){if(n){b.trigger(&quot;activated&quot;)}});b.state=m}());var h=false;c(&quot;.customize-section-title&quot;).bind(&quot;click keydown&quot;,function(l){if(l.type===&quot;keydown&quot;&amp;&amp;13!==l.which){return}var k=c(this).parents(&quot;.customize-section&quot;);if(k.hasClass(&quot;cannot-expand&quot;)||h){return}h=true;setTimeout(function(){h=false},400);if(&quot;customize-section-title_tagline&quot;===k.attr(&quot;id&quot;)){c(&quot;.wp-full-overlay-sidebar-content&quot;).scrollTop(0)}c(&quot;.customize-section&quot;).not(k).removeClass(&quot;open&quot;);k.toggleClass(&quot;open&quot;);l.preventDefault()});c(&quot;#save&quot;).click(function(k){j.save();k.preventDefault()}).keydown(function(k){if(9===k.which){return}if(13===k.which){j.save()}k.pre
 ventDefault()});c(&quot;.back&quot;).keydown(function(l){if(9===l.which){return}var k=c(this).attr(&quot;href&quot;);if(13===l.which){window.location=k}l.preventDefault()});c(&quot;.collapse-sidebar&quot;).click(function(k){f.toggleClass(&quot;collapsed&quot;).toggleClass(&quot;expanded&quot;);k.preventDefault()});g=new b.Messenger({url:b.settings.url.parent,channel:&quot;loader&quot;});g.bind(&quot;back&quot;,function(){c(&quot;.back&quot;).on(&quot;click.back&quot;,function(k){k.preventDefault();g.send(&quot;close&quot;)})});b.bind(&quot;saved&quot;,function(){g.send(&quot;saved&quot;)});b.bind(&quot;activated&quot;,function(){if(g.targetWindow()){g.send(&quot;activated&quot;,b.settings.url.activated)}else{if(b.settings.url.activated){window.location=b.settings.url.activated}}});g.send(&quot;ready&quot;);c.each({background_image:{controls:[&quot;background_repeat&quot;,&quot;background_position_x&quot;,&quot;background_attachment&quot;],callback:function(k){return !!k}},sh
 ow_on_front:{controls:[&quot;page_on_front&quot;,&quot;page_for_posts&quot;],callback:function(k){return&quot;page&quot;===k}},header_textcolor:{controls:[&quot;header_textcolor&quot;],callback:function(k){return&quot;blank&quot;!==k}}},function(k,l){b(k,function(m){c.each(l.controls,function(n,o){b.control(o,function(q){var p=function(r){q.container.toggle(l.callback(r))};p(m.get());m.bind(p)})})})});b.control(&quot;display_header_text&quot;,function(l){var k=&quot;&quot;;l.elements[0].unsync(b(&quot;header_textcolor&quot;));l.element=new b.Element(l.container.find(&quot;input&quot;));l.element.set(&quot;blank&quot;!==l.setting());l.element.bind(function(m){if(!m){k=b(&quot;header_textcolor&quot;).get()}l.setting.set(m?k:&quot;blank&quot;)});l.setting.bind(function(m){l.element.set(&quot;blank&quot;!==m)})});b.control(&quot;header_image&quot;,function(k){k.setting.bind(function(l){if(l===k.params.removed){k.settings.data.set(false)}});k.library.on(&quot;click&quot;,&quot;a&
 quot;,function(l){k.settings.data.set(c(this).data(&quot;customizeHeaderImageData&quot;))});k.uploader.success=function(m){var l;b.ImageControl.prototype.success.call(k,m);l={attachment_id:m.get(&quot;id&quot;),url:m.get(&quot;url&quot;),thumbnail_url:m.get(&quot;url&quot;),height:m.get(&quot;height&quot;),width:m.get(&quot;width&quot;)};m.element.data(&quot;customizeHeaderImageData&quot;,l);k.settings.data.set(l)}});b.trigger(&quot;ready&quot;);var e=c(&quot;.back&quot;);e.focus();setTimeout(function(){e.focus()},200)})})(wp,jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a,c){var b=wp.customize;b.Setting=b.Value.extend({initialize:function(g,f,d){var e;b.Value.prototype.initialize.call(this,f,d);this.id=g;this.transport=this.transport||&quot;refresh&quot;;this.bind(this.preview)},preview:function(){switch(this.transport){case&quot;refresh&quot;:return this.previewer.refresh();case&quot;postMessage&quot;:return this.previewer.send(&quot;setting&quot;,[this.id,this()])}}});b.Control=b.Class.extend({initialize:function(i,e){var g=this,d,h,f;this.params={};c.extend(this,e||{});this.id=i;this.selector=&quot;#customize-control-&quot;+i.replace(&quot;]&quot;,&quot;&quot;).replace(&quot;[&quot;,&quot;-&quot;);this.container=c(this.selector);f=c.map(this.params.settings,function(j){return j});b.apply(b,f.concat(function(){var j;g.settings={};for(j in g.params.settings){g.settings[j]=b(g.params.settings[j])}g.setting=g.settings[&quot;default&quot;]||null;g.ready()}));g.elements=[];d=this.container.find(&quot;[data-customize-setti
 ng-link]&quot;);h={};d.each(function(){var k=c(this),j;if(k.is(&quot;:radio&quot;)){j=k.prop(&quot;name&quot;);if(h[j]){return}h[j]=true;k=d.filter('[name=&quot;'+j+'&quot;]')}b(k.data(&quot;customizeSettingLink&quot;),function(m){var l=new b.Element(k);g.elements.push(l);l.sync(m);l.set(m())})})},ready:function(){},dropdownInit:function(){var f=this,e=this.container.find(&quot;.dropdown-status&quot;),g=this.params,h=function(i){if(typeof i===&quot;string&quot;&amp;&amp;g.statuses&amp;&amp;g.statuses[i]){e.html(g.statuses[i]).show()}else{e.hide()}};var d=false;this.container.on(&quot;click focus&quot;,&quot;.dropdown&quot;,function(i){i.preventDefault();if(!d){f.container.toggleClass(&quot;open&quot;)}if(f.container.hasClass(&quot;open&quot;)){f.container.parent().parent().find(&quot;li.library-selected&quot;).focus()}d=true;setTimeout(function(){d=false},400)});this.setting.bind(h);h(this.setting())}});b.ColorControl=b.Control.extend({ready:function(){var e=this,d=this.cont
 ainer.find(&quot;.color-picker-hex&quot;);d.val(e.setting()).wpColorPicker({change:function(g,f){e.setting.set(d.wpColorPicker(&quot;color&quot;))},clear:function(){e.setting.set(false)}})}});b.UploadControl=b.Control.extend({ready:function(){var d=this;this.params.removed=this.params.removed||&quot;&quot;;this.success=c.proxy(this.success,this);this.uploader=c.extend({container:this.container,browser:this.container.find(&quot;.upload&quot;),dropzone:this.container.find(&quot;.upload-dropzone&quot;),success:this.success,plupload:{},params:{}},this.uploader||{});if(d.params.extensions){d.uploader.plupload.filters=[{title:b.l10n.allowedFiles,extensions:d.params.extensions}]}if(d.params.context){d.uploader.params[&quot;post_data[context]&quot;]=this.params.context}if(b.settings.theme.stylesheet){d.uploader.params[&quot;post_data[theme]&quot;]=b.settings.theme.stylesheet}this.uploader=new wp.Uploader(this.uploader);this.remover=this.container.find(&quot;.remove&quot;);this.remov
 er.click(function(e){d.setting.set(d.params.removed);e.preventDefault()});this.removerVisibility=c.proxy(this.removerVisibility,this);this.setting.bind(this.removerVisibility);this.removerVisibility(this.setting.get())},success:function(d){this.setting.set(d.get(&quot;url&quot;))},removerVisibility:function(d){this.remover.toggle(d!=this.params.removed)}});b.ImageControl=b.UploadControl.extend({ready:function(){var e=this,d;this.uploader={init:function(f){var h,g;if(this.supports.dragdrop){return}h=e.container.find(&quot;.upload-fallback&quot;);g=h.children().detach();this.browser.detach().empty().append(g);h.append(this.browser).show()}};b.UploadControl.prototype.ready.call(this);this.thumbnail=this.container.find(&quot;.preview-thumbnail img&quot;);this.thumbnailSrc=c.proxy(this.thumbnailSrc,this);this.setting.bind(this.thumbnailSrc);this.library=this.container.find(&quot;.library&quot;);this.tabs={};d=this.library.find(&quot;.library-content&quot;);this.library.children(&
 quot;ul&quot;).children(&quot;li&quot;).each(function(){var g=c(this),h=g.data(&quot;customizeTab&quot;),f=d.filter('[data-customize-tab=&quot;'+h+'&quot;]');e.tabs[h]={both:g.add(f),link:g,panel:f}});this.library.children(&quot;ul&quot;).on(&quot;click keydown&quot;,&quot;li&quot;,function(g){if(g.type===&quot;keydown&quot;&amp;&amp;13!==g.which){return}var h=c(this).data(&quot;customizeTab&quot;),f=e.tabs[h];g.preventDefault();if(f.link.hasClass(&quot;library-selected&quot;)){return}e.selected.both.removeClass(&quot;library-selected&quot;);e.selected=f;e.selected.both.addClass(&quot;library-selected&quot;)});this.library.on(&quot;click keydown&quot;,&quot;a&quot;,function(f){if(f.type===&quot;keydown&quot;&amp;&amp;13!==f.which){return}var g=c(this).data(&quot;customizeImageValue&quot;);if(g){e.setting.set(g);f.preventDefault()}});if(this.tabs.uploaded){this.tabs.uploaded.target=this.library.find(&quot;.uploaded-target&quot;);if(!this.tabs.uploaded.panel.find(&quot;.thumbn
 ail&quot;).length){this.tabs.uploaded.both.addClass(&quot;hidden&quot;)}}d.each(function(){var f=e.tabs[c(this).data(&quot;customizeTab&quot;)];if(!f.link.hasClass(&quot;hidden&quot;)){e.selected=f;f.both.addClass(&quot;library-selected&quot;);return false}});this.dropdownInit()},success:function(d){b.UploadControl.prototype.success.call(this,d);if(this.tabs.uploaded&amp;&amp;this.tabs.uploaded.target.length){this.tabs.uploaded.both.removeClass(&quot;hidden&quot;);d.element=c('&lt;a href=&quot;#&quot; class=&quot;thumbnail&quot;&gt;&lt;/a&gt;').data(&quot;customizeImageValue&quot;,d.get(&quot;url&quot;)).append('&lt;img src=&quot;'+d.get(&quot;url&quot;)+'&quot; /&gt;').appendTo(this.tabs.uploaded.target)}},thumbnailSrc:function(d){if(/^(https?:)?\/\//.test(d)){this.thumbnail.prop(&quot;src&quot;,d).show()}else{this.thumbnail.hide()}}});b.defaultConstructor=b.Setting;b.control=new b.Values({defaultConstructor:b.Control});b.PreviewFrame=b.Messenger.extend({sensitivity:2000,in
 itialize:function(g,f){var e=c.Deferred(),d=this;e.promise(this);this.container=g.container;this.signature=g.signature;c.extend(g,{channel:b.PreviewFrame.uuid()});b.Messenger.prototype.initialize.call(this,g,f);this.add(&quot;previewUrl&quot;,g.previewUrl);this.query=c.extend(g.query||{},{customize_messenger_channel:this.channel()});this.run(e)},run:function(e){var d=this,f=false,g=false;if(this._ready){this.unbind(&quot;ready&quot;,this._ready)}this._ready=function(){g=true;if(f){e.resolveWith(d)}};this.bind(&quot;ready&quot;,this._ready);this.request=c.ajax(this.previewUrl(),{type:&quot;POST&quot;,data:this.query,xhrFields:{withCredentials:true}});this.request.fail(function(){e.rejectWith(d,[&quot;request failure&quot;])});this.request.done(function(j){var i=d.request.getResponseHeader(&quot;Location&quot;),h=d.signature,k;if(i&amp;&amp;i!=d.previewUrl()){e.rejectWith(d,[&quot;redirect&quot;,i]);return}if(&quot;0&quot;===j){d.login(e);return}if(&quot;-1&quot;===j){e.reject
 With(d,[&quot;cheatin&quot;]);return}k=j.lastIndexOf(h);if(-1===k||k&lt;j.lastIndexOf(&quot;&lt;/html&gt;&quot;)){e.rejectWith(d,[&quot;unsigned&quot;]);return}j=j.slice(0,k)+j.slice(k+h.length);d.iframe=c(&quot;&lt;iframe /&gt;&quot;).appendTo(d.container);d.iframe.one(&quot;load&quot;,function(){f=true;if(g){e.resolveWith(d)}else{setTimeout(function(){e.rejectWith(d,[&quot;ready timeout&quot;])},d.sensitivity)}});d.targetWindow(d.iframe[0].contentWindow);d.targetWindow().document.open();d.targetWindow().document.write(j);d.targetWindow().document.close()})},login:function(e){var d=this,f;f=function(){e.rejectWith(d,[&quot;logged out&quot;])};if(this.triedLogin){return f()}c.get(b.settings.url.ajax,{action:&quot;logged-in&quot;}).fail(f).done(function(g){var h;if(&quot;1&quot;!==g){f()}h=c('&lt;iframe src=&quot;'+d.previewUrl()+'&quot; /&gt;').hide();h.appendTo(d.container);h.load(function(){d.triedLogin=true;h.remove();d.run(e)})})},destroy:function(){b.Messenger.prototype
 .destroy.call(this);this.request.abort();if(this.iframe){this.iframe.remove()}delete this.request;delete this.iframe;delete this.targetWindow}});(function(){var d=0;b.PreviewFrame.uuid=function(){return&quot;preview-&quot;+d++}}());b.Previewer=b.Messenger.extend({refreshBuffer:250,initialize:function(h,f){var d=this,g=/^https?/,e;c.extend(this,f||{});this.refresh=(function(i){var j=i.refresh,l=function(){k=null;j.call(i)},k;return function(){if(typeof k!==&quot;number&quot;){if(i.loading){i.abort()}else{return l()}}clearTimeout(k);k=setTimeout(l,i.refreshBuffer)}})(this);this.container=b.ensure(h.container);this.allowedUrls=h.allowedUrls;this.signature=h.signature;h.url=window.location.href;b.Messenger.prototype.initialize.call(this,h);this.add(&quot;scheme&quot;,this.origin()).link(this.origin).setter(function(j){var i=j.match(g);return i?i[0]:&quot;&quot;});this.add(&quot;previewUrl&quot;,h.previewUrl).setter(function(j){var i;if(/\/wp-admin(\/|$)/.test(j.replace(/[#?].*$/
 ,&quot;&quot;))){return null}c.each([j.replace(g,d.scheme()),j],function(l,k){c.each(d.allowedUrls,function(m,n){if(0===k.indexOf(n)){i=k;return false}});if(i){return false}});return i?i:null});this.previewUrl.bind(this.refresh);this.scroll=0;this.bind(&quot;scroll&quot;,function(i){this.scroll=i});this.bind(&quot;url&quot;,this.previewUrl)},query:function(){},abort:function(){if(this.loading){this.loading.destroy();delete this.loading}},refresh:function(){var d=this;this.abort();this.loading=new b.PreviewFrame({url:this.url(),previewUrl:this.previewUrl(),query:this.query()||{},container:this.container,signature:this.signature});this.loading.done(function(){this.bind(&quot;synced&quot;,function(){if(d.preview){d.preview.destroy()}d.preview=this;delete d.loading;d.targetWindow(this.targetWindow());d.channel(this.channel());d.send(&quot;active&quot;)});this.send(&quot;sync&quot;,{scroll:d.scroll,settings:b.get()})});this.loading.fail(function(f,e){if(&quot;redirect&quot;===f&a
 mp;&amp;e){d.previewUrl(e)}if(&quot;logged out&quot;===f){if(d.preview){d.preview.destroy();delete d.preview}d.login().done(d.refresh)}if(&quot;cheatin&quot;===f){d.cheatin()}})},login:function(){var g=this,d,f,e;if(this._login){return this._login}d=c.Deferred();this._login=d.promise();f=new b.Messenger({channel:&quot;login&quot;,url:b.settings.url.login});e=c('&lt;iframe src=&quot;'+b.settings.url.login+'&quot; /&gt;').appendTo(this.container);f.targetWindow(e[0].contentWindow);f.bind(&quot;login&quot;,function(){e.remove();f.destroy();delete g._login;d.resolve()});return this._login},cheatin:function(){c(document.body).empty().addClass(&quot;cheatin&quot;).append(&quot;&lt;p&gt;&quot;+b.l10n.cheatin+&quot;&lt;/p&gt;&quot;)}});b.controlConstructor={color:b.ColorControl,upload:b.UploadControl,image:b.ImageControl};c(function(){b.settings=window._wpCustomizeSettings;b.l10n=window._wpCustomizeControlsL10n;if(!b.settings){return}if(!c.support.postMessage||(!c.support.cors&amp;&
 amp;b.settings.isCrossDomain)){return window.location=b.settings.url.fallback}var d=c(document.body),f=d.children(&quot;.wp-full-overlay&quot;),h,i,g;c(&quot;#customize-controls&quot;).on(&quot;keydown&quot;,function(j){if(c(j.target).is(&quot;textarea&quot;)){return}if(13===j.which){j.preventDefault()}});i=new b.Previewer({container:&quot;#customize-preview&quot;,form:&quot;#customize-controls&quot;,previewUrl:b.settings.url.preview,allowedUrls:b.settings.url.allowed,signature:&quot;WP_CUSTOMIZER_SIGNATURE&quot;},{nonce:b.settings.nonce,query:function(){return{wp_customize:&quot;on&quot;,theme:b.settings.theme.stylesheet,customized:JSON.stringify(b.get()),nonce:this.nonce.preview}},save:function(){var j=this,l=c.extend(this.query(),{action:&quot;customize_save&quot;,nonce:this.nonce.save}),k=c.post(b.settings.url.ajax,l);b.trigger(&quot;save&quot;,k);d.addClass(&quot;saving&quot;);k.always(function(){d.removeClass(&quot;saving&quot;)});k.done(function(m){if(&quot;0&quot;===
 m){j.preview.iframe.hide();j.login().done(function(){j.save();j.preview.iframe.show()});return}if(&quot;-1&quot;===m){j.cheatin();return}b.trigger(&quot;saved&quot;)})}});i.bind(&quot;nonce&quot;,function(j){c.extend(this.nonce,j)});c.each(b.settings.settings,function(k,j){b.create(k,k,j.value,{transport:j.transport,previewer:i})});c.each(b.settings.controls,function(m,k){var j=b.controlConstructor[k.type]||b.Control,l;l=b.control.add(m,new j(m,{params:k,previewer:i}))});if(i.previewUrl()){i.refresh()}else{i.previewUrl(b.settings.url.home)}(function(){var l=new b.Values(),k=l.create(&quot;saved&quot;),j=l.create(&quot;activated&quot;);l.bind(&quot;change&quot;,function(){var n=c(&quot;#save&quot;),m=c(&quot;.back&quot;);if(!j()){n.val(b.l10n.activate).prop(&quot;disabled&quot;,false);m.text(b.l10n.cancel)}else{if(k()){n.val(b.l10n.saved).prop(&quot;disabled&quot;,true);m.text(b.l10n.close)}else{n.val(b.l10n.save).prop(&quot;disabled&quot;,false);m.text(b.l10n.cancel)}}});k(t
 rue);j(b.settings.theme.active);b.bind(&quot;change&quot;,function(){l(&quot;saved&quot;).set(false)});b.bind(&quot;saved&quot;,function(){l(&quot;saved&quot;).set(true);l(&quot;activated&quot;).set(true)});j.bind(function(m){if(m){b.trigger(&quot;activated&quot;)}});b.state=l}());c(&quot;.customize-section-title&quot;).bind(&quot;click keydown&quot;,function(k){if(k.type===&quot;keydown&quot;&amp;&amp;13!==k.which){return}var j=c(this).parents(&quot;.customize-section&quot;);if(j.hasClass(&quot;cannot-expand&quot;)){return}if(&quot;customize-section-title_tagline&quot;===j.attr(&quot;id&quot;)){c(&quot;.wp-full-overlay-sidebar-content&quot;).scrollTop(0)}c(&quot;.customize-section&quot;).not(j).removeClass(&quot;open&quot;);j.toggleClass(&quot;open&quot;);k.preventDefault()});c(&quot;#save&quot;).click(function(j){i.save();j.preventDefault()}).keydown(function(j){if(9===j.which){return}if(13===j.which){i.save()}j.preventDefault()});c(&quot;.back&quot;).keydown(function(k){i
 f(9===k.which){return}var j=c(this).attr(&quot;href&quot;);if(13===k.which){window.location=j}k.preventDefault()});c(&quot;.collapse-sidebar&quot;).click(function(j){f.toggleClass(&quot;collapsed&quot;).toggleClass(&quot;expanded&quot;);j.preventDefault()});g=new b.Messenger({url:b.settings.url.parent,channel:&quot;loader&quot;});g.bind(&quot;back&quot;,function(){c(&quot;.back&quot;).on(&quot;click.back&quot;,function(j){j.preventDefault();g.send(&quot;close&quot;)})});b.bind(&quot;saved&quot;,function(){g.send(&quot;saved&quot;)});b.bind(&quot;activated&quot;,function(){if(g.targetWindow()){g.send(&quot;activated&quot;,b.settings.url.activated)}else{if(b.settings.url.activated){window.location=b.settings.url.activated}}});g.send(&quot;ready&quot;);c.each({background_image:{controls:[&quot;background_repeat&quot;,&quot;background_position_x&quot;,&quot;background_attachment&quot;],callback:function(j){return !!j}},show_on_front:{controls:[&quot;page_on_front&quot;,&quot;pag
 e_for_posts&quot;],callback:function(j){return&quot;page&quot;===j}},header_textcolor:{controls:[&quot;header_textcolor&quot;],callback:function(j){return&quot;blank&quot;!==j}}},function(j,k){b(j,function(l){c.each(k.controls,function(m,n){b.control(n,function(p){var o=function(q){p.container.toggle(k.callback(q))};o(l.get());l.bind(o)})})})});b.control(&quot;display_header_text&quot;,function(k){var j=&quot;&quot;;k.elements[0].unsync(b(&quot;header_textcolor&quot;));k.element=new b.Element(k.container.find(&quot;input&quot;));k.element.set(&quot;blank&quot;!==k.setting());k.element.bind(function(l){if(!l){j=b(&quot;header_textcolor&quot;).get()}k.setting.set(l?j:&quot;blank&quot;)});k.setting.bind(function(l){k.element.set(&quot;blank&quot;!==l)})});b.control(&quot;header_image&quot;,function(j){j.setting.bind(function(k){if(k===j.params.removed){j.settings.data.set(false)}});j.library.on(&quot;click&quot;,&quot;a&quot;,function(k){j.settings.data.set(c(this).data(&quot;c
 ustomizeHeaderImageData&quot;))});j.uploader.success=function(l){var k;b.ImageControl.prototype.success.call(j,l);k={attachment_id:l.get(&quot;id&quot;),url:l.get(&quot;url&quot;),thumbnail_url:l.get(&quot;url&quot;),height:l.get(&quot;height&quot;),width:l.get(&quot;width&quot;)};l.element.data(&quot;customizeHeaderImageData&quot;,k);j.settings.data.set(k)}});b.trigger(&quot;ready&quot;);var e=c(&quot;.back&quot;);e.focus();setTimeout(function(){e.focus()},200)})})(wp,jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsmediauploadminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/media-upload.min.js (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/media-upload.min.js        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-admin/js/media-upload.min.js        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var wpActiveEditor;function send_to_editor(c){var b,a=typeof(tinymce)!=&quot;undefined&quot;,f=typeof(QTags)!=&quot;undefined&quot;;if(!wpActiveEditor){if(a&amp;&amp;tinymce.activeEditor){b=tinymce.activeEditor;wpActiveEditor=b.id}else{if(!f){return false}}}else{if(a){if(tinymce.activeEditor&amp;&amp;(tinymce.activeEditor.id==&quot;mce_fullscreen&quot;||tinymce.activeEditor.id==&quot;wp_mce_fullscreen&quot;)){b=tinymce.activeEditor}else{b=tinymce.get(wpActiveEditor)}}}if(b&amp;&amp;!b.isHidden()){if(tinymce.isIE&amp;&amp;b.windowManager.insertimagebookmark){b.selection.moveToBookmark(b.windowManager.insertimagebookmark)}if(c.indexOf(&quot;[caption&quot;)===0){if(b.wpSetImgCaption){c=b.wpSetImgCaption(c)}}else{if(c.indexOf(&quot;[gallery&quot;)===0){if(b.plugins.wpgallery){c=b.plugins.wpgallery._do_gallery(c)}}else{if(c.indexOf(&quot;[embed&quot;)===0){if(b.plugins.wordpress){c=b.plugins.wordpress._setEmbed(c)}}}}b.execCommand(&quot;mceInsertContent&quot;,false,c)
 }else{if(f){QTags.insertContent(c)}else{document.getElementById(wpActiveEditor).value+=c}}try{tb_remove()}catch(d){}}var tb_position;(function(a){tb_position=function(){var f=a(&quot;#TB_window&quot;),e=a(window).width(),d=a(window).height(),c=(720&lt;e)?720:e,b=0;if(a(&quot;body.admin-bar&quot;).length){b=28}if(f.size()){f.width(c-50).height(d-45-b);a(&quot;#TB_iframeContent&quot;).width(c-50).height(d-75-b);f.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((c-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){f.css({top:20+b+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return a(&quot;a.thickbox&quot;).each(function(){var g=a(this).attr(&quot;href&quot;);if(!g){return}g=g.replace(/&amp;width=[0-9]+/g,&quot;&quot;);g=g.replace(/&amp;height=[0-9]+/g,&quot;&quot;);a(this).attr(&quot;href&quot;,g+&quot;&amp;width=&quot;+(c-80)+&quot;&amp;height=&quot;+(d-85-b))})};a(window).resize(function(){tb_position()});a(document).read
 y(function(b){b(&quot;a.thickbox&quot;).click(function(){var c;if(typeof(tinymce)!=&quot;undefined&quot;&amp;&amp;tinymce.isIE&amp;&amp;(c=tinymce.get(wpActiveEditor))&amp;&amp;!c.isHidden()){c.focus();c.windowManager.insertimagebookmark=c.selection.getBookmark()}})})})(jQuery);(function(b){var a={};wp.mce.media={insert:send_to_editor,add:function(e,c){var d=this.get(e);if(d){return d}d=a[e]=wp.media(_.defaults(c||{},{frame:&quot;post&quot;,title:wp.media.view.l10n.insertMedia,multiple:true}));d.on(&quot;insert&quot;,function(g){var h=d.state(),f=h.get(&quot;details&quot;);g=g||h.get(&quot;selection&quot;);if(!g||!f){return}this.insert(g.map(function(j){var i=f[j.cid];if(i){i=i.toJSON()}delete f[j.cid];if(&quot;image&quot;===j.get(&quot;type&quot;)){return wp.media.string.image(j,i)+&quot; &quot;}else{return wp.media.string.link(j,i)+&quot; &quot;}}).join(&quot;&quot;))},this);d.get(&quot;gallery-edit&quot;).on(&quot;update&quot;,function(g){var f=wp.mce.view.get(&quot;galle
 ry&quot;),h;if(!f){return}h=f.gallery.shortcode(g);this.insert(h.string())},this);d.get(&quot;embed&quot;).on(&quot;select&quot;,function(){var g=d.state().toJSON(),f;if(&quot;link&quot;===g.type){this.insert(wp.html.string({tag:&quot;a&quot;,content:g.title||g.url,attrs:{href:g.url}}))}else{if(&quot;image&quot;===g.type){_.defaults(g,{align:&quot;none&quot;,url:&quot;&quot;,alt:&quot;&quot;,linkUrl:&quot;&quot;,link:&quot;none&quot;});f={single:true,tag:&quot;img&quot;,attrs:{&quot;class&quot;:&quot;align&quot;+g.align,src:g.url,alt:g.alt}};if(&quot;custom&quot;===g.link||&quot;file&quot;===g.link){f={tag:&quot;a&quot;,content:f,attrs:{href:&quot;custom&quot;===g.link?g.linkUrl:g.url}}}this.insert(wp.html.string(f))}}},this);return d},get:function(c){return a[c]},remove:function(c){delete a[c]},init:function(){b(&quot;#wpbody&quot;).on(&quot;click&quot;,&quot;.insert-media&quot;,function(d){var c=b(this).data(&quot;editor&quot;),e;d.preventDefault();if(!c){return}e=wp.mce.m
 edia.get(c);if(e){e.open();return}wp.mce.media.add(c)})}};b(wp.mce.media.init)}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+var wpActiveEditor;function send_to_editor(c){var b,a=typeof(tinymce)!=&quot;undefined&quot;,f=typeof(QTags)!=&quot;undefined&quot;;if(!wpActiveEditor){if(a&amp;&amp;tinymce.activeEditor){b=tinymce.activeEditor;wpActiveEditor=b.id}else{if(!f){return false}}}else{if(a){if(tinymce.activeEditor&amp;&amp;(tinymce.activeEditor.id==&quot;mce_fullscreen&quot;||tinymce.activeEditor.id==&quot;wp_mce_fullscreen&quot;)){b=tinymce.activeEditor}else{b=tinymce.get(wpActiveEditor)}}}if(b&amp;&amp;!b.isHidden()){if(tinymce.isIE&amp;&amp;b.windowManager.insertimagebookmark){b.selection.moveToBookmark(b.windowManager.insertimagebookmark)}if(c.indexOf(&quot;[caption&quot;)===0){if(b.wpSetImgCaption){c=b.wpSetImgCaption(c)}}else{if(c.indexOf(&quot;[gallery&quot;)===0){if(b.plugins.wpgallery){c=b.plugins.wpgallery._do_gallery(c)}}else{if(c.indexOf(&quot;[embed&quot;)===0){if(b.plugins.wordpress){c=b.plugins.wordpress._setEmbed(c)}}}}b.execCommand(&quot;mceInsertContent&quot;,false,c)
 }else{if(f){QTags.insertContent(c)}else{document.getElementById(wpActiveEditor).value+=c}}try{tb_remove()}catch(d){}}var tb_position;(function(a){tb_position=function(){var f=a(&quot;#TB_window&quot;),e=a(window).width(),d=a(window).height(),c=(720&lt;e)?720:e,b=0;if(a(&quot;body.admin-bar&quot;).length){b=28}if(f.size()){f.width(c-50).height(d-45-b);a(&quot;#TB_iframeContent&quot;).width(c-50).height(d-75-b);f.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((c-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){f.css({top:20+b+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return a(&quot;a.thickbox&quot;).each(function(){var g=a(this).attr(&quot;href&quot;);if(!g){return}g=g.replace(/&amp;width=[0-9]+/g,&quot;&quot;);g=g.replace(/&amp;height=[0-9]+/g,&quot;&quot;);a(this).attr(&quot;href&quot;,g+&quot;&amp;width=&quot;+(c-80)+&quot;&amp;height=&quot;+(d-85-b))})};a(window).resize(function(){tb_position()});a(document).read
 y(function(b){b(&quot;a.thickbox&quot;).click(function(){var c;if(typeof(tinymce)!=&quot;undefined&quot;&amp;&amp;tinymce.isIE&amp;&amp;(c=tinymce.get(wpActiveEditor))&amp;&amp;!c.isHidden()){c.focus();c.windowManager.insertimagebookmark=c.selection.getBookmark()}})})})(jQuery);(function(b){var a={},c;c=function(g,e){var f=e.link,d;if(&quot;file&quot;===f){d=g.get(&quot;url&quot;)}else{if(&quot;post&quot;===f){d=g.get(&quot;link&quot;)}else{if(&quot;custom&quot;===f){d=e.linkUrl}}}return d||&quot;&quot;};wp.media.string={link:function(g,e){var f=getUserSetting(&quot;urlbutton&quot;,&quot;post&quot;),d={tag:&quot;a&quot;,content:g.get(&quot;title&quot;)||g.get(&quot;filename&quot;),attrs:{rel:&quot;attachment wp-att-&quot;+g.id}};d.attrs.href=c(g,e);return wp.html.string(d)},image:function(k,i){var h,d,e,g,j,f;i=_.defaults(i||{},{img:{},align:getUserSetting(&quot;align&quot;,&quot;none&quot;),size:getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),link:getUserSetting(&quo
 t;urlbutton&quot;,&quot;post&quot;)});i.linkUrl=c(k,i);k=k.toJSON();d=_.clone(i.img);h=d[&quot;class&quot;]?d[&quot;class&quot;].split(/\s+/):[];g=k.sizes?k.sizes[i.size]:{};if(!g){delete i.size;g=k}d.width=g.width;d.height=g.height;d.src=g.url;if(i.align&amp;&amp;!k.caption){h.push(&quot;align&quot;+i.align)}if(i.size){h.push(&quot;size-&quot;+i.size)}h.push(&quot;wp-image-&quot;+k.id);d[&quot;class&quot;]=_.compact(h).join(&quot; &quot;);e={tag:&quot;img&quot;,attrs:d,single:true};if(i.linkUrl){i.anchor=i.anchor||{};i.anchor.href=i.linkUrl}if(i.anchor){e={tag:&quot;a&quot;,attrs:i.anchor,content:e}}f=wp.html.string(e);if(k.caption){j={id:&quot;attachment_&quot;+k.id,width:d.width};if(i.align){j.align=&quot;align&quot;+i.align}f=wp.shortcode.string({tag:&quot;caption&quot;,attrs:j,content:f+&quot; &quot;+k.caption})}return f}};wp.media.gallery=(function(){var d={};return{defaults:{order:&quot;ASC&quot;,orderby:&quot;post__in&quot;,id:wp.media.view.settings.postId,itemtag:&q
 uot;dl&quot;,icontag:&quot;dt&quot;,captiontag:&quot;dd&quot;,columns:3,size:&quot;thumbnail&quot;},attachments:function(i){var k=i.string(),e=d[k],g,f,j,h;delete d[k];if(e){return e}g=i.attrs.named;f=_.pick(g,&quot;orderby&quot;,&quot;order&quot;);f.type=&quot;image&quot;;f.perPage=-1;if(g.ids){f.post__in=g.ids.split(&quot;,&quot;);f.orderby=&quot;post__in&quot;}else{if(g.include){f.post__in=g.include.split(&quot;,&quot;)}}if(g.exclude){f.post__not_in=g.exclude.split(&quot;,&quot;)}if(!f.post__in){f.parent=g.id}h={};_.filter(g,function(m,l){if(_.isUndefined(f[l])){h[l]=m}});j=media.query(f);j.gallery=new Backbone.Model(h);return j},shortcode:function(e){var g=e.props.toJSON(),f=_.pick(g,&quot;include&quot;,&quot;exclude&quot;,&quot;orderby&quot;,&quot;order&quot;),h,i;if(e.gallery){_.extend(f,e.gallery.toJSON())}f.ids=e.pluck(&quot;id&quot;);if(f.ids&amp;&amp;&quot;post__in&quot;===f.orderby){delete f.orderby}h=new wp.shortcode({tag:&quot;gallery&quot;,attrs:f,type:&quot;si
 ngle&quot;});i=new wp.media.model.Attachments(e.models,{props:g});i.gallery=e.gallery;d[h.string()]=i;return h},edit:function(h){var g=wp.shortcode.next(&quot;gallery&quot;,h),i=wp.media.gallery.defaults.postId,e,f;if(!g||g.content!==h){return}g=g.shortcode;if(_.isUndefined(g.get(&quot;id&quot;))&amp;&amp;!_.isUndefined(i)){g.set(&quot;id&quot;,i)}e=wp.media.gallery.attachments(g);f=new wp.media.model.Selection(e.models,{props:e.props.toJSON(),multiple:true});f.gallery=e.gallery;return wp.media({frame:&quot;post&quot;,state:&quot;gallery-edit&quot;,title:wp.media.view.l10n.editGalleryTitle,editing:true,multiple:true,selection:f})}}}());wp.media.editor={insert:send_to_editor,add:function(f,d){var e=this.get(f);if(e){return e}e=a[f]=wp.media(_.defaults(d||{},{frame:&quot;post&quot;,title:wp.media.view.l10n.insertMedia,multiple:true}));e.on(&quot;insert&quot;,function(h){var i=e.state(),g=i.get(&quot;details&quot;);h=h||i.get(&quot;selection&quot;);if(!h||!g){return}this.insert
 (h.map(function(k){var j=g[k.cid];if(j){j=j.toJSON()}delete g[k.cid];if(&quot;image&quot;===k.get(&quot;type&quot;)){return wp.media.string.image(k,j)+&quot; &quot;}else{return wp.media.string.link(k,j)+&quot; &quot;}}).join(&quot;&quot;))},this);e.get(&quot;gallery-edit&quot;).on(&quot;update&quot;,function(g){this.insert(wp.media.gallery.shortcode(g).string())},this);e.get(&quot;embed&quot;).on(&quot;select&quot;,function(){var h=e.state().toJSON(),g;if(&quot;link&quot;===h.type){this.insert(wp.html.string({tag:&quot;a&quot;,content:h.title||h.url,attrs:{href:h.url}}))}else{if(&quot;image&quot;===h.type){_.defaults(h,{align:&quot;none&quot;,url:&quot;&quot;,alt:&quot;&quot;,linkUrl:&quot;&quot;,link:&quot;none&quot;});g={single:true,tag:&quot;img&quot;,attrs:{&quot;class&quot;:&quot;align&quot;+h.align,src:h.url,alt:h.alt}};if(&quot;custom&quot;===h.link||&quot;file&quot;===h.link){g={tag:&quot;a&quot;,content:g,attrs:{href:&quot;custom&quot;===h.link?h.linkUrl:h.url}}}thi
 s.insert(wp.html.string(g))}}},this);return e},get:function(d){return a[d]},remove:function(d){delete a[d]},init:function(){b(&quot;#wpbody&quot;).on(&quot;click&quot;,&quot;.insert-media&quot;,function(e){var d=b(this).data(&quot;editor&quot;),f;e.preventDefault();if(!d){return}f=wp.media.editor.get(d);if(f){f.open();return}wp.media.editor.add(d)})}};b(wp.media.editor.init)}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludescssmediaviewsmincss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/media-views.min.css (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/media-views.min.css        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-includes/css/media-views.min.css        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -1 +1 @@
</span><del>-.media-frame input,.media-frame textarea{padding:6px 8px;line-height:16px}.media-frame select,.wp-admin .media-frame select{height:28px;line-height:28px;margin-top:3px}.media-modal{position:fixed;top:60px;left:40px;right:40px;bottom:40px;z-index:125000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.8;z-index:120000}.media-modal-backdrop div{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed rgba(255,255,255,0.5)}.media-modal-title,.media-modal-close{position:absolute;top:-40px;height:40px;line-height:40px;color:#fff;font-weight:200;text-shadow:0 0 16px rgba(0,0,0,0.6)}.media-modal-title{left:0;float:left;padding:0;margin:0;font-size:16px}.media-modal-close{right:0;float:right;text-decoration:none;font-size:1.8em}.media-modal-close:hover,.media-modal-close:focus{color:#fff;text-shadow:0 0 16px rgba(255,255,255,0.8)}.media-modal-close:active{outline:0}.media-modal-content{position:absolute;top:
 0;left:0;right:0;bottom:0;overflow:auto;background:#fff}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dfdfdf}.media-frame&gt;.media-toolbar{top:auto;left:200px;bottom:0;border-width:1px 0 0 0;box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1)}.media-frame.hide-toolbar&gt;.media-toolbar{bottom:-61px}.media-toolbar-primary{float:right}.media-toolbar-secondary{float:left}.media-toolbar-primary&gt;.media-button,.media-toolbar-primary&gt;.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary&gt;.media-button,.media-toolbar-secondary&gt;.media-button-group{margin-right:10px;float:left;margin-top:15px}.media-sidebar{position:absolute;top:0;right:0;bottom:61px;width:267px;padding:0 16px 24px;z-index:75;background:#f5f5f5;border-left:1px solid #dfdfdf;overflow:auto}.hide-sidebar .media-sidebar{right:-300px}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-weight:200;font-si
 ze:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.media-sidebar .selection-preview{display:block;padding-top:5px}.media-sidebar h3{position:relative;font-weight:bold;text-transform:uppercase;font-size:12px;color:#777;text-shadow:0 1px 0 #fff;margin:24px 0 8px}.media-sidebar .setting{display:block;float:left;width:100%;margin:1px 0}.media-sidebar .setting span{min-width:30%;margin-right:4%}.media-sidebar .setting span,.compat-item label span{float:left;min-height:22px;padding-top:8px;line-height:16px;text-align:right;font-weight:normal;color:#999;text-shadow:0 1px 0 #fff}.media-sidebar .setting input,.media-sidebar .setting textarea{width:65%;float:right}.media-sidebar .setting textarea,.compat-item .field textarea{height:62px;resize:none}.media-sidebar select{margin-top:3px}.compat-item{float:left;width:100%;overflow:hidden}.compat-item table{width:100%;
 table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .label,.compat-item .field{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-right:4%;float:left;text-align:right}.compat-item .label span{display:block;width:100%}.compat-item .field{float:right;width:65%;padding-right:1px}.compat-item .field input{width:100%;margin:0}.media-menu{position:absolute;top:0;left:0;bottom:0;width:199px;margin:0;padding:16px 0;z-index:200;box-shadow:inset -6px 0 6px -6px rgba(0,0,0,0.4)}.media-menu li{position:relative;padding:4px 20px;margin:0;line-height:18px;font-size:14px;color:#21759b;text-shadow:0 1px 0 #fff}.media-menu-item{cursor:pointer}.media-menu li:hover{background:rgba(0,0,0,0.04)}.media-menu .active,.media-menu .active:hover{color:#333;font-weight:bold}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #dfdfdf;border-bottom:1px solid #fff}.media-menu&gt;a.button{ma
 rgin:0 20px}.media-frame{overflow:hidden}.media-frame .region-content{position:absolute;top:0;left:200px;right:300px;bottom:61px;height:auto;width:auto;margin:0;overflow:auto}.media-frame.hide-sidebar .region-content{right:0}.media-frame.hide-toolbar .region-content{bottom:0}.media-frame .media-toolbar .add-to-gallery{display:none}.media-frame .media-iframe{overflow:hidden}.media-iframe iframe{height:100%;width:100%}.media-frame .search{margin-top:11px;padding:4px;line-height:18px;font-size:13px;color:#464646;font-family:sans-serif}.media-toolbar-secondary .search{margin-right:16px}.attachments{margin:0;padding-right:16px}.attachment{position:relative;float:left;padding:0;margin:0 10px 20px;color:#464646;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.selected.attachment{box-shadow:0 0 0 1px #fff,0 0 0 4px #777}.details.attachment{box-shadow:0 0 0 1px #fff,0 0 0 4px #1e8cbe}.attachment.library.selected:after{content:'
 \2713';display:block;height:24px;width:24px;position:absolute;top:-1px;right:-1px;line-height:24px;font-size:18px;text-align:center;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.5);background:#777;border:1px solid #fff;border-width:0 0 1px 1px;box-shadow:-1px 1px 0 rgba(0,0,0,0.1)}.attachment.library.details:after{background:#1e8cbe}.attachment-preview{position:relative;width:199px;height:199px;overflow:hidden;box-shadow:inset 0 0 15px rgba(0,0,0,0.1),inset 0 0 0 1px rgba(0,0,0,0.05);background:#eee;cursor:pointer}.attachment .icon,.attachment .thumbnail{display:block;position:absolute;top:0;left:0;margin:0 auto}.attachment .icon{top:50%;left:50%}.attachment-preview .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.1);overflow:hidden}.attachment .thumbnail img{top:0;left:0}.attachment .thumbnail .centered{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translate(50%,50%);-mo
 z-transform:translate(50%,50%);-ms-transform:translate(50%,50%);-o-transform:translate(50%,50%);transform:translate(50%,50%)}.attachment .icon,.attachment .thumbnail .centered img{-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.attachment .filename{position:absolute;left:0;right:0;bottom:0;padding:5px 10px;text-align:center;font-weight:bold;background:rgba(255,255,255,0.8);box-shadow:0 0 2px rgba(0,0,0,0.2)}.attachment-preview .thumbnail{width:199px;height:199px}.attachment .thumbnail img{position:absolute}.attachment .insert{display:none;position:absolute;left:7px;bottom:7px}.attachment:hover .insert{display:block}.attachment .close{display:none;position:absolute;top:5px;right:5px;height:22px;width:22px;padding:0;font-size:20px;line-height:20px;text-align:center;text-decoration:none;color:#464646;background:#fff;border-width:0;box-shadow:0 0 0 1px 
 rgba(0,0,0,0.3)}.attachment .close:hover{box-shadow:0 0 0 1px rgba(0,0,0,0.6)}.attachment:hover .close{display:block}.media-frame .describe{position:relative;display:block;width:100%;height:50px;margin:-1px 0 0;padding:8px;font-size:12px;resize:none;border-radius:0}.media-frame .attachments-browser{overflow:hidden}.attachments-browser .media-toolbar{height:50px}.attachments-browser .media-toolbar-primary&gt;.media-button,.attachments-browser .media-toolbar-primary&gt;.media-button-group,.attachments-browser .media-toolbar-secondary&gt;.media-button,.attachments-browser .media-toolbar-secondary&gt;.media-button-group{margin-top:10px}.attachments-browser .attachments{position:absolute;top:50px;left:0;right:0;bottom:0;overflow:auto}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:18px;font-size:13px;color:#999}.media-progress-bar{position:relative;height:8px;width:70%;margin:10px auto;padding:2px;border:2px solid #ccc;border-radius:8px;backgro
 und:#fff}.media-progress-bar div{height:8px;min-width:8px;width:0;background:#ccc;border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}.attachment-preview .media-progress-bar{position:absolute;top:50%;left:15%;width:70%;margin:-8px 0 0 -4px}.uploader-window{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,0.9);z-index:250000;display:none;text-align:center;opacity:0;-webkit-transition:opacity 250ms;-moz-transition:opacity 250ms;-ms-transition:opacity 250ms;-o-transition:opacity 250ms;transition:opacity 250ms}.uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}.uploader-window h3{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);font-size:20px;font-weight:200
 ;color:#fff;padding:0}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:transparent;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.region-content.uploader-inline{margin:20px;padding:20px;border:1px dashed #aaa;text-align:center}.uploader-inline-content{position:absolute;top:30%;left:0;right:0}.uploader-inline-content .upload-ui{margin:4em 0}.uploader-inline h3{font-size:20px;font-weight:200;margin-bottom:1.6em}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;left:0;right:350px;height:60px;padding:0 0 0 16px;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;height:60px;margin-right:10px;vertical-align:top}.media-selection.empty{display:none}.media-s
 election .count{display:block;padding-top:12px;font-size:14px;line-height:20px;font-weight:bold}.media-selection .clear-selection{display:block;text-decoration:none;line-height:16px}.media-selection .attachments{display:inline-block;height:60px;margin-top:5px;overflow:hidden;vertical-align:top}.media-selection .selected.attachment{box-shadow:none}.media-selection .details.attachment{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e8cbe}.media-selection:after{content:'';display:block;position:absolute;top:0;right:0;bottom:0;width:25px;background-image:-webkit-gradient(linear,right top,right top,from(rgba(255,255,255,1)),to(rgba(255,255,255,0)));background-image:-webkit-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:-moz-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:-o-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:linear-gradient(to left,rgba(255,255,255,1),rgba(255,255,255,0))}.media-se
 lection .attachment .filename{display:none}.selection-preview{position:relative;height:60px;overflow:hidden}.selected-img{float:left;position:relative;margin-right:14px}.selection-preview img{max-width:40px;max-height:40px;float:left;margin-top:6px;margin-left:1px;border:2px solid white;box-shadow:0 0 0 1px #ccc,3px 3px 0 0 #fff,3px 3px 0 1px #ccc,6px 6px 0 0 #fff,6px 6px 0 1px #ccc}.selection-preview .selected-count-1 img{margin-top:8px;box-shadow:0 0 0 1px #ccc}.selection-preview .selected-count-2 img{margin-top:7px;box-shadow:0 0 0 1px #ccc,3px 3px 0 0 #fff,3px 3px 0 1px #ccc}.selection-preview .count{position:absolute;bottom:0;right:0;height:16px;min-width:8px;padding:0 4px;font-size:12px;text-align:center;font-weight:bold;color:#999;background:#fff;box-shadow:-1px -1px 2px -1px rgba(0,0,0,0.2)}.selection-preview .clear-selection{float:left;line-height:60px}.attachment-details{overflow:auto}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:1
 8px;color:#999;border-bottom:1px solid #e5e5e5;box-shadow:0 1px 0 #fff;padding-bottom:11px}.attachment-info .filename{font-weight:bold;color:#464646}.attachment-info .thumbnail{position:relative;float:left;max-width:120px;max-height:120px;margin-right:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;box-shadow:inset 0 0 15px rgba(0,0,0,0.1)}.uploading .attachment-info .media-progress-bar{margin-top:32px}.attachment-info .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:left}.attachment-info .compat-meta{float:left}.attachment-display-settings{overflow:hidden;float:left}.attachment-display-settings h4{margin:1.4em 0 .4em}.gallery-settings{overflow:hidden}.embed-url{display:block;position:relative;height:75px;padding:16
 px 16px;margin:0;z-index:50;border-bottom:1px solid #dfdfdf;box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);font-size:18px;font-weight:200}.embed-url span{display:block;padding:4px 0 6px 2px}.embed-url input{padding:12px 14px;width:100%;min-width:200px;box-shadow:inset 2px 2px 4px -2px rgba(0,0,0,0.1)}.embed-link-settings,.embed-image-settings{position:absolute;background:#f5f5f5;top:108px;left:0;right:0;bottom:0;padding:16px 16px 32px;overflow:auto}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:left}.media-embed .thumbnail img{max-height:200px}.media-embed .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.1);overflow:hidden}.media-embed .setting{width:100%;margin-top:10px;float:left;display:block;clear:both}.media-embed .setting span{display:block;width:200px;font-size:13px;line-height:24px;color:#999;text-shadow:0 1px 0 #fff}.media-embed .setting .button-group{margin:
 2px 0}.media-embed .setting input,.media-embed .setting textarea{display:block;width:100%;max-width:400px;margin:1px 0}
</del><span class="cx">\ No newline at end of file
</span><ins>+.media-frame input,.media-frame textarea{padding:6px 8px;line-height:16px}.media-frame select,.wp-admin .media-frame select{height:28px;line-height:28px;margin-top:3px}.media-modal{position:fixed;top:60px;left:40px;right:40px;bottom:40px;z-index:125000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.8;z-index:120000}.media-modal-backdrop div{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed rgba(255,255,255,0.5)}.media-modal-title,.media-modal-close{position:absolute;top:-40px;height:40px;line-height:40px;color:#fff;font-weight:200;text-shadow:0 0 16px rgba(0,0,0,0.6)}.media-modal-title{left:0;float:left;padding:0;margin:0;font-size:16px}.media-modal-close{right:0;float:right;text-decoration:none;font-size:1.8em}.media-modal-close:hover,.media-modal-close:focus{color:#fff;text-shadow:0 0 16px rgba(255,255,255,0.8)}.media-modal-close:active{outline:0}.media-modal-content{position:absolute;top:
 0;left:0;right:0;bottom:0;overflow:auto;background:#fff}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #dfdfdf}.media-frame&gt;.media-toolbar{top:auto;left:200px;bottom:0;border-width:1px 0 0 0;box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1)}.media-frame.hide-toolbar&gt;.media-toolbar{bottom:-61px}.media-toolbar-primary{float:right}.media-toolbar-secondary{float:left}.media-toolbar-primary&gt;.media-button,.media-toolbar-primary&gt;.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary&gt;.media-button,.media-toolbar-secondary&gt;.media-button-group{margin-right:10px;float:left;margin-top:15px}.media-sidebar{position:absolute;top:0;right:0;bottom:61px;width:267px;padding:0 16px 24px;z-index:75;background:#f5f5f5;border-left:1px solid #dfdfdf;overflow:auto}.hide-sidebar .media-sidebar{right:-300px}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-weight:200;font-si
 ze:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.media-sidebar .selection-preview{display:block;padding-top:5px}.media-sidebar h3{position:relative;font-weight:bold;text-transform:uppercase;font-size:12px;color:#777;text-shadow:0 1px 0 #fff;margin:24px 0 8px}.media-sidebar .setting{display:block;float:left;width:100%;margin:1px 0}.media-sidebar .setting span{min-width:30%;margin-right:4%}.media-sidebar .setting span,.compat-item label span{float:left;min-height:22px;padding-top:8px;line-height:16px;text-align:right;font-weight:normal;color:#999;text-shadow:0 1px 0 #fff}.media-sidebar .setting input,.media-sidebar .setting textarea{width:65%;float:right}.media-sidebar .setting textarea,.compat-item .field textarea{height:62px;resize:none}.media-sidebar select{margin-top:3px}.compat-item{float:left;width:100%;overflow:hidden}.compat-item table{width:100%;
 table-layout:fixed;border-spacing:0;border:0}.compat-item tr{padding:2px 0;display:block;overflow:hidden}.compat-item .label,.compat-item .field{display:block;margin:0;padding:0}.compat-item .label{min-width:30%;margin-right:4%;float:left;text-align:right}.compat-item .label span{display:block;width:100%}.compat-item .field{float:right;width:65%;padding-right:1px}.compat-item .field input{width:100%;margin:0}.media-menu{position:absolute;top:0;left:0;bottom:0;width:199px;margin:0;padding:16px 0;z-index:200;box-shadow:inset -6px 0 6px -6px rgba(0,0,0,0.4)}.media-menu li{position:relative;padding:4px 20px;margin:0;line-height:18px;font-size:14px;color:#21759b;text-shadow:0 1px 0 #fff}.media-menu-item{cursor:pointer}.media-menu li:hover{background:rgba(0,0,0,0.04)}.media-menu .active,.media-menu .active:hover{color:#333;font-weight:bold}.media-menu .separator{height:0;margin:12px 20px;padding:0;border-top:1px solid #dfdfdf;border-bottom:1px solid #fff}.media-menu&gt;a.button{ma
 rgin:0 20px}.media-frame{overflow:hidden}.media-frame .region-content{position:absolute;top:0;left:200px;right:300px;bottom:61px;height:auto;width:auto;margin:0;overflow:auto}.media-frame.hide-sidebar .region-content{right:0}.media-frame.hide-toolbar .region-content{bottom:0}.media-frame .media-toolbar .add-to-gallery{display:none}.media-frame .media-iframe{overflow:hidden}.media-iframe iframe{height:100%;width:100%}.media-frame .search{margin-top:11px;padding:4px;line-height:18px;font-size:13px;color:#464646;font-family:sans-serif}.media-toolbar-secondary .search{margin-right:16px}.attachments{margin:0;padding-right:16px}.attachment{position:relative;float:left;padding:0;margin:0 10px 20px;color:#464646;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.selected.attachment{box-shadow:0 0 0 1px #fff,0 0 0 4px #777}.details.attachment{box-shadow:0 0 0 1px #fff,0 0 0 4px #1e8cbe}.attachment.library.selected:after{content:'
 \2713';display:block;height:24px;width:24px;position:absolute;top:-1px;right:-1px;line-height:24px;font-size:18px;text-align:center;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.5);background:#777;border:1px solid #fff;border-width:0 0 1px 1px;box-shadow:-1px 1px 0 rgba(0,0,0,0.1)}.attachment.library.details:after{background:#1e8cbe}.attachment-preview{position:relative;width:199px;height:199px;overflow:hidden;box-shadow:inset 0 0 15px rgba(0,0,0,0.1),inset 0 0 0 1px rgba(0,0,0,0.05);background:#eee;cursor:pointer}.attachment .icon,.attachment .thumbnail{display:block;position:absolute;top:0;left:0;margin:0 auto}.attachment .icon{top:50%;left:50%}.attachment-preview .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.1);overflow:hidden}.attachment .thumbnail img{top:0;left:0}.attachment .thumbnail .centered{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translate(50%,50%);-mo
 z-transform:translate(50%,50%);-ms-transform:translate(50%,50%);-o-transform:translate(50%,50%);transform:translate(50%,50%)}.attachment .icon,.attachment .thumbnail .centered img{-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.attachment .filename{position:absolute;left:0;right:0;bottom:0;padding:5px 10px;text-align:center;font-weight:bold;background:rgba(255,255,255,0.8);box-shadow:0 0 2px rgba(0,0,0,0.2)}.attachment-preview .thumbnail{width:199px;height:199px}.attachment .thumbnail img{position:absolute}.attachment .insert{display:none;position:absolute;left:7px;bottom:7px}.attachment:hover .insert{display:block}.attachment .close{display:none;position:absolute;top:5px;right:5px;height:22px;width:22px;padding:0;font-size:20px;line-height:20px;text-align:center;text-decoration:none;color:#464646;background:#fff;border-width:0;box-shadow:0 0 0 1px 
 rgba(0,0,0,0.3)}.attachment .close:hover{box-shadow:0 0 0 1px rgba(0,0,0,0.6)}.attachment:hover .close{display:block}.media-frame .describe{position:relative;display:block;width:100%;height:50px;margin:-1px 0 0;padding:8px;font-size:12px;resize:none;border-radius:0}.media-frame .attachments-browser{overflow:hidden}.attachments-browser .media-toolbar{height:50px}.attachments-browser .media-toolbar-primary&gt;.media-button,.attachments-browser .media-toolbar-primary&gt;.media-button-group,.attachments-browser .media-toolbar-secondary&gt;.media-button,.attachments-browser .media-toolbar-secondary&gt;.media-button-group{margin-top:10px}.attachments-browser .attachments{position:absolute;top:50px;left:0;right:0;bottom:0;overflow:auto}.attachments-browser .instructions{display:inline-block;margin-top:16px;line-height:18px;font-size:13px;color:#999}.media-progress-bar{position:relative;height:8px;width:70%;margin:10px auto;padding:2px;border:2px solid #ccc;border-radius:8px;backgro
 und:#fff}.media-progress-bar div{height:8px;min-width:8px;width:0;background:#ccc;border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}.attachment-preview .media-progress-bar{position:absolute;top:50%;left:15%;width:70%;margin:-8px 0 0 -4px}.uploader-window{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,0.9);z-index:250000;display:none;text-align:center;opacity:0;-webkit-transition:opacity 250ms;-moz-transition:opacity 250ms;-ms-transition:opacity 250ms;-o-transition:opacity 250ms;transition:opacity 250ms}.uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}.uploader-window h3{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);font-size:20px;font-weight:200
 ;color:#fff;padding:0}.uploader-window .media-progress-bar{margin-top:20px;max-width:300px;background:transparent;border-color:#fff;display:none}.uploader-window .media-progress-bar div{background:#fff}.uploading .uploader-window .media-progress-bar{display:block}.region-content.uploader-inline{margin:20px;padding:20px;text-align:center}.uploader-inline-content{position:absolute;top:30%;left:0;right:0}.uploader-inline-content .upload-ui{margin:4em 0}.uploader-inline h3{font-size:20px;font-weight:200;margin-bottom:1.6em}.uploader-inline .media-progress-bar{display:none}.uploading.uploader-inline .media-progress-bar{display:block}.uploader-inline .browser{display:inline-block!important}.media-selection{position:absolute;top:0;left:0;right:350px;height:60px;padding:0 0 0 16px;overflow:hidden;white-space:nowrap}.media-selection .selection-info{display:inline-block;height:60px;margin-right:10px;vertical-align:top}.media-selection.empty{display:none}.media-selection .count{display
 :block;padding-top:12px;font-size:14px;line-height:20px;font-weight:bold}.media-selection .clear-selection{display:block;text-decoration:none;line-height:16px}.media-selection .attachments{display:inline-block;height:60px;margin-top:5px;overflow:hidden;vertical-align:top}.media-selection .selected.attachment{box-shadow:none}.media-selection .details.attachment{box-shadow:0 0 0 1px #fff,0 0 0 3px #1e8cbe}.media-selection:after{content:'';display:block;position:absolute;top:0;right:0;bottom:0;width:25px;background-image:-webkit-gradient(linear,right top,right top,from(rgba(255,255,255,1)),to(rgba(255,255,255,0)));background-image:-webkit-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:-moz-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:-o-linear-gradient(right,rgba(255,255,255,1),rgba(255,255,255,0));background-image:linear-gradient(to left,rgba(255,255,255,1),rgba(255,255,255,0))}.media-selection .attachment .fi
 lename{display:none}.selection-preview{position:relative;height:60px;overflow:hidden}.selected-img{float:left;position:relative;margin-right:14px}.selection-preview img{max-width:40px;max-height:40px;float:left;margin-top:6px;margin-left:1px;border:2px solid white;box-shadow:0 0 0 1px #ccc,3px 3px 0 0 #fff,3px 3px 0 1px #ccc,6px 6px 0 0 #fff,6px 6px 0 1px #ccc}.selection-preview .selected-count-1 img{margin-top:8px;box-shadow:0 0 0 1px #ccc}.selection-preview .selected-count-2 img{margin-top:7px;box-shadow:0 0 0 1px #ccc,3px 3px 0 0 #fff,3px 3px 0 1px #ccc}.selection-preview .count{position:absolute;bottom:0;right:0;height:16px;min-width:8px;padding:0 4px;font-size:12px;text-align:center;font-weight:bold;color:#999;background:#fff;box-shadow:-1px -1px 2px -1px rgba(0,0,0,0.2)}.selection-preview .clear-selection{float:left;line-height:60px}.attachment-details{overflow:auto}.attachment-info{overflow:hidden;min-height:60px;margin-bottom:16px;line-height:18px;color:#999;border-b
 ottom:1px solid #e5e5e5;box-shadow:0 1px 0 #fff;padding-bottom:11px}.attachment-info .filename{font-weight:bold;color:#464646}.attachment-info .thumbnail{position:relative;float:left;max-width:120px;max-height:120px;margin-right:10px;margin-bottom:5px}.uploading .attachment-info .thumbnail{width:120px;height:80px;box-shadow:inset 0 0 15px rgba(0,0,0,0.1)}.uploading .attachment-info .media-progress-bar{margin-top:32px}.attachment-info .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.15);overflow:hidden}.attachment-info .thumbnail img{display:block;max-width:120px;max-height:120px;margin:0 auto}.attachment-info .details{float:left}.attachment-info .compat-meta{float:left}.attachment-display-settings{overflow:hidden;float:left}.attachment-display-settings h4{margin:1.4em 0 .4em}.gallery-settings{overflow:hidden}.embed-url{display:block;position:relative;height:75px;padding:16px 16px;margin:0;z-inde
 x:50;border-bottom:1px solid #dfdfdf;box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);font-size:18px;font-weight:200}.embed-url span{display:block;padding:4px 0 6px 2px}.embed-url input{padding:12px 14px;width:100%;min-width:200px;box-shadow:inset 2px 2px 4px -2px rgba(0,0,0,0.1)}.embed-link-settings,.embed-image-settings{position:absolute;background:#f5f5f5;top:108px;left:0;right:0;bottom:0;padding:16px 16px 32px;overflow:auto}.media-embed .thumbnail{max-width:100%;max-height:200px;position:relative;float:left}.media-embed .thumbnail img{max-height:200px}.media-embed .thumbnail:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.1);overflow:hidden}.media-embed .setting{width:100%;margin-top:10px;float:left;display:block;clear:both}.media-embed .setting span{display:block;width:200px;font-size:13px;line-height:24px;color:#999;text-shadow:0 1px 0 #fff}.media-embed .setting .button-group{margin:2px 0}.media-embed .set
 ting input,.media-embed .setting textarea{display:block;width:100%;max-width:400px;margin:1px 0}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsmceviewminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/mce-view.min.js (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/mce-view.min.js        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-includes/js/mce-view.min.js        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -1 +1 @@
</span><del>-window.wp=window.wp||{};(function(){wp.html=_.extend(wp.html||{},{attrs:function(c){var a,b;if(&quot;/&quot;===c[c.length-1]){c=c.slice(0,-1)}a=wp.shortcode.attrs(c);b=a.named;_.each(a.numeric,function(d){if(/\s/.test(d)){return}b[d]=&quot;&quot;});return b},string:function(a){var c=&quot;&lt;&quot;+a.tag,b=a.content||&quot;&quot;;_.each(a.attrs,function(e,d){c+=&quot; &quot;+d;if(&quot;&quot;===e){return}if(_.isBoolean(e)){e=e?&quot;true&quot;:&quot;false&quot;}c+='=&quot;'+e+'&quot;'});if(a.single){return c+&quot; /&gt;&quot;}c+=&quot;&gt;&quot;;c+=_.isObject(b)?wp.html.string(b):b;return c+&quot;&lt;/&quot;+a.tag+&quot;&gt;&quot;}})}());(function(b){var a={},c={};wp.mce=wp.mce||{};wp.mce.view={defaults:{pattern:{view:Backbone.View,text:function(d){return d.options.original},toView:function(e){if(!this.pattern){return}this.pattern.lastIndex=0;var d=this.pattern.exec(e);if(!d){return}return{index:d.index,content:d[0],options:{original:d[0],results:d}}}},shortcod
 e:{view:Backbone.View,text:function(d){return d.options.shortcode.string()},toView:function(e){var d=wp.shortcode.next(this.shortcode,e);if(!d){return}return{index:d.index,content:d.content,options:{shortcode:d.shortcode}}}}},add:function(i,e){var g,d,h,f;if(e.extend){g=wp.mce.view.get(e.extend)}else{if(e.shortcode){g=wp.mce.view.defaults.shortcode}else{g=wp.mce.view.defaults.pattern}}_.defaults(e,g);e.id=i;f={remove:function(){delete c[this.el.id];this.$el.parent().remove();if(d){d.apply(this,arguments)}return this}};if(_.isFunction(e.view)){h=e.view}else{h=g.view;d=e.view.remove;_.defaults(f,e.view)}if(!d&amp;&amp;!h._mceview){d=h.prototype.remove}e.view=h.extend(f,{_mceview:true});a[i]=e},get:function(d){return a[d]},remove:function(d){delete a[d]},toViews:function(e){var d=[{content:e}],f;_.each(a,function(h,g){f=d.slice();d=[];_.each(f,function(k){var j=k.content,i;if(k.processed){d.push(k);return}while(j&amp;&amp;(i=h.toView(j))){if(i.index){d.push({content:j.substring
 (0,i.index)})}d.push({content:wp.mce.view.toView(g,i.options),processed:true});j=j.slice(i.index+i.content.length)}if(j){d.push({content:j})}})});return _.pluck(d,&quot;content&quot;).join(&quot;&quot;)},toView:function(e,g){var f=wp.mce.view.get(e),d,h;if(!f){return&quot;&quot;}d=new f.view(_.extend(g||{},{viewType:e}));h=d.el.id=d.el.id||_.uniqueId(&quot;__wpmce-&quot;);c[h]=d;d.$wrapper=b();return wp.html.string({tag:&quot;span&quot;===d.tagName?&quot;span&quot;:&quot;div&quot;,attrs:{&quot;class&quot;:&quot;wp-view-wrap wp-view-type-&quot;+e,&quot;data-wp-view&quot;:h,contenteditable:false}})},render:function(d){b(&quot;.wp-view-wrap&quot;,d).each(function(){var f=b(this),e=wp.mce.view.instance(this);if(!e){return}e.$wrapper=f;e.render();e.$el.detach();f.empty().append(e.el).append('&lt;span data-wp-view-end class=&quot;wp-view-end&quot;&gt;&lt;/span&gt;')})},toText:function(d){return d.replace(/&lt;(?:div|span)[^&gt;]+data-wp-view=&quot;([^&quot;]+)&quot;[^&gt;]*&gt;.*?
 &lt;span[^&gt;]+data-wp-view-end[^&gt;]*&gt;&lt;\/span&gt;&lt;\/(?:div|span)&gt;/g,function(g,h){var e=c[h],f;if(e){f=wp.mce.view.get(e.options.viewType)}return e&amp;&amp;f?f.text(e):&quot;&quot;})},removeInternalAttrs:function(e){var d={};_.each(e,function(g,f){if(-1===f.indexOf(&quot;data-mce&quot;)){d[f]=g}});return d},attrs:function(d){return wp.mce.view.removeInternalAttrs(wp.html.attrs(d))},instance:function(d){var e=b(d).data(&quot;wp-view&quot;);if(e){return c[e]}},select:function(e){var d=b(e);if(d.hasClass(&quot;selected&quot;)){return}d.addClass(&quot;selected&quot;);b(e.firstChild).trigger(&quot;select&quot;)},deselect:function(e){var d=b(e);if(!d.hasClass(&quot;selected&quot;)){return}d.removeClass(&quot;selected&quot;);b(e.firstChild).trigger(&quot;deselect&quot;)},l10n:_.isUndefined(_wpMceViewL10n)?{}:_wpMceViewL10n}}(jQuery));(function(b){var a=wp.mce.view,c;c=function(g,e){var f=e.link,d;if(&quot;file&quot;===f){d=g.get(&quot;url&quot;)}else{if(&quot;post&q
 uot;===f){d=g.get(&quot;link&quot;)}else{if(&quot;custom&quot;===f){d=e.linkUrl}}}return d||&quot;&quot;};wp.media.string={};wp.media.string.link=function(g,e){var f=getUserSetting(&quot;urlbutton&quot;,&quot;post&quot;),d={tag:&quot;a&quot;,content:g.get(&quot;title&quot;)||g.get(&quot;filename&quot;),attrs:{rel:&quot;attachment wp-att-&quot;+g.id}};d.attrs.href=c(g,e);return wp.html.string(d)};wp.media.string.image=function(k,i){var h,d,e,g,j,f;i=_.defaults(i||{},{img:{},align:getUserSetting(&quot;align&quot;,&quot;none&quot;),size:getUserSetting(&quot;imgsize&quot;,&quot;medium&quot;),link:getUserSetting(&quot;urlbutton&quot;,&quot;post&quot;)});i.linkUrl=c(k,i);k=k.toJSON();d=_.clone(i.img);h=d[&quot;class&quot;]?d[&quot;class&quot;].split(/\s+/):[];g=k.sizes?k.sizes[i.size]:{};if(!g){delete i.size;g=k}d.width=g.width;d.height=g.height;d.src=g.url;if(i.align&amp;&amp;!k.caption){h.push(&quot;align&quot;+i.align)}if(i.size){h.push(&quot;size-&quot;+i.size)}h.push(&quot;wp
 -image-&quot;+k.id);d[&quot;class&quot;]=_.compact(h).join(&quot; &quot;);e={tag:&quot;img&quot;,attrs:d,single:true};if(i.linkUrl){i.anchor=i.anchor||{};i.anchor.href=i.linkUrl}if(i.anchor){e={tag:&quot;a&quot;,attrs:i.anchor,content:e}}f=wp.html.string(e);if(k.caption){j={id:&quot;attachment_&quot;+k.id,width:d.width};if(i.align){j.align=&quot;align&quot;+i.align}f=wp.shortcode.string({tag:&quot;caption&quot;,attrs:j,content:f+&quot; &quot;+k.caption})}return f};a.add(&quot;attachment&quot;,{pattern:new RegExp(&quot;(?:&lt;a([^&gt;]*)&gt;)?&lt;img([^&gt;]*class=(?:\&quot;[^\&quot;]*|'[^']*)\\bwp-image-(\\d+)[^&gt;]*)&gt;(?:&lt;/a&gt;)?&quot;),text:function(d){var e=_.pick(d,&quot;align&quot;,&quot;size&quot;,&quot;link&quot;,&quot;img&quot;,&quot;anchor&quot;);return wp.media.string.image(d.model,e)},view:{className:&quot;editor-attachment&quot;,template:media.template(&quot;editor-attachment&quot;),events:{&quot;click .close&quot;:&quot;remove&quot;},initialize:function()
 {var d=this,e=this.options.results,g=e[3],f;this.model=wp.media.model.Attachment.get(g);if(e[1]){this.anchor=a.attrs(e[1])}this.img=a.attrs(e[2]);f=this.img[&quot;class&quot;];f=f.replace(/(?:^|\s)wp-image-\d+/,&quot;&quot;);f=f.replace(/(?:^|\s)size-(\S+)/,function(h,i){d.size=i;return&quot;&quot;});f=f.replace(/(?:^|\s)align(left|center|right|none)(?:\s|$)/,function(h,i){d.align=i;return&quot;&quot;});this.img[&quot;class&quot;]=f;this.$el.addClass(&quot;spinner&quot;);this.model.fetch().done(_.bind(this.render,this))},render:function(){var e=this.model.toJSON(),d;if(!e.url){return}if(this.align){this.$wrapper.addClass(&quot;align&quot;+this.align)}d={url:&quot;image&quot;===e.type?e.url:e.icon,uploading:e.uploading};_.extend(d,wp.media.fit({width:e.width,height:e.height,maxWidth:a.l10n.contentWidth}));if(this.size&amp;&amp;e.sizes&amp;&amp;e.sizes[this.size]){_.extend(d,_.pick(e.sizes[this.size],&quot;url&quot;,&quot;width&quot;,&quot;height&quot;))}this.$el.html(this.tem
 plate(d))}}});a.add(&quot;gallery&quot;,{shortcode:&quot;gallery&quot;,gallery:(function(){var d={};return{attachments:function(j,i){var l=j.string(),e=d[l],g,f,k,h;delete d[l];if(e){return e}g=j.attrs.named;f=_.pick(g,&quot;orderby&quot;,&quot;order&quot;);f.type=&quot;image&quot;;f.perPage=-1;if(g.ids){f.post__in=g.ids.split(&quot;,&quot;);f.orderby=&quot;post__in&quot;}else{if(g.include){f.post__in=g.include.split(&quot;,&quot;)}}if(g.exclude){f.post__not_in=g.exclude.split(&quot;,&quot;)}if(!f.post__in){f.parent=g.id||i}h={};_.filter(g,function(n,m){if(_.isUndefined(f[m])){h[m]=n}});k=media.query(f);k.gallery=new Backbone.Model(h);return k},shortcode:function(e){var g=e.props.toJSON(),f=_.pick(g,&quot;include&quot;,&quot;exclude&quot;,&quot;orderby&quot;,&quot;order&quot;),h,i;if(e.gallery){_.extend(f,e.gallery.toJSON())}f.ids=e.pluck(&quot;id&quot;);if(f.ids&amp;&amp;&quot;post__in&quot;===f.orderby){delete f.orderby}h=new wp.shortcode({tag:&quot;gallery&quot;,attrs:f,t
 ype:&quot;single&quot;});i=new wp.media.model.Attachments(e.models,{props:g});i.gallery=e.gallery;d[h.string()]=i;return h}}}()),view:{className:&quot;editor-gallery&quot;,template:media.template(&quot;editor-gallery&quot;),parent:b(&quot;#post_ID&quot;).val(),events:{&quot;click .close&quot;:&quot;remove&quot;,&quot;click .edit&quot;:&quot;edit&quot;},initialize:function(){this.update()},update:function(){var d=a.get(&quot;gallery&quot;);this.attachments=d.gallery.attachments(this.options.shortcode,this.parent);this.attachments.more().done(_.bind(this.render,this))},render:function(){var d,f,e;if(!this.attachments.length){return}f=this.attachments.first().toJSON();e=f.sizes&amp;&amp;f.sizes.thumbnail?f.sizes.thumbnail:f;d={url:e.url,orientation:e.orientation,count:this.attachments.length};this.$el.html(this.template(d))},edit:function(){var d;if(!wp.media.view||this.frame){return}d=new wp.media.model.Selection(this.attachments.models,{props:this.attachments.props.toJSON(),m
 ultiple:true});d.gallery=this.attachments.gallery;this.frame=wp.media({frame:&quot;post&quot;,state:&quot;gallery-edit&quot;,title:a.l10n.editGallery,editing:true,multiple:true,selection:d});this.frame.on(&quot;close&quot;,function(){if(this.frame){this.frame.detach()}delete this.frame},this);this.frame.get(&quot;gallery-edit&quot;).on(&quot;update&quot;,function(f){var e=a.get(&quot;gallery&quot;);this.options.shortcode=e.gallery.shortcode(f);this.update()},this)}}})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+window.wp=window.wp||{};(function(b){var a={},c={};wp.mce=wp.mce||{};wp.mce.view={defaults:{pattern:{view:Backbone.View,text:function(d){return d.options.original},toView:function(e){if(!this.pattern){return}this.pattern.lastIndex=0;var d=this.pattern.exec(e);if(!d){return}return{index:d.index,content:d[0],options:{original:d[0],results:d}}}},shortcode:{view:Backbone.View,text:function(d){return d.options.shortcode.string()},toView:function(e){var d=wp.shortcode.next(this.shortcode,e);if(!d){return}return{index:d.index,content:d.content,options:{shortcode:d.shortcode}}}}},add:function(i,e){var g,d,h,f;if(e.extend){g=wp.mce.view.get(e.extend)}else{if(e.shortcode){g=wp.mce.view.defaults.shortcode}else{g=wp.mce.view.defaults.pattern}}_.defaults(e,g);e.id=i;f={remove:function(){delete c[this.el.id];this.$el.parent().remove();if(d){d.apply(this,arguments)}return this}};if(_.isFunction(e.view)){h=e.view}else{h=g.view;d=e.view.remove;_.defaults(f,e.view)}if(!d&amp;&amp;
 !h._mceview){d=h.prototype.remove}e.view=h.extend(f,{_mceview:true});a[i]=e},get:function(d){return a[d]},remove:function(d){delete a[d]},toViews:function(e){var d=[{content:e}],f;_.each(a,function(h,g){f=d.slice();d=[];_.each(f,function(k){var j=k.content,i;if(k.processed){d.push(k);return}while(j&amp;&amp;(i=h.toView(j))){if(i.index){d.push({content:j.substring(0,i.index)})}d.push({content:wp.mce.view.toView(g,i.options),processed:true});j=j.slice(i.index+i.content.length)}if(j){d.push({content:j})}})});return _.pluck(d,&quot;content&quot;).join(&quot;&quot;)},toView:function(e,g){var f=wp.mce.view.get(e),d,h;if(!f){return&quot;&quot;}d=new f.view(_.extend(g||{},{viewType:e}));h=d.el.id=d.el.id||_.uniqueId(&quot;__wpmce-&quot;);c[h]=d;d.$wrapper=b();return wp.html.string({tag:&quot;span&quot;===d.tagName?&quot;span&quot;:&quot;div&quot;,attrs:{&quot;class&quot;:&quot;wp-view-wrap wp-view-type-&quot;+e,&quot;data-wp-view&quot;:h,contenteditable:false}})},render:function(d){
 b(&quot;.wp-view-wrap&quot;,d).each(function(){var f=b(this),e=wp.mce.view.instance(this);if(!e){return}e.$wrapper=f;e.render();e.$el.detach();f.empty().append(e.el).append('&lt;span data-wp-view-end class=&quot;wp-view-end&quot;&gt;&lt;/span&gt;')})},toText:function(d){return d.replace(/&lt;(?:div|span)[^&gt;]+data-wp-view=&quot;([^&quot;]+)&quot;[^&gt;]*&gt;.*?&lt;span[^&gt;]+data-wp-view-end[^&gt;]*&gt;&lt;\/span&gt;&lt;\/(?:div|span)&gt;/g,function(g,h){var e=c[h],f;if(e){f=wp.mce.view.get(e.options.viewType)}return e&amp;&amp;f?f.text(e):&quot;&quot;})},removeInternalAttrs:function(e){var d={};_.each(e,function(g,f){if(-1===f.indexOf(&quot;data-mce&quot;)){d[f]=g}});return d},attrs:function(d){return wp.mce.view.removeInternalAttrs(wp.html.attrs(d))},instance:function(d){var e=b(d).data(&quot;wp-view&quot;);if(e){return c[e]}},select:function(e){var d=b(e);if(d.hasClass(&quot;selected&quot;)){return}d.addClass(&quot;selected&quot;);b(e.firstChild).trigger(&quot;select&q
 uot;)},deselect:function(e){var d=b(e);if(!d.hasClass(&quot;selected&quot;)){return}d.removeClass(&quot;selected&quot;);b(e.firstChild).trigger(&quot;deselect&quot;)}}}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsshortcodeminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/shortcode.min.js (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/shortcode.min.js        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-includes/js/shortcode.min.js        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -1 +1 @@
</span><del>-window.wp=window.wp||{};(function(){wp.shortcode={next:function(b,f,d){var e=wp.shortcode.regexp(b),c,a;e.lastIndex=d||0;c=e.exec(f);if(!c){return}if(c[1]===&quot;[&quot;&amp;&amp;c[7]===&quot;]&quot;){return wp.shortcode.next(b,f,e.lastIndex)}a={index:c.index,content:c[0],shortcode:wp.shortcode.fromMatch(c)};if(c[1]){a.match=a.match.slice(1);a.index++}if(c[7]){a.match=a.match.slice(0,-1)}return a},replace:function(a,b,c){return b.replace(wp.shortcode.regexp(a),function(h,d,m,k,g,i,e,j,f){if(d===&quot;[&quot;&amp;&amp;j===&quot;]&quot;){return h}var l=c(wp.shortcode.fromMatch(arguments));return l?d+l+j:h})},string:function(a){return new wp.shortcode(a).string()},regexp:_.memoize(function(a){return new RegExp(&quot;\\[(\\[?)(&quot;+a+&quot;)(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)&quot;,&quot;g&quot;)}),attrs:_.memoize(function(e){var a={},c=[],d,b;d=/(\w+)\s*=\s*&quot;([^&quot;]
 *)&quot;(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'&quot;]+)(?:\s|$)|&quot;([^&quot;]*)&quot;(?:\s|$)|(\S+)(?:\s|$)/g;e=e.replace(/[\u00a0\u200b]/g,&quot; &quot;);while((b=d.exec(e))){if(b[1]){a[b[1].toLowerCase()]=b[2]}else{if(b[3]){a[b[3].toLowerCase()]=b[4]}else{if(b[5]){a[b[5].toLowerCase()]=b[6]}else{if(b[7]){c.push(b[7])}else{if(b[8]){c.push(b[8])}}}}}}return{named:a,numeric:c}}),fromMatch:function(a){var b;if(a[4]){b=&quot;self-closing&quot;}else{if(a[6]){b=&quot;closed&quot;}else{b=&quot;single&quot;}}return new wp.shortcode({tag:a[2],attrs:a[3],type:b,content:a[5]})}};wp.shortcode=_.extend(function(b){_.extend(this,_.pick(b||{},&quot;tag&quot;,&quot;attrs&quot;,&quot;type&quot;,&quot;content&quot;));var a=this.attrs;this.attrs={named:{},numeric:[]};if(!a){return}if(_.isString(a)){this.attrs=wp.shortcode.attrs(a)}else{if(_.isEqual(_.keys(a),[&quot;named&quot;,&quot;numeric&quot;])){this.attrs=a}else{_.each(b.attrs,function(d,c){this.set(c,d)},this)}
 }},wp.shortcode);_.extend(wp.shortcode.prototype,{get:function(a){return this.attrs[_.isNumber(a)?&quot;numeric&quot;:&quot;named&quot;][a]},set:function(a,b){this.attrs[_.isNumber(a)?&quot;numeric&quot;:&quot;named&quot;][a]=b;return this},string:function(){var a=&quot;[&quot;+this.tag;_.each(this.attrs.numeric,function(b){if(/\s/.test(b)){a+=' &quot;'+b+'&quot;'}else{a+=&quot; &quot;+b}});_.each(this.attrs.named,function(c,b){a+=&quot; &quot;+b+'=&quot;'+c+'&quot;'});if(&quot;single&quot;===this.type){return a+&quot;]&quot;}else{if(&quot;self-closing&quot;===this.type){return a+&quot; /]&quot;}}a+=&quot;]&quot;;if(this.content){a+=this.content}return a+&quot;[/&quot;+this.tag+&quot;]&quot;}})}());
</del><span class="cx">\ No newline at end of file
</span><ins>+window.wp=window.wp||{};(function(){wp.shortcode={next:function(b,f,d){var e=wp.shortcode.regexp(b),c,a;e.lastIndex=d||0;c=e.exec(f);if(!c){return}if(c[1]===&quot;[&quot;&amp;&amp;c[7]===&quot;]&quot;){return wp.shortcode.next(b,f,e.lastIndex)}a={index:c.index,content:c[0],shortcode:wp.shortcode.fromMatch(c)};if(c[1]){a.match=a.match.slice(1);a.index++}if(c[7]){a.match=a.match.slice(0,-1)}return a},replace:function(a,b,c){return b.replace(wp.shortcode.regexp(a),function(h,d,m,k,g,i,e,j,f){if(d===&quot;[&quot;&amp;&amp;j===&quot;]&quot;){return h}var l=c(wp.shortcode.fromMatch(arguments));return l?d+l+j:h})},string:function(a){return new wp.shortcode(a).string()},regexp:_.memoize(function(a){return new RegExp(&quot;\\[(\\[?)(&quot;+a+&quot;)(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)&quot;,&quot;g&quot;)}),attrs:_.memoize(function(e){var a={},c=[],d,b;d=/(\w+)\s*=\s*&quot;([^&quot;]
 *)&quot;(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'&quot;]+)(?:\s|$)|&quot;([^&quot;]*)&quot;(?:\s|$)|(\S+)(?:\s|$)/g;e=e.replace(/[\u00a0\u200b]/g,&quot; &quot;);while((b=d.exec(e))){if(b[1]){a[b[1].toLowerCase()]=b[2]}else{if(b[3]){a[b[3].toLowerCase()]=b[4]}else{if(b[5]){a[b[5].toLowerCase()]=b[6]}else{if(b[7]){c.push(b[7])}else{if(b[8]){c.push(b[8])}}}}}}return{named:a,numeric:c}}),fromMatch:function(a){var b;if(a[4]){b=&quot;self-closing&quot;}else{if(a[6]){b=&quot;closed&quot;}else{b=&quot;single&quot;}}return new wp.shortcode({tag:a[2],attrs:a[3],type:b,content:a[5]})}};wp.shortcode=_.extend(function(b){_.extend(this,_.pick(b||{},&quot;tag&quot;,&quot;attrs&quot;,&quot;type&quot;,&quot;content&quot;));var a=this.attrs;this.attrs={named:{},numeric:[]};if(!a){return}if(_.isString(a)){this.attrs=wp.shortcode.attrs(a)}else{if(_.isEqual(_.keys(a),[&quot;named&quot;,&quot;numeric&quot;])){this.attrs=a}else{_.each(b.attrs,function(d,c){this.set(c,d)},this)}
 }},wp.shortcode);_.extend(wp.shortcode.prototype,{get:function(a){return this.attrs[_.isNumber(a)?&quot;numeric&quot;:&quot;named&quot;][a]},set:function(a,b){this.attrs[_.isNumber(a)?&quot;numeric&quot;:&quot;named&quot;][a]=b;return this},string:function(){var a=&quot;[&quot;+this.tag;_.each(this.attrs.numeric,function(b){if(/\s/.test(b)){a+=' &quot;'+b+'&quot;'}else{a+=&quot; &quot;+b}});_.each(this.attrs.named,function(c,b){a+=&quot; &quot;+b+'=&quot;'+c+'&quot;'});if(&quot;single&quot;===this.type){return a+&quot;]&quot;}else{if(&quot;self-closing&quot;===this.type){return a+&quot; /]&quot;}}a+=&quot;]&quot;;if(this.content){a+=this.content}return a+&quot;[/&quot;+this.tag+&quot;]&quot;}})}());(function(){wp.html=_.extend(wp.html||{},{attrs:function(c){var a,b;if(&quot;/&quot;===c[c.length-1]){c=c.slice(0,-1)}a=wp.shortcode.attrs(c);b=a.named;_.each(a.numeric,function(d){if(/\s/.test(d)){return}b[d]=&quot;&quot;});return b},string:function(a){var c=&quot;&lt;&quot;+a.ta
 g,b=a.content||&quot;&quot;;_.each(a.attrs,function(e,d){c+=&quot; &quot;+d;if(&quot;&quot;===e){return}if(_.isBoolean(e)){e=e?&quot;true&quot;:&quot;false&quot;}c+='=&quot;'+e+'&quot;'});if(a.single){return c+&quot; /&gt;&quot;}c+=&quot;&gt;&quot;;c+=_.isObject(b)?wp.html.string(b):b;return c+&quot;&lt;/&quot;+a.tag+&quot;&gt;&quot;}})}());
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpgalleryeditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){tinymce.create(&quot;tinymce.plugins.wpGallery&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_Gallery&quot;,function(){var h=a.selection.getNode(),f,e=tinymce.DOM.getViewPort(),g=e.h-80,d=(640&lt;e.w)?640:e.w;if(h.nodeName!=&quot;IMG&quot;){return}if(a.dom.getAttrib(h,&quot;class&quot;).indexOf(&quot;wpGallery&quot;)==-1){return}f=tinymce.DOM.get(&quot;post_ID&quot;).value;tb_show(&quot;&quot;,tinymce.documentBaseURL+&quot;media-upload.php?post_id=&quot;+f+&quot;&amp;tab=gallery&amp;TB_iframe=true&amp;width=&quot;+d+&quot;&amp;height=&quot;+g);tinymce.DOM.setStyle([&quot;TB_overlay&quot;,&quot;TB_window&quot;,&quot;TB_load&quot;],&quot;z-index&quot;,&quot;999999&quot;)});a.onMouseDown.add(function(d,f){if(f.target.nodeName==&quot;IMG&quot;&amp;&amp;d.dom.hasClass(f.target,&quot;wpGallery&quot;)){d.plugins.wordpress._showButtons(f.target,&quot;wp_gallerybtns&quot;)}});a.onBeforeSetContent.add(function(d,e){e.conte
 nt=c._do_gallery(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_gallery(e.content)}})},_do_gallery:function(a){return a.replace(/\[gallery([^\]]*)\]/g,function(d,c){return'&lt;img src=&quot;'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif&quot; class=&quot;wpGallery mceItem&quot; title=&quot;gallery'+tinymce.DOM.encode(c)+'&quot; /&gt;'})},_get_gallery:function(b){function a(c,d){d=new RegExp(d+'=&quot;([^&quot;]+)&quot;',&quot;g&quot;).exec(c);return d?tinymce.DOM.decode(d[1]):&quot;&quot;}return b.replace(/(?:&lt;p[^&gt;]*&gt;)*(&lt;img[^&gt;]+&gt;)(?:&lt;\/p&gt;)*/g,function(e,d){var c=a(d,&quot;class&quot;);if(c.indexOf(&quot;wpGallery&quot;)!=-1){return&quot;&lt;p&gt;[&quot;+tinymce.trim(a(d,&quot;title&quot;))+&quot;]&lt;/p&gt;&quot;}return e})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_gallerybtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_gallerybtns&quot;,style:&quot;display
 :none;&quot;});e=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/edit.png&quot;,id:&quot;wp_editgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.editgallery&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(g){var f=tinyMCE.activeEditor;f.windowManager.bookmark=f.selection.getBookmark(&quot;simple&quot;);f.execCommand(&quot;WP_Gallery&quot;)});c=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.delgallery&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(h){var f=tinyMCE.activeEditor,g=f.selection.getNode();if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.hasClass(g,&quot;wpGallery&quot;)){f.dom.remove(g);f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Gallery Settings&quot;,author:&quot;WordPress&quot
 ;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinymce.PluginManager.add(&quot;wpgallery&quot;,tinymce.plugins.wpGallery)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){tinymce.create(&quot;tinymce.plugins.wpGallery&quot;,{init:function(a,b){var c=this;c.url=b;c._createButtons();a.addCommand(&quot;WP_Gallery&quot;,function(){var e=a.selection.getNode(),d=wp.media.gallery,f;if(typeof wp===&quot;undefined&quot;||!wp.media||!wp.media.gallery){return}if(e.nodeName!=&quot;IMG&quot;||a.dom.getAttrib(e,&quot;class&quot;).indexOf(&quot;wpGallery&quot;)==-1){return}f=d.edit(&quot;[&quot;+a.dom.getAttrib(e,&quot;title&quot;)+&quot;]&quot;);f.get(&quot;gallery-edit&quot;).on(&quot;update&quot;,function(g){var h=d.shortcode(g).string().slice(1,-1);a.dom.setAttrib(e,&quot;title&quot;,h)})});a.onMouseDown.add(function(d,f){if(f.target.nodeName==&quot;IMG&quot;&amp;&amp;d.dom.hasClass(f.target,&quot;wpGallery&quot;)){d.plugins.wordpress._showButtons(f.target,&quot;wp_gallerybtns&quot;)}});a.onBeforeSetContent.add(function(d,e){e.content=c._do_gallery(e.content)});a.onPostProcess.add(function(d,e){if(e.get){e.content=c._get_gallery(
 e.content)}})},_do_gallery:function(a){return a.replace(/\[gallery([^\]]*)\]/g,function(d,c){return'&lt;img src=&quot;'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif&quot; class=&quot;wpGallery mceItem&quot; title=&quot;gallery'+tinymce.DOM.encode(c)+'&quot; /&gt;'})},_get_gallery:function(b){function a(c,d){d=new RegExp(d+'=&quot;([^&quot;]+)&quot;',&quot;g&quot;).exec(c);return d?tinymce.DOM.decode(d[1]):&quot;&quot;}return b.replace(/(?:&lt;p[^&gt;]*&gt;)*(&lt;img[^&gt;]+&gt;)(?:&lt;\/p&gt;)*/g,function(e,d){var c=a(d,&quot;class&quot;);if(c.indexOf(&quot;wpGallery&quot;)!=-1){return&quot;&lt;p&gt;[&quot;+tinymce.trim(a(d,&quot;title&quot;))+&quot;]&lt;/p&gt;&quot;}return e})},_createButtons:function(){var b=this,a=tinyMCE.activeEditor,d=tinymce.DOM,e,c;d.remove(&quot;wp_gallerybtns&quot;);d.add(document.body,&quot;div&quot;,{id:&quot;wp_gallerybtns&quot;,style:&quot;display:none;&quot;});e=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/edit.png&qu
 ot;,id:&quot;wp_editgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.editgallery&quot;)});tinymce.dom.Event.add(e,&quot;mousedown&quot;,function(g){var f=tinyMCE.activeEditor;f.windowManager.bookmark=f.selection.getBookmark(&quot;simple&quot;);f.execCommand(&quot;WP_Gallery&quot;)});c=d.add(&quot;wp_gallerybtns&quot;,&quot;img&quot;,{src:b.url+&quot;/img/delete.png&quot;,id:&quot;wp_delgallery&quot;,width:&quot;24&quot;,height:&quot;24&quot;,title:a.getLang(&quot;wordpress.delgallery&quot;)});tinymce.dom.Event.add(c,&quot;mousedown&quot;,function(h){var f=tinyMCE.activeEditor,g=f.selection.getNode();if(g.nodeName==&quot;IMG&quot;&amp;&amp;f.dom.hasClass(g,&quot;wpGallery&quot;)){f.dom.remove(g);f.execCommand(&quot;mceRepaint&quot;);return false}})},getInfo:function(){return{longname:&quot;Gallery Settings&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;&quot;,version:&quot;1.0&quot;}}});tinym
 ce.PluginManager.add(&quot;wpgallery&quot;,tinymce.plugins.wpGallery)})();
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcewptinymcejsgz"></a>
<div class="binary"><h4>Modified: trunk/wp-includes/js/tinymce/wp-tinymce.js.gz</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (22571 => 22572)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2012-11-14 14:26:52 UTC (rev 22571)
+++ trunk/wp-includes/version.php        2012-11-14 15:00:31 UTC (rev 22572)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $wp_version
</span><span class="cx">  */
</span><del>-$wp_version = '3.5-beta3';
</del><ins>+$wp_version = '3.5-beta3-22572';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global string $tinymce_version
</span><span class="cx">  */
</span><del>-$tinymce_version = '357-22551';
</del><ins>+$tinymce_version = '357-22572';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the required PHP version
</span></span></pre>
</div>
</div>

</body>
</html>