<!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>[23047] trunk/wp-includes: Compress scripts/styles: 3.5-RC3-23047.</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/23047">23047</a></dd>
<dt>Author</dt> <dd>bumpbot</dd>
<dt>Date</dt> <dd>2012-12-04 22:44:27 +0000 (Tue, 04 Dec 2012)</dd>
</dl>

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

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsmediamodelsminjs">trunk/wp-includes/js/media-models.min.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswordpresseditor_pluginjs">trunk/wp-includes/js/tinymce/plugins/wordpress/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="trunkwpincludesjsmediamodelsminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/media-models.min.js (23046 => 23047)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/media-models.min.js        2012-12-04 22:42:26 UTC (rev 23046)
+++ trunk/wp-includes/js/media-models.min.js        2012-12-04 22:44:27 UTC (rev 23047)
</span><span class="lines">@@ -1 +1 @@
</span><del>-window.wp=window.wp||{};(function(f){var d,c,a,e,b,g;g=wp.media=function(h){var i=g.view.MediaFrame,j;if(!i){return}h=_.defaults(h||{},{frame:&quot;select&quot;});if(&quot;select&quot;===h.frame&amp;&amp;i.Select){j=new i.Select(h)}else{if(&quot;post&quot;===h.frame&amp;&amp;i.Post){j=new i.Post(h)}}delete h.frame;return j};_.extend(g,{model:{},view:{},controller:{}});b=g.model.l10n=typeof _wpMediaModelsL10n===&quot;undefined&quot;?{}:_wpMediaModelsL10n;g.model.settings=b.settings||{};delete b.settings;e=function(i,h,j,k){if(_.isEqual(i,h)){return j===k?0:(j&gt;k?-1:1)}else{return i&gt;h?-1:1}};_.extend(g,{template:_.memoize(function(j){var i,h={evaluate:/&lt;#([\s\S]+?)#&gt;/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:&quot;data&quot;};return function(k){i=i||_.template(f(&quot;#tmpl-&quot;+j).html(),null,h);return i(k)}}),post:function(i,h){return g.ajax({data:_.isObject(i)?i:_.extend(h||{},{action:i})})},ajax:function(i,h
 ){if(_.isObject(i)){h=i}else{h=h||{};h.data=_.extend(h.data||{},{action:i})}h=_.defaults(h||{},{type:&quot;POST&quot;,url:g.model.settings.ajaxurl,context:this});return f.Deferred(function(j){if(h.success){j.done(h.success)}if(h.error){j.fail(h.error)}delete h.success;delete h.error;f.ajax(h).done(function(k){if(_.isObject(k)&amp;&amp;!_.isUndefined(k.success)){j[k.success?&quot;resolveWith&quot;:&quot;rejectWith&quot;](this,[k.data])}else{j.rejectWith(this,[k])}}).fail(function(){j.rejectWith(this,arguments)})}).promise()},fit:function(l){var i=l.width,h=l.height,k=l.maxWidth,j=l.maxHeight,m;if(!_.isUndefined(k)&amp;&amp;!_.isUndefined(j)){m=(i/h&gt;k/j)?&quot;width&quot;:&quot;height&quot;}else{if(_.isUndefined(j)){m=&quot;width&quot;}else{if(_.isUndefined(k)&amp;&amp;h&gt;j){m=&quot;height&quot;}}}if(&quot;width&quot;===m&amp;&amp;i&gt;k){return{width:k,height:Math.round(k*h/i)}}else{if(&quot;height&quot;===m&amp;&amp;h&gt;j){return{width:Math.round(j*i/h),height:j}}else{
 return{width:i,height:h}}}},truncate:function(h,j,i){j=j||30;i=i||&quot;&amp;hellip;&quot;;if(h.length&lt;=j){return h}return h.substr(0,j/2)+i+h.substr(-1*j/2)}});d=g.model.Attachment=Backbone.Model.extend({sync:function(j,i,h){if(_.isUndefined(this.id)){return f.Deferred().rejectWith(this).promise()}if(&quot;read&quot;===j){h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:&quot;get-attachment&quot;,id:this.id});return g.ajax(h)}else{if(&quot;update&quot;===j){if(!this.get(&quot;nonces&quot;)||!this.get(&quot;nonces&quot;).update){return f.Deferred().rejectWith(this).promise()}h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:&quot;save-attachment&quot;,id:this.id,nonce:this.get(&quot;nonces&quot;).update,post_id:g.model.settings.post.id});if(h.changes){_.each(h.changes,function(l,k){h.changes[k]=this.get(k)},this);h.data.changes=h.changes;delete h.changes}return g.ajax(h)}else{if(&quot;delete&quot;===j){h=h||{};h.context=this;h.data=_.extend(h.data||{},{ac
 tion:&quot;delete-post&quot;,id:this.id,_wpnonce:this.get(&quot;nonces&quot;)[&quot;delete&quot;]});return g.ajax(h)}}}},parse:function(i,h){if(!i){return i}i.date=new Date(i.date);i.modified=new Date(i.modified);return i},saveCompat:function(j,i){var h=this;if(!this.get(&quot;nonces&quot;)||!this.get(&quot;nonces&quot;).update){return f.Deferred().rejectWith(this).promise()}return g.post(&quot;save-attachment-compat&quot;,_.defaults({id:this.id,nonce:this.get(&quot;nonces&quot;).update,post_id:g.model.settings.post.id},j)).done(function(m,k,l){h.set(h.parse(m,l),i)})}},{create:function(h){return c.all.push(h)},get:_.memoize(function(i,h){return c.all.push(h||{id:i})})});c=g.model.Attachments=Backbone.Collection.extend({model:d,initialize:function(i,h){h=h||{};this.props=new Backbone.Model();this.filters=h.filters||{};this.props.on(&quot;change&quot;,this._changeFilteredProps,this);this.props.on(&quot;change:order&quot;,this._changeOrder,this);this.props.on(&quot;change:orde
 rby&quot;,this._changeOrderby,this);this.props.on(&quot;change:query&quot;,this._changeQuery,this);this.props.set(_.defaults(h.props||{}));if(h.observe){this.observe(h.observe)}},_changeOrder:function(i,h){if(this.comparator){this.sort()}},_changeOrderby:function(h,i){if(this.comparator&amp;&amp;this.comparator!==c.comparator){return}if(i&amp;&amp;&quot;post__in&quot;!==i){this.comparator=c.comparator}else{delete this.comparator}},_changeQuery:function(h,i){if(i){this.props.on(&quot;change&quot;,this._requery,this);this._requery()}else{this.props.off(&quot;change&quot;,this._requery,this)}},_changeFilteredProps:function(i,h){if(this.props.get(&quot;query&quot;)){return}var j=_.chain(h.changes).map(function(l,n){var m=c.filters[n],k=i.get(n);if(!m){return}if(k&amp;&amp;!this.filters[n]){this.filters[n]=m}else{if(!k&amp;&amp;this.filters[n]===m){delete this.filters[n]}else{return}}return true},this).any().value();if(!j){return}if(!this._source){this._source=new c(this.models)}
 this.reset(this._source.filter(this.validator,this))},validator:function(h){return _.all(this.filters,function(j,i){return !!j.call(this,h)},this)},validate:function(k,i){var j=this.validator(k),h=!!this.getByCid(k.cid);if(!j&amp;&amp;h){this.remove(k,i)}else{if(j&amp;&amp;!h){this.add(k,i)}}return this},validateAll:function(h,i){i=i||{};_.each(h.models,function(j){this.validate(j,{silent:true})},this);if(!i.silent){this.trigger(&quot;reset&quot;,this,i)}return this},observe:function(h){this.observers=this.observers||[];this.observers.push(h);h.on(&quot;add change remove&quot;,this._validateHandler,this);h.on(&quot;reset&quot;,this._validateAllHandler,this);this.validateAll(h);return this},unobserve:function(h){if(h){h.off(null,null,this);this.observers=_.without(this.observers,h)}else{_.each(this.observers,function(i){i.off(null,null,this)},this);delete this.observers}return this},_validateHandler:function(j,h,i){i=h===this.mirroring?i:{silent:i&amp;&amp;i.silent};return th
 is.validate(j,i)},_validateAllHandler:function(h,i){return this.validateAll(h,i)},mirror:function(h){if(this.mirroring&amp;&amp;this.mirroring===h){return this}this.unmirror();this.mirroring=h;this.reset([],{silent:true});this.observe(h);return this},unmirror:function(){if(!this.mirroring){return}this.unobserve(this.mirroring);delete this.mirroring},more:function(j){var i=f.Deferred(),k=this.mirroring,h=this;if(!k||!k.more){return i.resolveWith(this).promise()}k.more(j).done(function(){if(this===h.mirroring){i.resolveWith(this)}});return i.promise()},hasMore:function(){return this.mirroring?this.mirroring.hasMore():false},parse:function(i,h){return _.map(i,function(j){var k=d.get(j.id);return k.set(k.parse(j,h))})},_requery:function(){if(this.props.get(&quot;query&quot;)){this.mirror(a.get(this.props.toJSON()))}},saveMenuOrder:function(){if(&quot;menuOrder&quot;!==this.props.get(&quot;orderby&quot;)){return}var h=this.chain().filter(function(i){return !_.isUndefined(i.id)}).
 map(function(j,i){i=i+1;j.set(&quot;menuOrder&quot;,i);return[j.id,i]}).object().value();if(_.isEmpty(h)){return}return g.post(&quot;save-attachment-order&quot;,{nonce:g.model.settings.post.nonce,post_id:g.model.settings.post.id,attachments:h})}},{comparator:function(j,i,k){var l=this.props.get(&quot;orderby&quot;),h=this.props.get(&quot;order&quot;)||&quot;DESC&quot;,m=j.cid,n=i.cid;j=j.get(l);i=i.get(l);if(&quot;date&quot;===l||&quot;modified&quot;===l){j=j||new Date();i=i||new Date()}if(k&amp;&amp;k.ties){m=n=null}return(&quot;DESC&quot;===h)?e(j,i,m,n):e(i,j,n,m)},filters:{search:function(h){if(!this.props.get(&quot;search&quot;)){return true}return _.any([&quot;title&quot;,&quot;filename&quot;,&quot;description&quot;,&quot;caption&quot;,&quot;name&quot;],function(i){var j=h.get(i);return j&amp;&amp;-1!==j.search(this.props.get(&quot;search&quot;))},this)},type:function(i){var h=this.props.get(&quot;type&quot;);return !h||-1!==h.indexOf(i.get(&quot;type&quot;))},uploaded
 To:function(i){var h=this.props.get(&quot;uploadedTo&quot;);if(_.isUndefined(h)){return true}return h===i.get(&quot;uploadedTo&quot;)}}});c.all=new c();g.query=function(h){return new c(null,{props:_.extend(_.defaults(h||{},{orderby:&quot;date&quot;}),{query:true})})};a=g.model.Query=c.extend({initialize:function(j,h){var i;h=h||{};c.prototype.initialize.apply(this,arguments);this.args=h.args;this._hasMore=true;this.created=new Date();this.filters.order=function(m){var l=this.props.get(&quot;orderby&quot;),k=this.props.get(&quot;order&quot;);if(!this.comparator){return true}if(this.length){return 1!==this.comparator(m,this.last(),{ties:true})}else{if(&quot;DESC&quot;===k&amp;&amp;(&quot;date&quot;===l||&quot;modified&quot;===l)){return m.get(l)&gt;=this.created}else{if(&quot;ASC&quot;===k&amp;&amp;&quot;menuOrder&quot;===l){return m.get(l)===0}}}return false};i=[&quot;s&quot;,&quot;order&quot;,&quot;orderby&quot;,&quot;posts_per_page&quot;,&quot;post_mime_type&quot;,&quot;pos
 t_parent&quot;];if(wp.Uploader&amp;&amp;_(this.args).chain().keys().difference(i).isEmpty().value()){this.observe(wp.Uploader.queue)}},hasMore:function(){return this._hasMore},more:function(h){var i=this;if(this._more&amp;&amp;&quot;pending&quot;===this._more.state()){return this._more}if(!this.hasMore()){return f.Deferred().resolveWith(this).promise()}h=h||{};h.add=true;return this._more=this.fetch(h).done(function(j){if(_.isEmpty(j)||-1===this.args.posts_per_page||j.length&lt;this.args.posts_per_page){i._hasMore=false}})},sync:function(k,i,h){var j;if(&quot;read&quot;===k){h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:&quot;query-attachments&quot;,post_id:g.model.settings.post.id});args=_.clone(this.args);if(-1!==args.posts_per_page){args.paged=Math.floor(this.length/args.posts_per_page)+1}h.data.query=args;return g.ajax(h)}else{j=c.prototype.sync?c.prototype:Backbone;return j.sync.apply(this,arguments)}}},{defaultProps:{orderby:&quot;date&quot;,order:&quot;DES
 C&quot;},defaultArgs:{posts_per_page:40},orderby:{allowed:[&quot;name&quot;,&quot;author&quot;,&quot;date&quot;,&quot;title&quot;,&quot;modified&quot;,&quot;uploadedTo&quot;,&quot;id&quot;,&quot;post__in&quot;,&quot;menuOrder&quot;],valuemap:{id:&quot;ID&quot;,uploadedTo:&quot;parent&quot;,menuOrder:&quot;menu_order ID&quot;}},propmap:{search:&quot;s&quot;,type:&quot;post_mime_type&quot;,perPage:&quot;posts_per_page&quot;,menuOrder:&quot;menu_order&quot;,uploadedTo:&quot;post_parent&quot;},get:(function(){var h=[];return function(k,j){var i={},m=a.orderby,n=a.defaultProps,l;delete k.query;_.defaults(k,n);k.order=k.order.toUpperCase();if(&quot;DESC&quot;!==k.order&amp;&amp;&quot;ASC&quot;!==k.order){k.order=n.order.toUpperCase()}if(!_.contains(m.allowed,k.orderby)){k.orderby=n.orderby}_.each(k,function(o,p){if(_.isNull(o)){return}i[a.propmap[p]||p]=o});_.defaults(i,a.defaultArgs);i.orderby=m.valuemap[k.orderby]||k.orderby;l=_.find(h,function(o){return _.isEqual(o.args,i)});if
 (!l){l=new a([],_.extend(j||{},{props:k,args:i}));h.push(l)}return l}}())});g.model.Selection=c.extend({initialize:function(i,h){c.prototype.initialize.apply(this,arguments);this.multiple=h&amp;&amp;h.multiple;this.on(&quot;add remove reset&quot;,_.bind(this.single,this,false))},add:function(i,h){if(!this.multiple){this.remove(this.models)}return c.prototype.add.call(this,i,h)},single:function(h){var i=this._single;if(h){this._single=h}if(this._single&amp;&amp;!this.getByCid(this._single.cid)){delete this._single}this._single=this._single||this.last();if(this._single!==i){if(i){i.trigger(&quot;selection:unsingle&quot;,i,this)}if(this._single){this._single.trigger(&quot;selection:single&quot;,this._single,this)}}return this._single}});f(window).on(&quot;unload&quot;,function(){window.wp=null})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+window.wp=window.wp||{};(function(f){var d,c,a,e,b,g;g=wp.media=function(h){var i=g.view.MediaFrame,j;if(!i){return}h=_.defaults(h||{},{frame:&quot;select&quot;});if(&quot;select&quot;===h.frame&amp;&amp;i.Select){j=new i.Select(h)}else{if(&quot;post&quot;===h.frame&amp;&amp;i.Post){j=new i.Post(h)}}delete h.frame;return j};_.extend(g,{model:{},view:{},controller:{}});b=g.model.l10n=typeof _wpMediaModelsL10n===&quot;undefined&quot;?{}:_wpMediaModelsL10n;g.model.settings=b.settings||{};delete b.settings;e=function(i,h,j,k){if(_.isEqual(i,h)){return j===k?0:(j&gt;k?-1:1)}else{return i&gt;h?-1:1}};_.extend(g,{template:_.memoize(function(j){var i,h={evaluate:/&lt;#([\s\S]+?)#&gt;/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:&quot;data&quot;};return function(k){i=i||_.template(f(&quot;#tmpl-&quot;+j).html(),null,h);return i(k)}}),post:function(i,h){return g.ajax({data:_.isObject(i)?i:_.extend(h||{},{action:i})})},ajax:function(i,h
 ){if(_.isObject(i)){h=i}else{h=h||{};h.data=_.extend(h.data||{},{action:i})}h=_.defaults(h||{},{type:&quot;POST&quot;,url:g.model.settings.ajaxurl,context:this});return f.Deferred(function(j){if(h.success){j.done(h.success)}if(h.error){j.fail(h.error)}delete h.success;delete h.error;f.ajax(h).done(function(k){if(_.isObject(k)&amp;&amp;!_.isUndefined(k.success)){j[k.success?&quot;resolveWith&quot;:&quot;rejectWith&quot;](this,[k.data])}else{j.rejectWith(this,[k])}}).fail(function(){j.rejectWith(this,arguments)})}).promise()},fit:function(l){var i=l.width,h=l.height,k=l.maxWidth,j=l.maxHeight,m;if(!_.isUndefined(k)&amp;&amp;!_.isUndefined(j)){m=(i/h&gt;k/j)?&quot;width&quot;:&quot;height&quot;}else{if(_.isUndefined(j)){m=&quot;width&quot;}else{if(_.isUndefined(k)&amp;&amp;h&gt;j){m=&quot;height&quot;}}}if(&quot;width&quot;===m&amp;&amp;i&gt;k){return{width:k,height:Math.round(k*h/i)}}else{if(&quot;height&quot;===m&amp;&amp;h&gt;j){return{width:Math.round(j*i/h),height:j}}else{
 return{width:i,height:h}}}},truncate:function(h,j,i){j=j||30;i=i||&quot;&amp;hellip;&quot;;if(h.length&lt;=j){return h}return h.substr(0,j/2)+i+h.substr(-1*j/2)}});d=g.model.Attachment=Backbone.Model.extend({sync:function(j,i,h){if(_.isUndefined(this.id)){return f.Deferred().rejectWith(this).promise()}if(&quot;read&quot;===j){h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:&quot;get-attachment&quot;,id:this.id});return g.ajax(h)}else{if(&quot;update&quot;===j){if(!this.get(&quot;nonces&quot;)||!this.get(&quot;nonces&quot;).update){return f.Deferred().rejectWith(this).promise()}h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:&quot;save-attachment&quot;,id:this.id,nonce:this.get(&quot;nonces&quot;).update,post_id:g.model.settings.post.id});if(h.changes){_.each(h.changes,function(l,k){h.changes[k]=this.get(k)},this);h.data.changes=h.changes;delete h.changes}return g.ajax(h)}else{if(&quot;delete&quot;===j){h=h||{};h.context=this;h.data=_.extend(h.data||{},{ac
 tion:&quot;delete-post&quot;,id:this.id,_wpnonce:this.get(&quot;nonces&quot;)[&quot;delete&quot;]});return g.ajax(h)}}}},parse:function(i,h){if(!i){return i}i.date=new Date(i.date);i.modified=new Date(i.modified);return i},saveCompat:function(j,i){var h=this;if(!this.get(&quot;nonces&quot;)||!this.get(&quot;nonces&quot;).update){return f.Deferred().rejectWith(this).promise()}return g.post(&quot;save-attachment-compat&quot;,_.defaults({id:this.id,nonce:this.get(&quot;nonces&quot;).update,post_id:g.model.settings.post.id},j)).done(function(m,k,l){h.set(h.parse(m,l),i)})}},{create:function(h){return c.all.push(h)},get:_.memoize(function(i,h){return c.all.push(h||{id:i})})});c=g.model.Attachments=Backbone.Collection.extend({model:d,initialize:function(i,h){h=h||{};this.props=new Backbone.Model();this.filters=h.filters||{};this.props.on(&quot;change&quot;,this._changeFilteredProps,this);this.props.on(&quot;change:order&quot;,this._changeOrder,this);this.props.on(&quot;change:orde
 rby&quot;,this._changeOrderby,this);this.props.on(&quot;change:query&quot;,this._changeQuery,this);this.props.set(_.defaults(h.props||{}));if(h.observe){this.observe(h.observe)}},_changeOrder:function(i,h){if(this.comparator){this.sort()}},_changeOrderby:function(h,i){if(this.comparator&amp;&amp;this.comparator!==c.comparator){return}if(i&amp;&amp;&quot;post__in&quot;!==i){this.comparator=c.comparator}else{delete this.comparator}},_changeQuery:function(h,i){if(i){this.props.on(&quot;change&quot;,this._requery,this);this._requery()}else{this.props.off(&quot;change&quot;,this._requery,this)}},_changeFilteredProps:function(i,h){if(this.props.get(&quot;query&quot;)){return}var j=_.chain(h.changes).map(function(l,n){var m=c.filters[n],k=i.get(n);if(!m){return}if(k&amp;&amp;!this.filters[n]){this.filters[n]=m}else{if(!k&amp;&amp;this.filters[n]===m){delete this.filters[n]}else{return}}return true},this).any().value();if(!j){return}if(!this._source){this._source=new c(this.models)}
 this.reset(this._source.filter(this.validator,this))},validator:function(h){return _.all(this.filters,function(j,i){return !!j.call(this,h)},this)},validate:function(k,i){var j=this.validator(k),h=!!this.getByCid(k.cid);if(!j&amp;&amp;h){this.remove(k,i)}else{if(j&amp;&amp;!h){this.add(k,i)}}return this},validateAll:function(h,i){i=i||{};_.each(h.models,function(j){this.validate(j,{silent:true})},this);if(!i.silent){this.trigger(&quot;reset&quot;,this,i)}return this},observe:function(h){this.observers=this.observers||[];this.observers.push(h);h.on(&quot;add change remove&quot;,this._validateHandler,this);h.on(&quot;reset&quot;,this._validateAllHandler,this);this.validateAll(h);return this},unobserve:function(h){if(h){h.off(null,null,this);this.observers=_.without(this.observers,h)}else{_.each(this.observers,function(i){i.off(null,null,this)},this);delete this.observers}return this},_validateHandler:function(j,h,i){i=h===this.mirroring?i:{silent:i&amp;&amp;i.silent};return th
 is.validate(j,i)},_validateAllHandler:function(h,i){return this.validateAll(h,i)},mirror:function(h){if(this.mirroring&amp;&amp;this.mirroring===h){return this}this.unmirror();this.mirroring=h;this.reset([],{silent:true});this.observe(h);return this},unmirror:function(){if(!this.mirroring){return}this.unobserve(this.mirroring);delete this.mirroring},more:function(j){var i=f.Deferred(),k=this.mirroring,h=this;if(!k||!k.more){return i.resolveWith(this).promise()}k.more(j).done(function(){if(this===h.mirroring){i.resolveWith(this)}});return i.promise()},hasMore:function(){return this.mirroring?this.mirroring.hasMore():false},parse:function(i,h){return _.map(i,function(j){var k=d.get(j.id);return k.set(k.parse(j,h))})},_requery:function(){if(this.props.get(&quot;query&quot;)){this.mirror(a.get(this.props.toJSON()))}},saveMenuOrder:function(){if(&quot;menuOrder&quot;!==this.props.get(&quot;orderby&quot;)){return}var h=this.chain().filter(function(i){return !_.isUndefined(i.id)}).
 map(function(j,i){i=i+1;j.set(&quot;menuOrder&quot;,i);return[j.id,i]}).object().value();if(_.isEmpty(h)){return}return g.post(&quot;save-attachment-order&quot;,{nonce:g.model.settings.post.nonce,post_id:g.model.settings.post.id,attachments:h})}},{comparator:function(j,i,k){var l=this.props.get(&quot;orderby&quot;),h=this.props.get(&quot;order&quot;)||&quot;DESC&quot;,m=j.cid,n=i.cid;j=j.get(l);i=i.get(l);if(&quot;date&quot;===l||&quot;modified&quot;===l){j=j||new Date();i=i||new Date()}if(k&amp;&amp;k.ties){m=n=null}return(&quot;DESC&quot;===h)?e(j,i,m,n):e(i,j,n,m)},filters:{search:function(h){if(!this.props.get(&quot;search&quot;)){return true}return _.any([&quot;title&quot;,&quot;filename&quot;,&quot;description&quot;,&quot;caption&quot;,&quot;name&quot;],function(i){var j=h.get(i);return j&amp;&amp;-1!==j.search(this.props.get(&quot;search&quot;))},this)},type:function(i){var h=this.props.get(&quot;type&quot;);return !h||-1!==h.indexOf(i.get(&quot;type&quot;))},uploaded
 To:function(i){var h=this.props.get(&quot;uploadedTo&quot;);if(_.isUndefined(h)){return true}return h===i.get(&quot;uploadedTo&quot;)}}});c.all=new c();g.query=function(h){return new c(null,{props:_.extend(_.defaults(h||{},{orderby:&quot;date&quot;}),{query:true})})};a=g.model.Query=c.extend({initialize:function(j,h){var i;h=h||{};c.prototype.initialize.apply(this,arguments);this.args=h.args;this._hasMore=true;this.created=new Date();this.filters.order=function(m){var l=this.props.get(&quot;orderby&quot;),k=this.props.get(&quot;order&quot;);if(!this.comparator){return true}if(this.length){return 1!==this.comparator(m,this.last(),{ties:true})}else{if(&quot;DESC&quot;===k&amp;&amp;(&quot;date&quot;===l||&quot;modified&quot;===l)){return m.get(l)&gt;=this.created}else{if(&quot;ASC&quot;===k&amp;&amp;&quot;menuOrder&quot;===l){return m.get(l)===0}}}return false};i=[&quot;s&quot;,&quot;order&quot;,&quot;orderby&quot;,&quot;posts_per_page&quot;,&quot;post_mime_type&quot;,&quot;pos
 t_parent&quot;];if(wp.Uploader&amp;&amp;_(this.args).chain().keys().difference(i).isEmpty().value()){this.observe(wp.Uploader.queue)}},hasMore:function(){return this._hasMore},more:function(h){var i=this;if(this._more&amp;&amp;&quot;pending&quot;===this._more.state()){return this._more}if(!this.hasMore()){return f.Deferred().resolveWith(this).promise()}h=h||{};h.add=true;return this._more=this.fetch(h).done(function(j){if(_.isEmpty(j)||-1===this.args.posts_per_page||j.length&lt;this.args.posts_per_page){i._hasMore=false}})},sync:function(k,i,h){var j;if(&quot;read&quot;===k){h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:&quot;query-attachments&quot;,post_id:g.model.settings.post.id});args=_.clone(this.args);if(-1!==args.posts_per_page){args.paged=Math.floor(this.length/args.posts_per_page)+1}h.data.query=args;return g.ajax(h)}else{j=c.prototype.sync?c.prototype:Backbone;return j.sync.apply(this,arguments)}}},{defaultProps:{orderby:&quot;date&quot;,order:&quot;DES
 C&quot;},defaultArgs:{posts_per_page:40},orderby:{allowed:[&quot;name&quot;,&quot;author&quot;,&quot;date&quot;,&quot;title&quot;,&quot;modified&quot;,&quot;uploadedTo&quot;,&quot;id&quot;,&quot;post__in&quot;,&quot;menuOrder&quot;],valuemap:{id:&quot;ID&quot;,uploadedTo:&quot;parent&quot;,menuOrder:&quot;menu_order ID&quot;}},propmap:{search:&quot;s&quot;,type:&quot;post_mime_type&quot;,perPage:&quot;posts_per_page&quot;,menuOrder:&quot;menu_order&quot;,uploadedTo:&quot;post_parent&quot;},get:(function(){var h=[];return function(k,j){var i={},m=a.orderby,n=a.defaultProps,l;delete k.query;_.defaults(k,n);k.order=k.order.toUpperCase();if(&quot;DESC&quot;!==k.order&amp;&amp;&quot;ASC&quot;!==k.order){k.order=n.order.toUpperCase()}if(!_.contains(m.allowed,k.orderby)){k.orderby=n.orderby}_.each(k,function(o,p){if(_.isNull(o)){return}i[a.propmap[p]||p]=o});_.defaults(i,a.defaultArgs);i.orderby=m.valuemap[k.orderby]||k.orderby;l=_.find(h,function(o){return _.isEqual(o.args,i)});if
 (!l){l=new a([],_.extend(j||{},{props:k,args:i}));h.push(l)}return l}}())});g.model.Selection=c.extend({initialize:function(i,h){c.prototype.initialize.apply(this,arguments);this.multiple=h&amp;&amp;h.multiple;this.on(&quot;add remove reset&quot;,_.bind(this.single,this,false))},add:function(i,h){if(!this.multiple){this.remove(this.models)}return c.prototype.add.call(this,i,h)},single:function(h){var i=this._single;if(h){this._single=h}if(this._single&amp;&amp;!this.getByCid(this._single.cid)){delete this._single}this._single=this._single||this.last();if(this._single!==i){if(i){i.trigger(&quot;selection:unsingle&quot;,i,this);if(!this.getByCid(i.cid)){this.trigger(&quot;selection:unsingle&quot;,i,this)}}if(this._single){this._single.trigger(&quot;selection:single&quot;,this._single,this)}}return this._single}});f(window).on(&quot;unload&quot;,function(){window.wp=null})}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswordpresseditor_pluginjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js (23046 => 23047)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2012-12-04 22:42:26 UTC (rev 23046)
