Compress scripts/styles: 3.6-beta1-24041.

git-svn-id: http://core.svn.wordpress.org/trunk@24041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Bot (Assets) 2013-04-19 22:58:38 +00:00
parent b3aa214ea1
commit 2a4474f4de
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
window.wp=window.wp||{};(function(e){var a,b,f,d,h=["standard","chat","status","aside","gallery"],i=e(".post-formats-fields");function c(j){a.get(0).className=a.get(0).className.replace(/\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+j)}function g(p){var l,j,k=p.parent(),o=p.data("wp-format"),m=e(".post-format-description"),n=e("#title");if(typeof a==="undefined"){a=e("#post-body-content")}k.slideUp().find("a.active").removeClass("active");p.addClass("active");e("#post_format").val(o);e(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(o);if(-1<e.inArray(o,h)){c(o);i.hide()}else{i.slideUp(200,function(){c(o);i.slideDown(400)})}n.focus();if(""===n.val()){e("#title-prompt-text").removeClass("screen-reader-text")}m.html(p.data("description"));if(m.not(":visible")){m.slideDown("fast")}if(typeof tinymce!="undefined"){l=tinymce.get("content");if(l){j=l.getBody();j.className=j.className.replace(/\bpost-format-[^ ]+/,"");l.dom.addClass(j,"post-format-"+o)}}postFormats.currentPostFormat=o}e(function(){e(".post-format-change a").click(function(){e(".post-formats-fields, .post-format-change").slideUp();e(".post-format-options").slideDown();return false});e(".post-format-options").on("click","a",function(j){j.preventDefault();g(e(this))});e(".wp-format-media-select").click(function(l){l.preventDefault();var j=e(this),n="image",m=j.closest(".wp-format-media-holder"),k=e("#wp_format_"+m.data("format"));n=m.data("format");if(b&&f===n){b.open();return}f=n;b=wp.media.frames.formatMedia=wp.media({title:j.data("choose"),library:{type:n},button:{text:j.data("update")}});d=function(u){var o,q,r="",p=u.url,s=u.mime,t=u.type;if("video"===t){if(u.width){o=u.width;if(o>600){o=600}r+=' width="'+o+'"'}if(u.height){q=u.height;if(u.width&&o<u.width){q=Math.round((q*o)/u.width)}r+=' height="'+q+'"'}}e("#"+t+"-preview").remove();m.parent().prepend('<div id="'+t+'-preview" class="wp-format-media-preview"><'+t+r+' class="wp-'+t+'-shortcode" controls="controls" preload="none"><source type="'+s+'" src="'+p+'" /></'+t+"></div>");e(".wp-"+t+"-shortcode").mediaelementplayer()};b.on("select",function(){var o=0,q=0,p,r=b.state().get("selection").first().toJSON();if(0===r.mime.indexOf("audio")){k.val(r.url);d(r)}else{if(0===r.mime.indexOf("video")){r.src=r.url;k.val(wp.shortcode.string({tag:"video",attrs:_.pick(r,"src","width","height")}));d(r)}else{p=wp.media.string.image({},r);k.val(p);e("#image-preview").remove();if(r.width){o=r.width>600?600:r.width}if(r.height){q=r.height}if(o<r.width){q=Math.round((q*o)/r.width)}m.parent().prepend(['<div id="image-preview" class="wp-format-media-preview">','<img src="',r.url,'"',o?' width="'+o+'"':"",q?' height="'+q+'"':""," />","</div>"].join(""))}}});b.open()})})})(jQuery); window.wp=window.wp||{};(function(e){var a,b,g,d,i=["standard","chat","status","aside","gallery"],j=e(".post-formats-fields"),f=e(".icon32");function c(k){a.get(0).className=a.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+k);f.get(0).className=f.get(0).className.replace(/\s?\bwp-format-[^ ]+/g,"");f.addClass("wp-format-"+k)}function h(q){var m,k,l=q.parent(),p=q.data("wp-format"),n=e(".post-format-description"),o=e("#title");if(typeof a==="undefined"){a=e("#post-body-content")}l.slideUp().find("a.active").removeClass("active");q.addClass("active");e("#post_format").val(p);e(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(p);if(-1<e.inArray(p,i)){c(p);j.hide()}else{j.slideUp(200,function(){c(p);j.slideDown(400)})}o.focus();if(""===o.val()){e("#title-prompt-text").removeClass("screen-reader-text")}n.html(q.data("description"));if(n.not(":visible")){n.slideDown("fast")}if(typeof tinymce!="undefined"){m=tinymce.get("content");if(m){k=m.getBody();k.className=k.className.replace(/\bpost-format-[^ ]+/,"");m.dom.addClass(k,"post-format-"+p)}}postFormats.currentPostFormat=p}e(function(){e(".post-format-change a").click(function(){e(".post-formats-fields, .post-format-change").slideUp();e(".post-format-options").slideDown();return false});e(".post-format-options").on("click","a",function(k){k.preventDefault();h(e(this))});e(".wp-format-media-select").click(function(m){m.preventDefault();var k=e(this),o="image",n=k.closest(".wp-format-media-holder"),l=e("#wp_format_"+n.data("format"));o=n.data("format");if(b&&g===o){b.open();return}g=o;b=wp.media.frames.formatMedia=wp.media({title:k.data("choose"),library:{type:o},button:{text:k.data("update")}});d=function(v){var p,r,s="",q=v.url,t=v.mime,u=v.type;if("video"===u){if(v.width){p=v.width;if(p>600){p=600}s+=' width="'+p+'"'}if(v.height){r=v.height;if(v.width&&p<v.width){r=Math.round((r*p)/v.width)}s+=' height="'+r+'"'}}e("#"+u+"-preview").remove();n.parent().prepend('<div id="'+u+'-preview" class="wp-format-media-preview"><'+u+s+' class="wp-'+u+'-shortcode" controls="controls" preload="none"><source type="'+t+'" src="'+q+'" /></'+u+"></div>");e(".wp-"+u+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=0,r=0,q,s=b.state().get("selection").first().toJSON();if(0===s.mime.indexOf("audio")){l.val(s.url);d(s)}else{if(0===s.mime.indexOf("video")){s.src=s.url;l.val(wp.shortcode.string({tag:"video",attrs:_.pick(s,"src","width","height")}));d(s)}else{q=wp.media.string.image({},s);l.val(q);e("#image-preview").remove();if(s.width){p=s.width>600?600:s.width}if(s.height){r=s.height}if(p<s.width){r=Math.round((r*p)/s.width)}n.parent().prepend(['<div id="image-preview" class="wp-format-media-preview">','<img src="',s.url,'"',p?' width="'+p+'"':"",r?' height="'+r+'"':""," />","</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 * @global string $wp_version
*/ */
$wp_version = '3.6-beta1-24038'; $wp_version = '3.6-beta1-24041';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.