Compress scripts/styles: 3.6-beta1-24090.

git-svn-id: https://develop.svn.wordpress.org/trunk@24090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
bumpbot 2013-04-25 06:58:41 +00:00
parent 25e521f40d
commit 629c86ddb2
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
window.wp=window.wp||{};(function(f){var a,p,b,g,d,j=360,k,h="standard",m="short-format",o=["status","aside"],l=["standard","chat","status","aside","gallery"],e=f(".icon32");function c(q){a.get(0).className=a.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+q);e.get(0).className=e.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");e.addClass("wp-format-"+q)}function n(s,r){var q;k=f("#content, #content_ifr");q=k.height();if(120<q){j=q}if(-1<f.inArray(s,o)){if(!k.hasClass(m)){k.addClass(m);if(r){k.each(function(){f(this).css({height:120})})}else{k.each(function(){f(this).animate({height:120})})}}}else{k.removeClass(m).animate({height:j})}}function i(w){var s,q,r=w.parent(),v=w.data("wp-format"),t=f(".post-format-description"),u=f("#title");if(typeof a==="undefined"){a=f("#post-body-content")}r.slideUp().find("a.active").removeClass("active");w.addClass("active");f("#post_format").val(v);f(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(v);if(-1<f.inArray(v,l)){c(v);p.hide()}else{p.slideUp(200,function(){c(v);p.slideDown(400)})}n(v);u.focus();if(""===u.val()){f("#title-prompt-text").removeClass("screen-reader-text")}t.html(w.data("description"));if(t.not(":visible")){t.slideDown("fast")}if(typeof tinymce!="undefined"){s=tinymce.get("content");if(s){q=s.getBody();q.className=q.className.replace(/\bpost-format-[^ ]+/,"");s.dom.addClass(q,"post-format-"+v)}}postFormats.currentPostFormat=v}f(function(){p=f(".post-formats-fields");h=f(".post-format-options .active").data("wp-format");if(-1<f.inArray(h,o)){n(h,true)}f(".post-format-change a").click(function(){f(".post-formats-fields, .post-format-change").slideUp();f(".post-format-options").slideDown();return false});f(".post-format-options").on("click","a",function(q){q.preventDefault();i(f(this))});f(".wp-format-media-select").click(function(s){s.preventDefault();var q=f(this),u="image",t=q.closest(".wp-format-media-holder"),r=f("#wp_format_"+t.data("format"));u=t.data("format");if(b&&g===u){b.open();return}g=u;b=wp.media.frames.formatMedia=wp.media({button:{text:q.data("update")},states:[new wp.media.controller.Library({library:wp.media.query({type:u}),title:q.data("choose"),displaySettings:"image"===u})]});d=function(C){var v,y,z="",x=C.url,A=C.mime,B=C.type;if("video"===B){if(C.width){v=C.width;if(v>600){v=600}z+=' width="'+v+'"'}if(C.height){y=C.height;if(C.width&&v<C.width){y=Math.round((y*v)/C.width)}z+=' height="'+y+'"'}}f("#"+B+"-preview").remove();t.parent().prepend('<div id="'+B+'-preview" class="wp-format-media-preview"><'+B+z+' class="wp-'+B+'-shortcode" controls="controls" preload="none"><source type="'+A+'" src="'+x+'" /></'+B+"></div>");f(".wp-"+B+"-shortcode").mediaelementplayer()};b.on("select",function(){var v=0,y=0,x,z=b.state().get("selection").first().toJSON();if(0===z.mime.indexOf("audio")){r.val(z.url);d(z)}else{if(0===z.mime.indexOf("video")){z.src=z.url;r.val(wp.shortcode.string({tag:"video",attrs:_.pick(z,"src","width","height")}));d(z)}else{x=wp.media.string.image({align:getUserSetting("align"),size:getUserSetting("imgsize"),link:getUserSetting("urlbutton")},z);r.val(x);f("#image-preview").remove();if(z.width){v=z.width>600?600:z.width}if(z.height){y=z.height}if(v<z.width){y=Math.round((y*v)/z.width)}t.parent().prepend(['<div id="image-preview" class="wp-format-media-preview">','<img src="',z.url,'"',v?' width="'+v+'"':"",y?' height="'+y+'"':""," />","</div>"].join(""))}}});b.open()})})})(jQuery);
window.wp=window.wp||{};(function(g){var a,q,b,h,e,k=360,l,c,i="standard",n="short-format",p=["status","aside"],m=["standard","chat","status","aside","gallery"],f=g(".icon32");function d(r){a.get(0).className=a.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+r);f.get(0).className=f.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");f.addClass("wp-format-"+r)}function o(t,s){var r;l=g("#content, #content_ifr");r=l.height();if(120<r){k=r}if(-1<g.inArray(t,p)){if(!l.hasClass(n)){l.addClass(n);if(s){l.each(function(){g(this).css({height:120})})}else{l.each(function(){g(this).animate({height:120})})}}}else{l.removeClass(n).animate({height:k})}}function j(x){var t,r,s=x.parent(),w=x.data("wp-format"),u=g(".post-format-description"),v=g("#title");if(typeof a==="undefined"){a=g("#post-body-content")}s.slideUp().find("a.active").removeClass("active");x.addClass("active");g("#post_format").val(w);g(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(w);if(-1<g.inArray(w,m)){d(w);q.hide()}else{q.slideUp(200,function(){d(w);q.slideDown(400)})}o(w);v.focus();if(""===v.val()){g("#title-prompt-text").removeClass("screen-reader-text")}u.html(x.data("description"));if(u.not(":visible")){u.slideDown("fast")}if(typeof tinymce!="undefined"){t=tinymce.get("content");if(t){r=t.getBody();r.className=r.className.replace(/\bpost-format-[^ ]+/,"");t.dom.addClass(r,"post-format-"+w)}}c.toggleClass("gallery","gallery"===w);postFormats.currentPostFormat=w}g(function(){c=g("#insert-media-button").toggleClass("gallery","gallery"===postFormats.currentPostFormat);q=g(".post-formats-fields");i=g(".post-format-options .active").data("wp-format");if(-1<g.inArray(i,p)){o(i,true)}g(".post-format-change a").click(function(){g(".post-formats-fields, .post-format-change").slideUp();g(".post-format-options").slideDown();return false});g(".post-format-options").on("click","a",function(r){r.preventDefault();j(g(this))});g(".wp-format-media-select").click(function(t){t.preventDefault();var r=g(this),v="image",u=r.closest(".wp-format-media-holder"),s=g("#wp_format_"+u.data("format"));v=u.data("format");if(b&&h===v){b.open();return}h=v;b=wp.media.frames.formatMedia=wp.media({button:{text:r.data("update")},states:[new wp.media.controller.Library({library:wp.media.query({type:v}),title:r.data("choose"),displaySettings:"image"===v})]});e=function(D){var x,z,A="",y=D.url,B=D.mime,C=D.type;if("video"===C){if(D.width){x=D.width;if(x>600){x=600}A+=' width="'+x+'"'}if(D.height){z=D.height;if(D.width&&x<D.width){z=Math.round((z*x)/D.width)}A+=' height="'+z+'"'}}g("#"+C+"-preview").remove();u.parent().prepend('<div id="'+C+'-preview" class="wp-format-media-preview"><'+C+A+' class="wp-'+C+'-shortcode" controls="controls" preload="none"><source type="'+B+'" src="'+y+'" /></'+C+"></div>");g(".wp-"+C+"-shortcode").mediaelementplayer()};b.on("select",function(){var x=0,z=0,y,A=b.state().get("selection").first().toJSON();if(0===A.mime.indexOf("audio")){s.val(A.url);e(A)}else{if(0===A.mime.indexOf("video")){A.src=A.url;s.val(wp.shortcode.string({tag:"video",attrs:_.pick(A,"src","width","height")}));e(A)}else{y=wp.media.string.image({align:getUserSetting("align"),size:getUserSetting("imgsize"),link:getUserSetting("urlbutton")},A);s.val(y);g("#image-preview").remove();if(A.width){x=A.width>600?600:A.width}if(A.height){z=A.height}if(x<A.width){z=Math.round((z*x)/A.width)}u.parent().prepend(['<div id="image-preview" class="wp-format-media-preview">','<img src="',A.url,'"',x?' width="'+x+'"':"",z?' height="'+z+'"':""," />","</div>"].join(""))}}});b.open()})})})(jQuery);

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '3.6-beta1-24086';
$wp_version = '3.6-beta1-24090';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.