+++ trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js        2012-12-04 22:44:27 UTC (rev 23047)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{init:function(f,c){var j=this,e=f.getParam(&quot;wordpress_adv_toolbar&quot;,&quot;toolbar2&quot;),i=0,d,b,h,g;d='&lt;img src=&quot;'+c+'/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+f.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+c+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+f.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';if(getUserSetting(&quot;hidetb&quot;,&quot;0&quot;)==&quot;1&quot;){f.settings.wordpress_adv_hidden=0}f.onPostRender.add(function(){var k=f.controlManager.get(e);if(f.getParam(&quot;wordpress_adv_hidden&quot;,1)&amp;&amp;k){a.hide(k.id);j._resizeIframe(f,e,28)}});f.addCommand(&quot;WP_More&quot;,function(){f.execCommand(&quot;mceInsertContent&quot;,0,d)});f.addCommand(&quot;WP_Page&quot;,function(){f.execCommand(&quot;mceInsertContent&quot;,0,b
 )});f.addCommand(&quot;WP_Help&quot;,function(){f.windowManager.open({url:tinymce.baseURL+&quot;/wp-mce-help.php&quot;,width:450,height:420,inline:1})});f.addCommand(&quot;WP_Adv&quot;,function(){var k=f.controlManager,l=k.get(e).id;if(&quot;undefined&quot;==l){return}if(a.isHidden(l)){k.setActive(&quot;wp_adv&quot;,1);a.show(l);j._resizeIframe(f,e,-28);f.settings.wordpress_adv_hidden=0;setUserSetting(&quot;hidetb&quot;,&quot;1&quot;)}else{k.setActive(&quot;wp_adv&quot;,0);a.hide(l);j._resizeIframe(f,e,28);f.settings.wordpress_adv_hidden=1;setUserSetting(&quot;hidetb&quot;,&quot;0&quot;)}});f.addCommand(&quot;WP_Medialib&quot;,function(){if(typeof wp!==&quot;undefined&quot;&amp;&amp;wp.media&amp;&amp;wp.media.editor){wp.media.editor.open(f.id)}});f.addButton(&quot;wp_more&quot;,{title:&quot;wordpress.wp_more_desc&quot;,cmd:&quot;WP_More&quot;});f.addButton(&quot;wp_page&quot;,{title:&quot;wordpress.wp_page_desc&quot;,image:c+&quot;/img/page.gif&quot;,cmd:&quot;WP_Page&quot;}
 );f.addButton(&quot;wp_help&quot;,{title:&quot;wordpress.wp_help_desc&quot;,cmd:&quot;WP_Help&quot;});f.addButton(&quot;wp_adv&quot;,{title:&quot;wordpress.wp_adv_desc&quot;,cmd:&quot;WP_Adv&quot;});f.addButton(&quot;add_media&quot;,{title:&quot;wordpress.add_media&quot;,image:c+&quot;/img/image.gif&quot;,cmd:&quot;WP_Medialib&quot;});f.onBeforeExecCommand.add(function(r,q,u,p,l){var x=tinymce.DOM,m,k,t,w,v,s;if(&quot;mceFullScreen&quot;==q){if(&quot;mce_fullscreen&quot;!=r.id&amp;&amp;x.select(&quot;a.thickbox&quot;).length){r.settings.theme_advanced_buttons1+=&quot;,|,add_media&quot;}}if(&quot;JustifyLeft&quot;==q||&quot;JustifyRight&quot;==q||&quot;JustifyCenter&quot;==q){m=r.selection.getNode();if(m.nodeName==&quot;IMG&quot;){s=q.substr(7).toLowerCase();v=&quot;align&quot;+s;k=r.dom.getParent(m,&quot;dl.wp-caption&quot;);t=r.dom.getParent(m,&quot;div.mceTemp&quot;);if(k&amp;&amp;t){w=r.dom.hasClass(k,v)?&quot;alignnone&quot;:v;k.className=k.className.replace(/align[^ '&q
 uot;]+\s?/g,&quot;&quot;);r.dom.addClass(k,w);if(w==&quot;aligncenter&quot;){r.dom.addClass(t,&quot;mceIEcenter&quot;)}else{r.dom.removeClass(t,&quot;mceIEcenter&quot;)}l.terminate=true;r.execCommand(&quot;mceRepaint&quot;)}else{if(r.dom.hasClass(m,v)){r.dom.addClass(m,&quot;alignnone&quot;)}else{r.dom.removeClass(m,&quot;alignnone&quot;)}}}}});f.onPreInit.add(function(k){var l=&quot;id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup&quot;,m=l+&quot;|abbr|axis|headers|scope|rowspan|colspan|char|charoff|align|valign|halign|nowrap|bgcolor|width|height&quot;;k.schema.addValidElements(&quot;table[&quot;+l+&quot;|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor]&quot;);k.schema.addValidElements(&quot;tr[&quot;+l+&quot;|align|char|charoff|valign|halign|bgcolor]&quot;);k.schema.addValidElements(&quot;td[&quot;+m+&quot;
 ],th[&quot;+m+&quot;]&quot;);k.schema.addValidElements(&quot;a[&quot;+l+&quot;|href|target|ping|rel|media|type|name]&quot;)});f.onInit.add(function(m){var l=m.getParam(&quot;body_class&quot;,&quot;&quot;),k=m.getBody();if(l){l=l.split(&quot; &quot;)}else{l=[]}if(m.getParam(&quot;directionality&quot;,&quot;&quot;)==&quot;rtl&quot;){l.push(&quot;rtl&quot;)}if(tinymce.isIE9){l.push(&quot;ie9&quot;)}else{if(tinymce.isIE8){l.push(&quot;ie8&quot;)}else{if(tinymce.isIE7){l.push(&quot;ie7&quot;)}}}if(m.id!=&quot;wp_mce_fullscreen&quot;&amp;&amp;m.id!=&quot;mce_fullscreen&quot;){l.push(&quot;wp-editor&quot;)}else{if(m.id==&quot;mce_fullscreen&quot;){l.push(&quot;mce-fullscreen&quot;)}}tinymce.each(l,function(n){if(n){m.dom.addClass(k,n)}});m.onNodeChange.add(function(o,n,q){var p;if(q.nodeName==&quot;IMG&quot;){p=o.dom.getParent(q,&quot;dl.wp-caption&quot;)}else{if(q.nodeName==&quot;DIV&quot;&amp;&amp;o.dom.hasClass(q,&quot;mceTemp&quot;)){p=q.firstChild;if(!o.dom.hasClass(p,&quot;wp
 -caption&quot;)){p=false}}}if(p){if(o.dom.hasClass(p,&quot;alignleft&quot;)){n.setActive(&quot;justifyleft&quot;,1)}else{if(o.dom.hasClass(p,&quot;alignright&quot;)){n.setActive(&quot;justifyright&quot;,1)}else{if(o.dom.hasClass(p,&quot;aligncenter&quot;)){n.setActive(&quot;justifycenter&quot;,1)}}}}});m.onBeforeSetContent.add(function(n,p){if(p.content){p.content=p.content.replace(/&lt;p&gt;\s*&lt;(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)( [^&gt;]*)?&gt;/gi,&quot;&lt;$1$2&gt;&quot;);p.content=p.content.replace(/&lt;\/(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)&gt;\s*&lt;\/p&gt;/gi,&quot;&lt;/$1&gt;&quot;)}})});if(&quot;undefined&quot;!=typeof(jQuery)){f.onKeyUp.add(function(m,n){var l=n.keyCode||n.charCode;if(l==i){return}if(13==l||8==i||46==i){jQuery(document).triggerHandler(&quot;wpcountwords&quot;,[m.getContent({format:&quot;raw&quot;})])}i=l})}f.onSaveContent.addToTop(function(k,l){l.content=l.content.replace(/&lt;p&gt;(&lt;br ?\/?&
 gt;|\u00a0|\uFEFF)?&lt;\/p&gt;/g,&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&quot;)});f.onSaveContent.add(function(k,l){if(k.getParam(&quot;wpautop&quot;,true)&amp;&amp;typeof(switchEditors)==&quot;object&quot;){if(k.isHidden()){l.content=l.element.value}else{l.content=switchEditors.pre_wpautop(l.content)}}});j._handleMoreBreak(f,c);g=&quot;alt+shift&quot;;f.addShortcut(g+&quot;+c&quot;,&quot;justifycenter_desc&quot;,&quot;JustifyCenter&quot;);f.addShortcut(g+&quot;+r&quot;,&quot;justifyright_desc&quot;,&quot;JustifyRight&quot;);f.addShortcut(g+&quot;+l&quot;,&quot;justifyleft_desc&quot;,&quot;JustifyLeft&quot;);f.addShortcut(g+&quot;+j&quot;,&quot;justifyfull_desc&quot;,&quot;JustifyFull&quot;);f.addShortcut(g+&quot;+q&quot;,&quot;blockquote_desc&quot;,&quot;mceBlockQuote&quot;);f.addShortcut(g+&quot;+u&quot;,&quot;bullist_desc&quot;,&quot;InsertUnorderedList&quot;);f.addShortcut(g+&quot;+o&quot;,&quot;numlist_desc&quot;,&quot;InsertOrderedList&quot;);f.addShortcut(g+&quot;+n&quot;
 ,&quot;spellchecker.desc&quot;,&quot;mceSpellCheck&quot;);f.addShortcut(g+&quot;+a&quot;,&quot;link_desc&quot;,&quot;WP_Link&quot;);f.addShortcut(g+&quot;+s&quot;,&quot;unlink_desc&quot;,&quot;unlink&quot;);f.addShortcut(g+&quot;+m&quot;,&quot;image_desc&quot;,&quot;WP_Medialib&quot;);f.addShortcut(g+&quot;+z&quot;,&quot;wordpress.wp_adv_desc&quot;,&quot;WP_Adv&quot;);f.addShortcut(g+&quot;+t&quot;,&quot;wordpress.wp_more_desc&quot;,&quot;WP_More&quot;);f.addShortcut(g+&quot;+d&quot;,&quot;striketrough_desc&quot;,&quot;Strikethrough&quot;);f.addShortcut(g+&quot;+h&quot;,&quot;help_desc&quot;,&quot;WP_Help&quot;);f.addShortcut(g+&quot;+p&quot;,&quot;wordpress.wp_page_desc&quot;,&quot;WP_Page&quot;);f.addShortcut(&quot;ctrl+s&quot;,&quot;save_desc&quot;,function(){if(&quot;function&quot;==typeof autosave){autosave()}});if(/\bwpfullscreen\b/.test(f.settings.plugins)){f.addShortcut(g+&quot;+w&quot;,&quot;wordpress.wp_fullscreen_desc&quot;,&quot;wpFullScreen&quot;)}else{if(/\bful
 lscreen\b/.test(f.settings.plugins)){f.addShortcut(g+&quot;+g&quot;,&quot;fullscreen.desc&quot;,&quot;mceFullScreen&quot;)}}f.onInit.add(function(k){tinymce.dom.Event.add(k.getWin(),&quot;scroll&quot;,function(l){k.plugins.wordpress._hideButtons()});tinymce.dom.Event.add(k.getBody(),&quot;dragstart&quot;,function(l){k.plugins.wordpress._hideButtons()})});f.onBeforeExecCommand.add(function(k,m,l,n){k.plugins.wordpress._hideButtons()});f.onSaveContent.add(function(k,l){k.plugins.wordpress._hideButtons()});f.onMouseDown.add(function(k,l){if(l.target.nodeName!=&quot;IMG&quot;){k.plugins.wordpress._hideButtons()}});h=function(k){var l;if(k.target.id==&quot;mceModalBlocker&quot;||k.target.className==&quot;ui-widget-overlay&quot;){for(l in f.windowManager.windows){f.windowManager.close(null,l)}}};tinymce.dom.Event.remove(document.body,&quot;click&quot;,h);tinymce.dom.Event.add(document.body,&quot;click&quot;,h)},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author
 :&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f);e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;
 block&quot;})},_hideButtons:function(){var b=tinymce.DOM;b.hide(b.select(&quot;#wp_editbtns, #wp_gallerybtns&quot;))},_resizeIframe:function(c,e,b){var d=c.getContentAreaContainer().firstChild;a.setStyle(d,&quot;height&quot;,d.clientHeight+b);c.theme.deltaHeight+=b},_handleMoreBreak:function(c,d){var e,b;e='&lt;img src=&quot;'+d+'/img/trans.gif&quot; alt=&quot;$1&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';c.onPostRender.add(function(){if(c.theme.onResolveName){c.theme.onResolveName.add(function(f,g){if(g.node.nodeName==&quot;IMG&quot;){if(c.dom.hasClass(g.node,&quot;mceWPmore&quot;)){g.name=&quot;wpmore&quot;}if(c.dom.hasClass(g.node,&quot;mceWPnextpage&quot;)){g.name=&quot;wppage&quot;}}})}});c.onBeforeSetContent.add(function(f,
 g){if(g.content){g.content=g.content.replace(/&lt;!--more(.*?)--&gt;/g,e);g.content=g.content.replace(/&lt;!--nextpage--&gt;/g,b)}});c.onPostProcess.add(function(f,g){if(g.get){g.content=g.content.replace(/&lt;img[^&gt;]+&gt;/g,function(i){if(i.indexOf('class=&quot;mceWPmore')!==-1){var h,j=(h=i.match(/alt=&quot;(.*?)&quot;/))?h[1]:&quot;&quot;;i=&quot;&lt;!--more&quot;+j+&quot;--&gt;&quot;}if(i.indexOf('class=&quot;mceWPnextpage')!==-1){i=&quot;&lt;!--nextpage--&gt;&quot;}return i})}});c.onNodeChange.add(function(g,f,h){f.setActive(&quot;wp_page&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPnextpage&quot;));f.setActive(&quot;wp_more&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPmore&quot;))})}});tinymce.PluginManager.add(&quot;wordpress&quot;,tinymce.plugins.WordPress)})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(){var a=tinymce.DOM;tinymce.create(&quot;tinymce.plugins.WordPress&quot;,{init:function(f,c){var j=this,e=f.getParam(&quot;wordpress_adv_toolbar&quot;,&quot;toolbar2&quot;),i=0,d,b,h,g;d='&lt;img src=&quot;'+c+'/img/trans.gif&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+f.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+c+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+f.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';if(getUserSetting(&quot;hidetb&quot;,&quot;0&quot;)==&quot;1&quot;){f.settings.wordpress_adv_hidden=0}f.onPostRender.add(function(){var k=f.controlManager.get(e);if(f.getParam(&quot;wordpress_adv_hidden&quot;,1)&amp;&amp;k){a.hide(k.id);j._resizeIframe(f,e,28)}});f.addCommand(&quot;WP_More&quot;,function(){f.execCommand(&quot;mceInsertContent&quot;,0,d)});f.addCommand(&quot;WP_Page&quot;,function(){f.execCommand(&quot;mceInsertContent&quot;,0,b
 )});f.addCommand(&quot;WP_Help&quot;,function(){f.windowManager.open({url:tinymce.baseURL+&quot;/wp-mce-help.php&quot;,width:450,height:420,inline:1})});f.addCommand(&quot;WP_Adv&quot;,function(){var k=f.controlManager,l=k.get(e).id;if(&quot;undefined&quot;==l){return}if(a.isHidden(l)){k.setActive(&quot;wp_adv&quot;,1);a.show(l);j._resizeIframe(f,e,-28);f.settings.wordpress_adv_hidden=0;setUserSetting(&quot;hidetb&quot;,&quot;1&quot;)}else{k.setActive(&quot;wp_adv&quot;,0);a.hide(l);j._resizeIframe(f,e,28);f.settings.wordpress_adv_hidden=1;setUserSetting(&quot;hidetb&quot;,&quot;0&quot;)}});f.addCommand(&quot;WP_Medialib&quot;,function(){if(typeof wp!==&quot;undefined&quot;&amp;&amp;wp.media&amp;&amp;wp.media.editor){wp.media.editor.open(f.id)}});f.addButton(&quot;wp_more&quot;,{title:&quot;wordpress.wp_more_desc&quot;,cmd:&quot;WP_More&quot;});f.addButton(&quot;wp_page&quot;,{title:&quot;wordpress.wp_page_desc&quot;,image:c+&quot;/img/page.gif&quot;,cmd:&quot;WP_Page&quot;}
 );f.addButton(&quot;wp_help&quot;,{title:&quot;wordpress.wp_help_desc&quot;,cmd:&quot;WP_Help&quot;});f.addButton(&quot;wp_adv&quot;,{title:&quot;wordpress.wp_adv_desc&quot;,cmd:&quot;WP_Adv&quot;});f.addButton(&quot;add_media&quot;,{title:&quot;wordpress.add_media&quot;,image:c+&quot;/img/image.gif&quot;,cmd:&quot;WP_Medialib&quot;});f.onBeforeExecCommand.add(function(r,q,u,p,l){var x=tinymce.DOM,m,k,t,w,v,s;if(&quot;mceFullScreen&quot;==q){if(&quot;mce_fullscreen&quot;!=r.id&amp;&amp;x.select(&quot;a.thickbox&quot;).length){r.settings.theme_advanced_buttons1+=&quot;,|,add_media&quot;}}if(&quot;JustifyLeft&quot;==q||&quot;JustifyRight&quot;==q||&quot;JustifyCenter&quot;==q){m=r.selection.getNode();if(m.nodeName==&quot;IMG&quot;){s=q.substr(7).toLowerCase();v=&quot;align&quot;+s;k=r.dom.getParent(m,&quot;dl.wp-caption&quot;);t=r.dom.getParent(m,&quot;div.mceTemp&quot;);if(k&amp;&amp;t){w=r.dom.hasClass(k,v)?&quot;alignnone&quot;:v;k.className=k.className.replace(/align[^ '&q
 uot;]+\s?/g,&quot;&quot;);r.dom.addClass(k,w);if(w==&quot;aligncenter&quot;){r.dom.addClass(t,&quot;mceIEcenter&quot;)}else{r.dom.removeClass(t,&quot;mceIEcenter&quot;)}l.terminate=true;r.execCommand(&quot;mceRepaint&quot;)}else{if(r.dom.hasClass(m,v)){r.dom.addClass(m,&quot;alignnone&quot;)}else{r.dom.removeClass(m,&quot;alignnone&quot;)}}}}});f.onPreInit.add(function(k){var l=&quot;id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup&quot;,m=l+&quot;|abbr|axis|headers|scope|rowspan|colspan|char|charoff|align|valign|halign|nowrap|bgcolor|width|height&quot;;k.schema.addValidElements(&quot;table[&quot;+l+&quot;|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor]&quot;);k.schema.addValidElements(&quot;tr[&quot;+l+&quot;|align|char|charoff|valign|halign|bgcolor]&quot;);k.schema.addValidElements(&quot;td[&quot;+m+&quot;
 ],th[&quot;+m+&quot;]&quot;);k.schema.addValidElements(&quot;a[&quot;+l+&quot;|href|target|ping|rel|media|type|name]&quot;)});f.onInit.add(function(m){var l=m.getParam(&quot;body_class&quot;,&quot;&quot;),k=m.getBody();if(l){l=l.split(&quot; &quot;)}else{l=[]}if(m.getParam(&quot;directionality&quot;,&quot;&quot;)==&quot;rtl&quot;){l.push(&quot;rtl&quot;)}if(tinymce.isIE9){l.push(&quot;ie9&quot;)}else{if(tinymce.isIE8){l.push(&quot;ie8&quot;)}else{if(tinymce.isIE7){l.push(&quot;ie7&quot;)}}}if(m.id!=&quot;wp_mce_fullscreen&quot;&amp;&amp;m.id!=&quot;mce_fullscreen&quot;){l.push(&quot;wp-editor&quot;)}else{if(m.id==&quot;mce_fullscreen&quot;){l.push(&quot;mce-fullscreen&quot;)}}tinymce.each(l,function(n){if(n){m.dom.addClass(k,n)}});m.onNodeChange.add(function(o,n,q){var p;if(q.nodeName==&quot;IMG&quot;){p=o.dom.getParent(q,&quot;dl.wp-caption&quot;)}else{if(q.nodeName==&quot;DIV&quot;&amp;&amp;o.dom.hasClass(q,&quot;mceTemp&quot;)){p=q.firstChild;if(!o.dom.hasClass(p,&quot;wp
 -caption&quot;)){p=false}}}if(p){if(o.dom.hasClass(p,&quot;alignleft&quot;)){n.setActive(&quot;justifyleft&quot;,1)}else{if(o.dom.hasClass(p,&quot;alignright&quot;)){n.setActive(&quot;justifyright&quot;,1)}else{if(o.dom.hasClass(p,&quot;aligncenter&quot;)){n.setActive(&quot;justifycenter&quot;,1)}}}}});m.onBeforeSetContent.add(function(n,p){if(p.content){p.content=p.content.replace(/&lt;p&gt;\s*&lt;(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)( [^&gt;]*)?&gt;/gi,&quot;&lt;$1$2&gt;&quot;);p.content=p.content.replace(/&lt;\/(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre|address)&gt;\s*&lt;\/p&gt;/gi,&quot;&lt;/$1&gt;&quot;)}})});if(&quot;undefined&quot;!=typeof(jQuery)){f.onKeyUp.add(function(m,n){var l=n.keyCode||n.charCode;if(l==i){return}if(13==l||8==i||46==i){jQuery(document).triggerHandler(&quot;wpcountwords&quot;,[m.getContent({format:&quot;raw&quot;})])}i=l})}f.onSaveContent.addToTop(function(k,l){l.content=l.content.replace(/&lt;p&gt;(&lt;br ?\/?&
 gt;|\u00a0|\uFEFF)?&lt;\/p&gt;/g,&quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&quot;)});f.onSaveContent.add(function(k,l){if(k.getParam(&quot;wpautop&quot;,true)&amp;&amp;typeof(switchEditors)==&quot;object&quot;){if(k.isHidden()){l.content=l.element.value}else{l.content=switchEditors.pre_wpautop(l.content)}}});j._handleMoreBreak(f,c);g=&quot;alt+shift&quot;;f.addShortcut(g+&quot;+c&quot;,&quot;justifycenter_desc&quot;,&quot;JustifyCenter&quot;);f.addShortcut(g+&quot;+r&quot;,&quot;justifyright_desc&quot;,&quot;JustifyRight&quot;);f.addShortcut(g+&quot;+l&quot;,&quot;justifyleft_desc&quot;,&quot;JustifyLeft&quot;);f.addShortcut(g+&quot;+j&quot;,&quot;justifyfull_desc&quot;,&quot;JustifyFull&quot;);f.addShortcut(g+&quot;+q&quot;,&quot;blockquote_desc&quot;,&quot;mceBlockQuote&quot;);f.addShortcut(g+&quot;+u&quot;,&quot;bullist_desc&quot;,&quot;InsertUnorderedList&quot;);f.addShortcut(g+&quot;+o&quot;,&quot;numlist_desc&quot;,&quot;InsertOrderedList&quot;);f.addShortcut(g+&quot;+n&quot;
 ,&quot;spellchecker.desc&quot;,&quot;mceSpellCheck&quot;);f.addShortcut(g+&quot;+a&quot;,&quot;link_desc&quot;,&quot;WP_Link&quot;);f.addShortcut(g+&quot;+s&quot;,&quot;unlink_desc&quot;,&quot;unlink&quot;);f.addShortcut(g+&quot;+m&quot;,&quot;image_desc&quot;,&quot;WP_Medialib&quot;);f.addShortcut(g+&quot;+z&quot;,&quot;wordpress.wp_adv_desc&quot;,&quot;WP_Adv&quot;);f.addShortcut(g+&quot;+t&quot;,&quot;wordpress.wp_more_desc&quot;,&quot;WP_More&quot;);f.addShortcut(g+&quot;+d&quot;,&quot;striketrough_desc&quot;,&quot;Strikethrough&quot;);f.addShortcut(g+&quot;+h&quot;,&quot;help_desc&quot;,&quot;WP_Help&quot;);f.addShortcut(g+&quot;+p&quot;,&quot;wordpress.wp_page_desc&quot;,&quot;WP_Page&quot;);f.addShortcut(&quot;ctrl+s&quot;,&quot;save_desc&quot;,function(){if(&quot;function&quot;==typeof autosave){autosave()}});if(/\bwpfullscreen\b/.test(f.settings.plugins)){f.addShortcut(g+&quot;+w&quot;,&quot;wordpress.wp_fullscreen_desc&quot;,&quot;wpFullScreen&quot;)}else{if(/\bful
 lscreen\b/.test(f.settings.plugins)){f.addShortcut(g+&quot;+g&quot;,&quot;fullscreen.desc&quot;,&quot;mceFullScreen&quot;)}}f.onInit.add(function(k){tinymce.dom.Event.add(k.getWin(),&quot;scroll&quot;,function(l){k.plugins.wordpress._hideButtons()});tinymce.dom.Event.add(k.getBody(),&quot;dragstart&quot;,function(l){k.plugins.wordpress._hideButtons()})});f.onBeforeExecCommand.add(function(k,m,l,n){k.plugins.wordpress._hideButtons()});f.onSaveContent.add(function(k,l){k.plugins.wordpress._hideButtons()});f.onMouseDown.add(function(k,l){if(l.target.nodeName!=&quot;IMG&quot;){k.plugins.wordpress._hideButtons()}});f.onKeyDown.add(function(k,l){if(l.which==tinymce.VK.DELETE||l.which==tinymce.VK.BACKSPACE){k.plugins.wordpress._hideButtons()}});h=function(k){var l;if(k.target.id==&quot;mceModalBlocker&quot;||k.target.className==&quot;ui-widget-overlay&quot;){for(l in f.windowManager.windows){f.windowManager.close(null,l)}}};tinymce.dom.Event.remove(document.body,&quot;click&quot;,h
 );tinymce.dom.Event.add(document.body,&quot;click&quot;,h)},getInfo:function(){return{longname:&quot;WordPress Plugin&quot;,author:&quot;WordPress&quot;,authorurl:&quot;http://wordpress.org&quot;,infourl:&quot;http://wordpress.org&quot;,version:&quot;3.0&quot;}},_setEmbed:function(b){return b.replace(/\[embed\]([\s\S]+?)\[\/embed\][\s\u00a0]*/g,function(d,c){return'&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;'+tinymce.baseURL+'/plugins/wordpress/img/trans.gif&quot; class=&quot;wp-oembed mceItemNoResize&quot; alt=&quot;'+c+'&quot; title=&quot;'+c+'&quot; /&gt;'})},_getEmbed:function(b){return b.replace(/&lt;img[^&gt;]+&gt;/g,function(c){if(c.indexOf('class=&quot;wp-oembed')!=-1){var d=c.match(/alt=&quot;([^\&quot;]+)&quot;/);if(d[1]){c=&quot;[embed]&quot;+d[1]+&quot;[/embed]&quot;}}return c})},_showButtons:function(f,d){var g=tinyMCE.activeEditor,i,h,b,j=tinymce.DOM,e,c;b=g.dom.getViewPort(g.getWin());i=j.getPos(g.getContentAreaContainer());h=g.dom.getPos(f
 );e=Math.max(h.x-b.x,0)+i.x;c=Math.max(h.y-b.y,0)+i.y;j.setStyles(d,{top:c+5+&quot;px&quot;,left:e+5+&quot;px&quot;,display:&quot;block&quot;})},_hideButtons:function(){var b=tinymce.DOM;b.hide(b.select(&quot;#wp_editbtns, #wp_gallerybtns&quot;))},_resizeIframe:function(c,e,b){var d=c.getContentAreaContainer().firstChild;a.setStyle(d,&quot;height&quot;,d.clientHeight+b);c.theme.deltaHeight+=b},_handleMoreBreak:function(c,d){var e,b;e='&lt;img src=&quot;'+d+'/img/trans.gif&quot; alt=&quot;$1&quot; class=&quot;mceWPmore mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_more_alt&quot;)+'&quot; /&gt;';b='&lt;img src=&quot;'+d+'/img/trans.gif&quot; class=&quot;mceWPnextpage mceItemNoResize&quot; title=&quot;'+c.getLang(&quot;wordpress.wp_page_alt&quot;)+'&quot; /&gt;';c.onPostRender.add(function(){if(c.theme.onResolveName){c.theme.onResolveName.add(function(f,g){if(g.node.nodeName==&quot;IMG&quot;){if(c.dom.hasClass(g.node,&quot;mceWPmore&quot;)){g.name=&quot;wpmor
 e&quot;}if(c.dom.hasClass(g.node,&quot;mceWPnextpage&quot;)){g.name=&quot;wppage&quot;}}})}});c.onBeforeSetContent.add(function(f,g){if(g.content){g.content=g.content.replace(/&lt;!--more(.*?)--&gt;/g,e);g.content=g.content.replace(/&lt;!--nextpage--&gt;/g,b)}});c.onPostProcess.add(function(f,g){if(g.get){g.content=g.content.replace(/&lt;img[^&gt;]+&gt;/g,function(i){if(i.indexOf('class=&quot;mceWPmore')!==-1){var h,j=(h=i.match(/alt=&quot;(.*?)&quot;/))?h[1]:&quot;&quot;;i=&quot;&lt;!--more&quot;+j+&quot;--&gt;&quot;}if(i.indexOf('class=&quot;mceWPnextpage')!==-1){i=&quot;&lt;!--nextpage--&gt;&quot;}return i})}});c.onNodeChange.add(function(g,f,h){f.setActive(&quot;wp_page&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPnextpage&quot;));f.setActive(&quot;wp_more&quot;,h.nodeName===&quot;IMG&quot;&amp;&amp;g.dom.hasClass(h,&quot;mceWPmore&quot;))})}});tinymce.PluginManager.add(&quot;wordpress&quot;,tinymce.plugins.WordPress)})();
</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 (23046 => 23047)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2012-12-04 22:42:26 UTC (rev 23046)
+++ trunk/wp-includes/version.php        2012-12-04 22:44:27 UTC (rev 23047)
</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-RC3-23043';
</del><ins>+$wp_version = '3.5-RC3-23047';
</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-22953';
</del><ins>+$tinymce_version = '357-23047';
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the required PHP version
</span></span></pre>
</div>
</div>

</body>
</html>