Compress scripts/styles: 3.6-beta1-24100.

git-svn-id: http://core.svn.wordpress.org/trunk@24100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Bot (Assets) 2013-04-26 12:58:41 +00:00
parent 6cf5361850
commit d69f7f5d15
5 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

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