<!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>[21899] trunk/wp-includes: Compress scripts/styles: 3.5-alpha-21899.</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/21899">21899</a></dd>
<dt>Author</dt> <dd>bumpbot</dd>
<dt>Date</dt> <dd>2012-09-18 21:59:34 +0000 (Tue, 18 Sep 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Compress scripts/styles: 3.5-alpha-21899.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsmediamodelsminjs">trunk/wp-includes/js/media-models.min.js</a></li>
<li><a href="#trunkwpincludesjsmediaviewsminjs">trunk/wp-includes/js/media-views.min.js</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsmediamodelsminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/media-models.min.js (21898 => 21899)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/media-models.min.js        2012-09-18 21:42:29 UTC (rev 21898)
+++ trunk/wp-includes/js/media-models.min.js        2012-09-18 21:59:34 UTC (rev 21899)
</span><span class="lines">@@ -1 +1 @@
</span><del>-if(typeof wp===&quot;undefined&quot;){var wp={}}(function(d){var c,b,a;media=wp.media=function(e){if(media.controller.Workflow){return new media.controller.Workflow(e).attach().render()}};_.extend(media,{model:{},view:{},controller:{}});_.extend(media,{template:_.memoize(function(f){var e;return function(g){e=e||_.template(d(&quot;#tmpl-&quot;+f).html());return e(g)}}),post:function(f,e){return media.ajax({data:_.isObject(f)?f:_.extend(e||{},{action:f})})},ajax:function(f,e){if(_.isObject(f)){e=f}else{e=e||{};e.data=_.extend(e.data||{},{action:f})}e=_.defaults(e||{},{type:&quot;POST&quot;,url:ajaxurl,context:this});return d.Deferred(function(g){if(e.success){g.done(e.success)}if(e.error){g.fail(e.error)}delete e.success;delete e.error;d.ajax(e).done(function(h){if(_.isObject(h)&amp;&amp;!_.isUndefined(h.success)){g[h.success?&quot;resolveWith&quot;:&quot;rejectWith&quot;](this,[h.data])}else{g.rejectWith(this,[h])}}).fail(function(){g.rejectWith(this,arguments)})
 }).promise()}});c=media.model.Attachment=Backbone.Model.extend({sync:function(g,f,e){if(&quot;read&quot;===g){e=e||{};e.context=this;e.data=_.extend(e.data||{},{action:&quot;get-attachment&quot;,id:this.id});return media.ajax(e)}else{return Backbone.sync.apply(this,arguments)}},parse:function(f,e){f.date=new Date(f.date);f.modified=new Date(f.modified);return f}},{create:function(e){return b.all.push(e)},get:_.memoize(function(f,e){return b.all.push(e||{id:f})})});b=media.model.Attachments=Backbone.Collection.extend({model:c,initialize:function(f,e){e=e||{};this.filters=e.filters||{};if(e.observe){this.observe(e.observe)}if(e.mirror){this.mirror(e.mirror)}},validator:function(e){return _.all(this.filters,function(f){return !!f.call(this,e)},this)},validate:function(f,e){return this[this.validator(f)?&quot;add&quot;:&quot;remove&quot;](f,e)},observe:function(e){e.on(&quot;add change&quot;,this.validate,this)},unobserve:function(e){e.off(&quot;add change&quot;,this.validate,th
 is)},mirror:function(e){if(this.mirroring&amp;&amp;this.mirroring===e){return}this.unmirror();this.mirroring=e;this.reset(e.models);e.on(&quot;add&quot;,this._mirrorAdd,this);e.on(&quot;remove&quot;,this._mirrorRemove,this);e.on(&quot;reset&quot;,this._mirrorReset,this)},unmirror:function(){if(!this.mirroring){return}this.mirroring.off(&quot;add&quot;,this._mirrorAdd,this);this.mirroring.off(&quot;remove&quot;,this._mirrorRemove,this);this.mirroring.off(&quot;reset&quot;,this._mirrorReset,this);delete this.mirroring},_mirrorAdd:function(g,e,f){this.add(g,{at:f.index})},_mirrorRemove:function(e){this.remove(e)},_mirrorReset:function(e){this.reset(e.models)},more:function(e){if(this.mirroring&amp;&amp;this.mirroring.more){return this.mirroring.more(e)}},parse:function(f,e){return _.map(f,function(g){var h=c.get(g.id);return h.set(h.parse(g,e))})}});b.all=new b();media.query=(function(){var e=[];return function(g,f){g=_.defaults(g||{},a.defaultArgs);var h=_.find(e,function(i){r
 eturn _.isEqual(i.args,g)});if(!h){h=new a([],_.extend(f||{},{args:g}));e.push(h)}return h}}());a=media.model.Query=b.extend({initialize:function(h,e){var f,g=a.defaultArgs;e=e||{};b.prototype.initialize.apply(this,arguments);this.args=_.defaults(e.args||{},g);this.args.order=this.args.order.toUpperCase();if(&quot;DESC&quot;!==this.args.order&amp;&amp;&quot;ASC&quot;!==this.args.order){this.args.order=g.order.toUpperCase()}f={allowed:[&quot;name&quot;,&quot;author&quot;,&quot;date&quot;,&quot;title&quot;,&quot;modified&quot;,&quot;parent&quot;,&quot;ID&quot;],keymap:{ID:&quot;id&quot;,parent:&quot;uploadedTo&quot;}};if(!_.contains(f.allowed,this.args.orderby)){this.args.orderby=g.orderby}this.orderkey=f.keymap[this.args.orderby]||this.args.orderby;this.hasMore=true;this.created=new Date();this.filters.order=function(i){if(this.length){return 1!==this.comparator(i,this.last())}else{if(&quot;DESC&quot;===this.args.order&amp;&amp;(&quot;date&quot;===this.orderkey||&quot;modifie
 d&quot;===this.orderkey)){return i.get(this.orderkey)&gt;=this.created}}return false};if(this.args.s){this.filters.search=function(i){return _.any([&quot;title&quot;,&quot;filename&quot;,&quot;description&quot;,&quot;caption&quot;,&quot;name&quot;],function(j){var k=i.get(j);return k&amp;&amp;-1!==k.search(this.args.s)},this)}}this.observe(b.all)},more:function(e){var f=this;if(!this.hasMore){return}e=e||{};e.add=true;return this.fetch(e).done(function(g){if(_.isEmpty(g)||g.length&lt;this.args.posts_per_page){f.hasMore=false}})},sync:function(h,f,e){var g;if(&quot;read&quot;===h){e=e||{};e.context=this;e.data=_.extend(e.data||{},{action:&quot;query-attachments&quot;});args=_.clone(this.args);args.paged=Math.floor(this.length/args.posts_per_page)+1;e.data.query=args;return media.ajax(e)}else{g=b.prototype.sync?b.prototype:Backbone;return g.sync.apply(this,arguments)}},comparator:(function(){var e=function(g,f,h,i){if(_.isEqual(g,f)){return h===i?0:(h&gt;i?-1:1)}else{return g&
 gt;f?-1:1}};return function(h,g){var i=this.orderkey,f=this.args.order,j=h.cid,k=g.cid;h=h.get(i);g=g.get(i);if(&quot;date&quot;===i||&quot;modified&quot;===i){h=h||new Date();g=g||new Date()}return(&quot;DESC&quot;===f)?e(h,g,j,k):e(g,h,k,j)}}())},{defaultArgs:{posts_per_page:40,orderby:&quot;date&quot;,order:&quot;DESC&quot;}})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+if(typeof wp===&quot;undefined&quot;){var wp={}}(function(e){var c,b,a,d;media=wp.media=function(f){if(media.controller.Workflow){return new media.controller.Workflow(f).attach().render()}};_.extend(media,{model:{},view:{},controller:{}});d=function(g,f,h,i){if(_.isEqual(g,f)){return h===i?0:(h&gt;i?-1:1)}else{return g&gt;f?-1:1}};_.extend(media,{template:_.memoize(function(g){var f;return function(h){f=f||_.template(e(&quot;#tmpl-&quot;+g).html());return f(h)}}),post:function(g,f){return media.ajax({data:_.isObject(g)?g:_.extend(f||{},{action:g})})},ajax:function(g,f){if(_.isObject(g)){f=g}else{f=f||{};f.data=_.extend(f.data||{},{action:g})}f=_.defaults(f||{},{type:&quot;POST&quot;,url:ajaxurl,context:this});return e.Deferred(function(h){if(f.success){h.done(f.success)}if(f.error){h.fail(f.error)}delete f.success;delete f.error;e.ajax(f).done(function(i){if(_.isObject(i)&amp;&amp;!_.isUndefined(i.success)){h[i.success?&quot;resolveWith&quot;:&quot;rejectWith&quo
 t;](this,[i.data])}else{h.rejectWith(this,[i])}}).fail(function(){h.rejectWith(this,arguments)})}).promise()}});c=media.model.Attachment=Backbone.Model.extend({sync:function(h,g,f){if(&quot;read&quot;===h){f=f||{};f.context=this;f.data=_.extend(f.data||{},{action:&quot;get-attachment&quot;,id:this.id});return media.ajax(f)}else{return Backbone.sync.apply(this,arguments)}},parse:function(g,f){g.date=new Date(g.date);g.modified=new Date(g.modified);return g}},{create:function(f){return b.all.push(f)},get:_.memoize(function(g,f){return b.all.push(f||{id:g})})});b=media.model.Attachments=Backbone.Collection.extend({model:c,initialize:function(g,f){f=f||{};this.props=new Backbone.Model();this.filters=f.filters||{};this.props.on(&quot;change:order&quot;,this._changeOrder,this);this.props.on(&quot;change:orderby&quot;,this._changeOrderby,this);this.props.on(&quot;change:query&quot;,this._changeQuery,this);this.props.on(&quot;change:search&quot;,this._changeSearch,this);this.props.s
 et(_.defaults(f.props||{},{order:&quot;DESC&quot;}));if(f.observe){this.observe(f.observe)}},_changeOrder:function(g,f){if(this.comparator){this.sort()}},_changeOrderby:function(f,g){if(this.comparator&amp;&amp;this.comparator!==b.comparator){return}if(g){this.comparator=b.comparator}else{delete this.comparator}},_changeQuery:function(f,g){if(g){this.props.on(&quot;change&quot;,this._requery,this);this._requery()}else{this.props.off(&quot;change&quot;,this._requery,this)}},_changeSearch:function(f,g){if(this.props.get(&quot;search&quot;)===g){return}if(g&amp;&amp;!this.filters.search){this.filters.search=b.filters.search}else{if(!g&amp;&amp;this.filters.search===b.filters.search){delete this.filters.search}}if(!this.props.get(&quot;source&quot;)){this.props.set(&quot;source&quot;,new b(this.models))}this.reset(this.props.get(&quot;source&quot;).filter(this.validator))},validator:function(f){return _.all(this.filters,function(h,g){return !!h.call(this,f)},this)},validate:func
 tion(g,f){return this[this.validator(g)?&quot;add&quot;:&quot;remove&quot;](g,f)},observe:function(f){f.on(&quot;add change&quot;,this.validate,this)},unobserve:function(f){f.off(&quot;add change&quot;,this.validate,this)},mirror:function(f){if(this.mirroring&amp;&amp;this.mirroring===f){return}this.unmirror();this.mirroring=f;this.reset(f.models);f.on(&quot;add&quot;,this._mirrorAdd,this);f.on(&quot;remove&quot;,this._mirrorRemove,this);f.on(&quot;reset&quot;,this._mirrorReset,this)},unmirror:function(){if(!this.mirroring){return}this.mirroring.off(&quot;add&quot;,this._mirrorAdd,this);this.mirroring.off(&quot;remove&quot;,this._mirrorRemove,this);this.mirroring.off(&quot;reset&quot;,this._mirrorReset,this);delete this.mirroring},_mirrorAdd:function(h,f,g){this.add(h,{at:g.index})},_mirrorRemove:function(f){this.remove(f)},_mirrorReset:function(f){this.reset(f.models)},more:function(f){if(this.mirroring&amp;&amp;this.mirroring.more){return this.mirroring.more(f)}},parse:fun
 ction(g,f){return _.map(g,function(h){var i=c.get(h.id);return i.set(i.parse(h,f))})},_requery:function(){if(this.props.get(&quot;query&quot;)){this.mirror(a.get(this.props.toJSON()))}}},{comparator:function(h,g){var i=this.props.get(&quot;orderby&quot;),f=this.props.get(&quot;order&quot;),j=h.cid,k=g.cid;h=h.get(i);g=g.get(i);if(&quot;date&quot;===i||&quot;modified&quot;===i){h=h||new Date();g=g||new Date()}return(&quot;DESC&quot;===f)?d(h,g,j,k):d(g,h,k,j)},filters:{search:function(f){if(!this.searching){return true}return _.any([&quot;title&quot;,&quot;filename&quot;,&quot;description&quot;,&quot;caption&quot;,&quot;name&quot;],function(g){var h=f.get(g);return h&amp;&amp;-1!==h.search(this.searching)},this)}}});b.all=new b();media.query=function(f){return new b(null,{props:_.extend(_.defaults(f||{},{orderby:&quot;date&quot;}),{query:true})})};a=media.model.Query=b.extend({initialize:function(g,f){f=f||{};b.prototype.initialize.apply(this,arguments);this.args=f.args;this.
 hasMore=true;this.created=new Date();this.filters.order=function(h){if(!this.comparator){return true}if(this.length){return 1!==this.comparator(h,this.last())}else{if(&quot;DESC&quot;===this.args.order&amp;&amp;(&quot;date&quot;===this.args.orderby||&quot;modified&quot;===this.args.orderby)){return h.get(this.args.orderby)&gt;=this.created}}return false};this.observe(b.all)},more:function(f){var g=this;if(!this.hasMore){return}f=f||{};f.add=true;return this.fetch(f).done(function(h){if(_.isEmpty(h)||h.length&lt;this.args.posts_per_page){g.hasMore=false}})},sync:function(i,g,f){var h;if(&quot;read&quot;===i){f=f||{};f.context=this;f.data=_.extend(f.data||{},{action:&quot;query-attachments&quot;});args=_.clone(this.args);args.paged=Math.floor(this.length/args.posts_per_page)+1;f.data.query=args;return media.ajax(f)}else{h=b.prototype.sync?b.prototype:Backbone;return h.sync.apply(this,arguments)}}},{defaultArgs:{posts_per_page:40,orderby:&quot;date&quot;,order:&quot;DESC&quot;}
 ,orderby:{allowed:[&quot;name&quot;,&quot;author&quot;,&quot;date&quot;,&quot;title&quot;,&quot;modified&quot;,&quot;parent&quot;,&quot;ID&quot;],keymap:{id:&quot;ID&quot;,uploadedTo:&quot;parent&quot;}},propmap:{search:&quot;s&quot;},get:(function(){var f=[];return function(i,h){var g={},k=a.orderby,l=a.defaultArgs,j;_.each(i,function(m,n){g[a.propmap[n]||n]=m});_.defaults(g,l);g.order=g.order.toUpperCase();if(&quot;DESC&quot;!==g.order&amp;&amp;&quot;ASC&quot;!==g.order){g.order=l.order.toUpperCase()}g.orderby=k.keymap[g.orderby]||g.orderby;if(!_.contains(k.allowed,g.orderby)){g.orderby=l.orderby}j=_.find(f,function(m){return _.isEqual(m.args,g)});if(!j){j=new a([],_.extend(h||{},{args:g}));f.push(j)}return j}}())})}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsmediaviewsminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/media-views.min.js (21898 => 21899)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/media-views.min.js        2012-09-18 21:42:29 UTC (rev 21898)
+++ trunk/wp-includes/js/media-views.min.js        2012-09-18 21:59:34 UTC (rev 21899)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(d){var e=wp.media,c=e.model.Attachment,b=e.model.Attachments,a=e.model.Query;e.controller.Workflow=Backbone.Model.extend({defaults:{multiple:false,view:&quot;library&quot;},initialize:function(){this.createSelection();this._views={};this._pending={};this.modal=new e.view.Modal({controller:this});this.add(&quot;library&quot;,e.view.Workspace)},add:function(g,f){this.remove(g);if(_.isFunction(f)){f={view:f}}this._pending[g]=f;this.trigger(&quot;add add:&quot;+g,f);return this},view:function(g){var f;g=g||this.get(&quot;view&quot;);f=this._pending[g];if(!this._views[g]&amp;&amp;f){this._views[g]=new f.view(_.extend({controller:this},f.options||{}));delete this._pending[g];this.trigger(&quot;init init:&quot;+g,this._views[g])}return this._views[g]},remove:function(f){delete this._views[f];delete this._pending[f];this.trigger(&quot;remove remove:&quot;+f);return this},render:function(h,g){var f;h=h||this.get(&quot;view&quot;);if(g){this.add(h,g)}f=this.view(
 h);if(!f){return}f.render();this.modal.content(f);return this},createSelection:function(){var f=this;this.selection=new b();_.extend(this.selection,{add:function(h,g){if(!f.get(&quot;multiple&quot;)){h=_.isArray(h)?_.first(h):h;this.clear(g)}return b.prototype.add.call(this,h,g)},clear:function(g){return this.remove(this.models,g)},reset:function(h,g){return this.clear(g).add(h,g)},has:function(g){return !!(this.getByCid(g.cid)||this.get(g.id))}})}});_.each([&quot;attach&quot;,&quot;detach&quot;,&quot;open&quot;,&quot;close&quot;],function(f){e.controller.Workflow.prototype[f]=function(){this.modal[f].apply(this.modal,arguments);return this}});e.view.Modal=Backbone.View.extend({tagName:&quot;div&quot;,template:e.template(&quot;media-modal&quot;),events:{&quot;click .media-modal-backdrop, .media-modal-close&quot;:&quot;closeHandler&quot;},initialize:function(){this.controller=this.options.controller;_.defaults(this.options,{title:&quot;&quot;,container:document.body})},render
 :function(){this.options.$content=this.options.$content||d(&quot;&lt;div /&gt;&quot;);this.options.$content.detach();this.$el.html(this.template(this.options));this.$(&quot;.media-modal-content&quot;).append(this.options.$content);return this},attach:function(){this.$el.appendTo(this.options.container)},detach:function(){this.$el.detach()},open:function(){this.$el.show()},close:function(){this.$el.hide()},closeHandler:function(f){f.preventDefault();this.close()},content:function(f){this.options.$content=(f instanceof Backbone.View)?f.$el:f;return this.render()},title:function(f){this.options.title=f;return this.render()}});e.view.Toolbar=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;media-toolbar&quot;,initialize:function(){this._views={};this.$primary=d('&lt;div class=&quot;media-toolbar-primary&quot; /&gt;').prependTo(this.$el);this.$secondary=d('&lt;div class=&quot;media-toolbar-secondary&quot; /&gt;').prependTo(this.$el);if(this.options.items){_.each(this
 .options.items,function(f,g){this.add(g,f,{silent:true})},this);this.render()}},render:function(){var f=_.chain(this._views).sortBy(function(g){return g.options.priority||10}).groupBy(function(g){return(g.options.priority||10)&gt;0?&quot;primary&quot;:&quot;secondary&quot;}).value();d(_.pluck(this._views,&quot;el&quot;)).detach();this.$primary.html(_.pluck(f.primary,&quot;el&quot;));this.$secondary.html(_.pluck(f.secondary,&quot;el&quot;));return this},add:function(h,f,g){if(!(f instanceof Backbone.View)){f.classes=[h].concat(f.classes||[]);f=new e.view.Button(f).render()}this._views[h]=f;if(!g||!g.silent){this.render()}return this},remove:function(g,f){delete this._views[g];if(!f||!f.silent){this.render()}return this}});e.view.Button=Backbone.View.extend({tagName:&quot;a&quot;,className:&quot;media-button&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;click&quot;},initialize:function(){_.defaults(this.options,{style:&quot;secondary&quot;,text:&quot;&quot;,classes
 :[]})},render:function(){var f=[this.className];if(this.options.style){f.push(&quot;button-&quot;+this.options.style)}f=f.concat(this.options.classes);this.el.className=f.join(&quot; &quot;);this.$el.text(this.options.text);return this},click:function(f){f.preventDefault();if(this.options.click){this.options.click.apply(this,arguments)}}});e.view.Workspace=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;media-workspace&quot;,template:e.template(&quot;media-workspace&quot;),events:{dragenter:&quot;maybeInitUploader&quot;,mouseenter:&quot;maybeInitUploader&quot;},initialize:function(){this.controller=this.options.controller;_.defaults(this.options,{selectOne:false,uploader:{}});this.$content=d('&lt;div class=&quot;existing-attachments&quot; /&gt;');if(this.controller.get(&quot;multiple&quot;)){this.initToolbarView()}this.attachmentsView=new e.view.Attachments({controller:this.controller,directions:&quot;Select stuff.&quot;,collection:new b(null,{mirror:e.query()}
 )});this.$content.append(this.attachmentsView.$el);wp.Uploader.queue.on(&quot;add remove reset change:percent&quot;,this.renderUploadProgress,this)},render:function(){this.attachmentsView.render();this.renderUploadProgress();this.$el.html(this.template(this.options)).append(this.$content);this.$bar=this.$(&quot;.upload-attachments .media-progress-bar div&quot;);return this},maybeInitUploader:function(){var f=this;if(this.uploader||!this.$el.closest(&quot;body&quot;).length){return}this.uploader=new wp.Uploader(_.extend({container:this.$el,dropzone:this.$el,browser:this.$(&quot;.upload-attachments a&quot;)},this.options.uploader))},renderUploadProgress:function(){var f=wp.Uploader.queue;this.$el.toggleClass(&quot;uploading&quot;,!!f.length);if(!this.$bar||!f.length){return}this.$bar.width((f.reduce(function(g,h){if(h.get(&quot;uploading&quot;)){return g+(h.get(&quot;percent&quot;)||0)}else{return g+100}},0)/f.length)+&quot;%&quot;)},initToolbarView:function(){this.toolbarView
 =new e.view.Toolbar({items:{&quot;selection-preview&quot;:new e.view.SelectionPreview({controller:this.controller,collection:this.controller.selection,priority:-40}),&quot;insert-into-post&quot;:{style:&quot;primary&quot;,text:&quot;Insert into post&quot;,priority:40},&quot;create-new-gallery&quot;:{style:&quot;primary&quot;,text:&quot;Create a new gallery&quot;,priority:30},&quot;add-to-gallery&quot;:{text:&quot;Add to gallery&quot;,priority:20}}});this.controller.selection.on(&quot;add remove&quot;,function(){this.$el.toggleClass(&quot;with-toolbar&quot;,!!this.controller.selection.length)},this);this.$content.append(this.toolbarView.$el)}});e.view.Attachments=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;attachments&quot;,template:e.template(&quot;attachments&quot;),events:{&quot;keyup input&quot;:&quot;search&quot;},initialize:function(){this.controller=this.options.controller;_.defaults(this.options,{refreshSensitivity:200,refreshThreshold:3});_.each([&q
 uot;add&quot;,&quot;remove&quot;],function(f){this.collection.on(f,function(i,g,h){this[f](i,h.index)},this)},this);this.collection.on(&quot;reset&quot;,this.refresh,this);this.$list=d(&quot;&lt;ul /&gt;&quot;);this.list=this.$list[0];this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value();this.$list.on(&quot;scroll.attachments&quot;,this.scroll)},render:function(){this.$el.html(this.template(this.options)).append(this.$list);this.refresh();return this},refresh:function(){if(!this.collection.length){this.collection.more();this.$list.empty();return this}this.$list.html(this.collection.map(function(f){return new e.view.Attachment({controller:this.controller,model:f}).render().$el},this));this.scroll();return this},add:function(i,g){var f,h;f=new e.view.Attachment({controller:this.controller,model:i}).render();h=this.$list.children();if(h.length&gt;g){h.eq(g).before(f.$el)}else{this.$list.append(f.$el)}},remove:function(h,f){var g=this.$lis
 t.children();if(g.length){g.eq(f).detach()}},scroll:function(f){if(!this.$list.is(&quot;:visible&quot;)){return}if(this.list.scrollHeight&lt;this.list.scrollTop+(this.list.clientHeight*this.options.refreshThreshold)){this.collection.more()}},search:function(g){var f=_.clone(this.collection.mirroring.args);if(f.s===g.target.value){return}if(g.target.value){f.s=g.target.value}else{delete f.s}this.collection.mirror(e.query(f))}});e.view.Attachment=Backbone.View.extend({tagName:&quot;li&quot;,className:&quot;attachment&quot;,template:e.template(&quot;attachment&quot;),events:{click:&quot;toggleSelection&quot;},initialize:function(){this.controller=this.options.controller;this.model.on(&quot;change:sizes change:uploading&quot;,this.render,this);this.model.on(&quot;change:percent&quot;,this.progress,this);this.model.on(&quot;add&quot;,this.select,this);this.model.on(&quot;remove&quot;,this.deselect,this)},render:function(){var g=this.model.toJSON(),f={thumbnail:&quot;image&quot;==
 =g.type?g.url:g.icon,uploading:g.uploading,orientation:g.orientation||&quot;landscape&quot;,type:g.type,subtype:g.subtype};if(g.sizes&amp;&amp;g.sizes.medium){f.orientation=g.sizes.medium.orientation;f.thumbnail=g.sizes.medium.url}this.$el.html(this.template(f));if(g.uploading){this.$bar=this.$(&quot;.media-progress-bar div&quot;)}else{delete this.$bar}if(this.controller.selection.has(this.model)){this.select()}return this},progress:function(){if(this.$bar&amp;&amp;this.$bar.length){this.$bar.width(this.model.get(&quot;percent&quot;)+&quot;%&quot;)}},toggleSelection:function(g){var f=this.controller.selection;f[f.has(this.model)?&quot;remove&quot;:&quot;add&quot;](this.model)},select:function(f,g){if(g&amp;&amp;g!==this.controller.selection){return}this.$el.addClass(&quot;selected&quot;)},deselect:function(f,g){if(g&amp;&amp;g!==this.controller.selection){return}this.$el.removeClass(&quot;selected&quot;)}});e.view.SelectionPreview=Backbone.View.extend({tagName:&quot;div&quot
 ;,className:&quot;selection-preview&quot;,template:e.template(&quot;media-selection-preview&quot;),events:{&quot;click .clear-selection&quot;:&quot;clear&quot;},initialize:function(){this.controller=this.options.controller;this.collection.on(&quot;add change:url remove&quot;,this.render,this);this.render()},render:function(){var f={},i,h,g;if(!this.collection.length){this.$el.empty();return this}f.count=this.collection.length;i=this.collection.first();h=i.get(&quot;sizes&quot;);if(&quot;image&quot;===i.get(&quot;type&quot;)){f.thumbnail=(h&amp;&amp;h.thumbnail)?h.thumbnail.url:i.get(&quot;url&quot;)}else{f.thumbnail=i.get(&quot;icon&quot;)}this.$el.html(this.template(f));return this},clear:function(f){f.preventDefault();this.collection.clear()}})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(d){var e=wp.media,c=e.model.Attachment,b=e.model.Attachments,a=e.model.Query;e.controller.Workflow=Backbone.Model.extend({defaults:{multiple:false,view:&quot;library&quot;},initialize:function(){this.createSelection();this._views={};this._pending={};this.modal=new e.view.Modal({controller:this});this.add(&quot;library&quot;,e.view.Workspace)},add:function(g,f){this.remove(g);if(_.isFunction(f)){f={view:f}}this._pending[g]=f;this.trigger(&quot;add add:&quot;+g,f);return this},view:function(g){var f;g=g||this.get(&quot;view&quot;);f=this._pending[g];if(!this._views[g]&amp;&amp;f){this._views[g]=new f.view(_.extend({controller:this},f.options||{}));delete this._pending[g];this.trigger(&quot;init init:&quot;+g,this._views[g])}return this._views[g]},remove:function(f){delete this._views[f];delete this._pending[f];this.trigger(&quot;remove remove:&quot;+f);return this},render:function(h,g){var f;h=h||this.get(&quot;view&quot;);if(g){this.add(h,g)}f=this.view(
 h);if(!f){return}f.render();this.modal.content(f);return this},createSelection:function(){var f=this;this.selection=new b();_.extend(this.selection,{add:function(h,g){if(!f.get(&quot;multiple&quot;)){h=_.isArray(h)?_.first(h):h;this.clear(g)}return b.prototype.add.call(this,h,g)},clear:function(g){return this.remove(this.models,g)},reset:function(h,g){return this.clear(g).add(h,g)},has:function(g){return !!(this.getByCid(g.cid)||this.get(g.id))}})}});_.each([&quot;attach&quot;,&quot;detach&quot;,&quot;open&quot;,&quot;close&quot;],function(f){e.controller.Workflow.prototype[f]=function(){this.modal[f].apply(this.modal,arguments);return this}});e.view.Modal=Backbone.View.extend({tagName:&quot;div&quot;,template:e.template(&quot;media-modal&quot;),events:{&quot;click .media-modal-backdrop, .media-modal-close&quot;:&quot;closeHandler&quot;},initialize:function(){this.controller=this.options.controller;_.defaults(this.options,{title:&quot;&quot;,container:document.body})},render
 :function(){this.options.$content=this.options.$content||d(&quot;&lt;div /&gt;&quot;);this.options.$content.detach();this.$el.html(this.template(this.options));this.$(&quot;.media-modal-content&quot;).append(this.options.$content);return this},attach:function(){this.$el.appendTo(this.options.container)},detach:function(){this.$el.detach()},open:function(){this.$el.show()},close:function(){this.$el.hide()},closeHandler:function(f){f.preventDefault();this.close()},content:function(f){this.options.$content=(f instanceof Backbone.View)?f.$el:f;return this.render()},title:function(f){this.options.title=f;return this.render()}});e.view.Toolbar=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;media-toolbar&quot;,initialize:function(){this._views={};this.$primary=d('&lt;div class=&quot;media-toolbar-primary&quot; /&gt;').prependTo(this.$el);this.$secondary=d('&lt;div class=&quot;media-toolbar-secondary&quot; /&gt;').prependTo(this.$el);if(this.options.items){_.each(this
 .options.items,function(f,g){this.add(g,f,{silent:true})},this);this.render()}},render:function(){var f=_.chain(this._views).sortBy(function(g){return g.options.priority||10}).groupBy(function(g){return(g.options.priority||10)&gt;0?&quot;primary&quot;:&quot;secondary&quot;}).value();d(_.pluck(this._views,&quot;el&quot;)).detach();this.$primary.html(_.pluck(f.primary,&quot;el&quot;));this.$secondary.html(_.pluck(f.secondary,&quot;el&quot;));return this},add:function(h,f,g){if(!(f instanceof Backbone.View)){f.classes=[h].concat(f.classes||[]);f=new e.view.Button(f).render()}this._views[h]=f;if(!g||!g.silent){this.render()}return this},remove:function(g,f){delete this._views[g];if(!f||!f.silent){this.render()}return this}});e.view.Button=Backbone.View.extend({tagName:&quot;a&quot;,className:&quot;media-button&quot;,attributes:{href:&quot;#&quot;},events:{click:&quot;click&quot;},initialize:function(){_.defaults(this.options,{style:&quot;secondary&quot;,text:&quot;&quot;,classes
 :[]})},render:function(){var f=[this.className];if(this.options.style){f.push(&quot;button-&quot;+this.options.style)}f=f.concat(this.options.classes);this.el.className=f.join(&quot; &quot;);this.$el.text(this.options.text);return this},click:function(f){f.preventDefault();if(this.options.click){this.options.click.apply(this,arguments)}}});e.view.Workspace=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;media-workspace&quot;,template:e.template(&quot;media-workspace&quot;),events:{dragenter:&quot;maybeInitUploader&quot;,mouseenter:&quot;maybeInitUploader&quot;},initialize:function(){this.controller=this.options.controller;_.defaults(this.options,{selectOne:false,uploader:{}});this.$content=d('&lt;div class=&quot;existing-attachments&quot; /&gt;');if(this.controller.get(&quot;multiple&quot;)){this.initToolbarView()}this.attachmentsView=new e.view.Attachments({controller:this.controller,directions:&quot;Select stuff.&quot;,collection:e.query()});this.$content.app
 end(this.attachmentsView.$el);wp.Uploader.queue.on(&quot;add remove reset change:percent&quot;,this.renderUploadProgress,this)},render:function(){this.attachmentsView.render();this.renderUploadProgress();this.$el.html(this.template(this.options)).append(this.$content);this.$bar=this.$(&quot;.upload-attachments .media-progress-bar div&quot;);return this},maybeInitUploader:function(){var f=this;if(this.uploader||!this.$el.closest(&quot;body&quot;).length){return}this.uploader=new wp.Uploader(_.extend({container:this.$el,dropzone:this.$el,browser:this.$(&quot;.upload-attachments a&quot;)},this.options.uploader))},renderUploadProgress:function(){var f=wp.Uploader.queue;this.$el.toggleClass(&quot;uploading&quot;,!!f.length);if(!this.$bar||!f.length){return}this.$bar.width((f.reduce(function(g,h){if(h.get(&quot;uploading&quot;)){return g+(h.get(&quot;percent&quot;)||0)}else{return g+100}},0)/f.length)+&quot;%&quot;)},initToolbarView:function(){this.toolbarView=new e.view.Toolbar({
 items:{&quot;selection-preview&quot;:new e.view.SelectionPreview({controller:this.controller,collection:this.controller.selection,priority:-40}),&quot;insert-into-post&quot;:{style:&quot;primary&quot;,text:&quot;Insert into post&quot;,priority:40},&quot;create-new-gallery&quot;:{style:&quot;primary&quot;,text:&quot;Create a new gallery&quot;,priority:30},&quot;add-to-gallery&quot;:{text:&quot;Add to gallery&quot;,priority:20}}});this.controller.selection.on(&quot;add remove&quot;,function(){this.$el.toggleClass(&quot;with-toolbar&quot;,!!this.controller.selection.length)},this);this.$content.append(this.toolbarView.$el)}});e.view.Attachments=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;attachments&quot;,template:e.template(&quot;attachments&quot;),events:{&quot;keyup input&quot;:&quot;search&quot;},initialize:function(){this.controller=this.options.controller;_.defaults(this.options,{refreshSensitivity:200,refreshThreshold:3});_.each([&quot;add&quot;,&quot;r
 emove&quot;],function(f){this.collection.on(f,function(i,g,h){this[f](i,h.index)},this)},this);this.collection.on(&quot;reset&quot;,this.refresh,this);this.$list=d(&quot;&lt;ul /&gt;&quot;);this.list=this.$list[0];this.scroll=_.chain(this.scroll).bind(this).throttle(this.options.refreshSensitivity).value();this.$list.on(&quot;scroll.attachments&quot;,this.scroll)},render:function(){this.$el.html(this.template(this.options)).append(this.$list);this.refresh();return this},refresh:function(){if(!this.collection.length){this.collection.more();this.$list.empty();return this}this.$list.html(this.collection.map(function(f){return new e.view.Attachment({controller:this.controller,model:f}).render().$el},this));this.scroll();return this},add:function(i,g){var f,h;f=new e.view.Attachment({controller:this.controller,model:i}).render();h=this.$list.children();if(h.length&gt;g){h.eq(g).before(f.$el)}else{this.$list.append(f.$el)}},remove:function(h,f){var g=this.$list.children();if(g.len
 gth){g.eq(f).detach()}},scroll:function(f){if(!this.$list.is(&quot;:visible&quot;)){return}if(this.list.scrollHeight&lt;this.list.scrollTop+(this.list.clientHeight*this.options.refreshThreshold)){this.collection.more()}},search:function(g){var f=this.collection.props;if(g.target.value){f.set(&quot;search&quot;,g.target.value)}else{f.unset(&quot;search&quot;)}}});e.view.Attachment=Backbone.View.extend({tagName:&quot;li&quot;,className:&quot;attachment&quot;,template:e.template(&quot;attachment&quot;),events:{click:&quot;toggleSelection&quot;},initialize:function(){this.controller=this.options.controller;this.model.on(&quot;change:sizes change:uploading&quot;,this.render,this);this.model.on(&quot;change:percent&quot;,this.progress,this);this.model.on(&quot;add&quot;,this.select,this);this.model.on(&quot;remove&quot;,this.deselect,this)},render:function(){var g=this.model.toJSON(),f={thumbnail:&quot;image&quot;===g.type?g.url:g.icon,uploading:g.uploading,orientation:g.orientati
 on||&quot;landscape&quot;,type:g.type,subtype:g.subtype};if(g.sizes&amp;&amp;g.sizes.medium){f.orientation=g.sizes.medium.orientation;f.thumbnail=g.sizes.medium.url}this.$el.html(this.template(f));if(g.uploading){this.$bar=this.$(&quot;.media-progress-bar div&quot;)}else{delete this.$bar}if(this.controller.selection.has(this.model)){this.select()}return this},progress:function(){if(this.$bar&amp;&amp;this.$bar.length){this.$bar.width(this.model.get(&quot;percent&quot;)+&quot;%&quot;)}},toggleSelection:function(g){var f=this.controller.selection;f[f.has(this.model)?&quot;remove&quot;:&quot;add&quot;](this.model)},select:function(f,g){if(g&amp;&amp;g!==this.controller.selection){return}this.$el.addClass(&quot;selected&quot;)},deselect:function(f,g){if(g&amp;&amp;g!==this.controller.selection){return}this.$el.removeClass(&quot;selected&quot;)}});e.view.SelectionPreview=Backbone.View.extend({tagName:&quot;div&quot;,className:&quot;selection-preview&quot;,template:e.template(&quo
 t;media-selection-preview&quot;),events:{&quot;click .clear-selection&quot;:&quot;clear&quot;},initialize:function(){this.controller=this.options.controller;this.collection.on(&quot;add change:url remove&quot;,this.render,this);this.render()},render:function(){var f={},i,h,g;if(!this.collection.length){this.$el.empty();return this}f.count=this.collection.length;i=this.collection.first();h=i.get(&quot;sizes&quot;);if(&quot;image&quot;===i.get(&quot;type&quot;)){f.thumbnail=(h&amp;&amp;h.thumbnail)?h.thumbnail.url:i.get(&quot;url&quot;)}else{f.thumbnail=i.get(&quot;icon&quot;)}this.$el.html(this.template(f));return this},clear:function(f){f.preventDefault();this.collection.clear()}})}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (21898 => 21899)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2012-09-18 21:42:29 UTC (rev 21898)
+++ trunk/wp-includes/version.php        2012-09-18 21:59:34 UTC (rev 21899)
</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-alpha-21895';
</del><ins>+$wp_version = '3.5-alpha-21899';
</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></pre>
</div>
</div>

</body>
</html>