Compress scripts/styles: 3.6-beta1-23990.
git-svn-id: http://core.svn.wordpress.org/trunk@23990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de45c749df
commit
ff09215e32
|
@ -1 +1 @@
|
||||||
window.wp=window.wp||{};(function(g){var c,b,a,h,f,e=["standard","chat","status","aside","gallery"];function d(i){c.get(0).className=c.get(0).className.replace(/\bwp-format-[^ ]+/,"");c.addClass("wp-format-"+i)}g(function(){var i=g(".post-formats-fields");g(".post-format-options").on("click","a",function(p){p.preventDefault();var o=g(this),l,j,k=o.parent(),n=o.data("wp-format"),m=g(".post-format-description");if(typeof c==="undefined"){c=g("#post-body-content")}if(n===postFormats.currentPostFormat){return}k.find("a.active").removeClass("active");o.addClass("active");g("#icon-edit").removeClass(postFormats.currentPostFormat).addClass(n);g("#post_format").val(n);if(-1<g.inArray(n,e)&&-1<g.inArray(postFormats.currentPostFormat,e)){d(n)}else{i.slideUp(200,function(){d(n);i.slideDown(400)})}g("#title").focus();m.html(o.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-"+n)}}postFormats.currentPostFormat=n}).on("mouseenter focusin","a",function(){g(".post-format-tip").html(g(this).prop("title"))}).on("mouseleave focusout","a",function(){g(".post-format-tip").html(g(".post-format-options a.active").prop("title"))});g(".wp-format-media-select").click(function(l){l.preventDefault();var j=g(this),n,k,m="image",o="",n=j.closest(".wp-format-media-holder"),k=g("#wp_format_"+n.data("format"));switch(n.data("format")){case"audio":m="audio";break;case"video":m="video";break}if(b&&a===m&&h===o){b.open();return}a=m;h=o;b=wp.media.frames.formatMedia=wp.media({title:j.data("choose"),toolbar:o,library:{type:m},button:{text:j.data("update")}});f=function(t){var q="",p=t.url,r=t.mime,s=t.type;if("video"===s){if(t.width){q+=' width="'+t.width+'"'}if(t.height){q+=' height="'+t.height+'"'}}g("#"+s+"-preview").remove();n.parent().prepend('<div id="'+s+'-preview" class="wp-format-media-preview"><'+s+q+' class="wp-'+s+'-shortcode" controls="controls" preload="none"><source type="'+r+'" src="'+p+'" /></'+s+"></div>");g(".wp-"+s+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=b.state().get("selection").first().toJSON();if(0===p.mime.indexOf("audio")){k.val(p.url);f(p)}else{if(0===p.mime.indexOf("video")){p.src=p.url;k.val(wp.shortcode.string({tag:"video",attrs:_.pick(p,"src","width","height")}));f(p)}else{k.val(p.id);j.html('<img src="'+p.url+'" />');n.removeClass("empty").show()}}});b.open()})})})(jQuery);
|
window.wp=window.wp||{};(function(g){var c,b,a,h,f,e=["standard","chat","status","aside","gallery"];function d(i){c.get(0).className=c.get(0).className.replace(/\bwp-format-[^ ]+/,"");c.addClass("wp-format-"+i)}g(function(){var i=g(".post-formats-fields");g(".post-format-options").on("click","a",function(p){p.preventDefault();var o=g(this),l,j,k=o.parent(),n=o.data("wp-format"),m=g(".post-format-description");if(typeof c==="undefined"){c=g("#post-body-content")}if(n===postFormats.currentPostFormat){return}k.find("a.active").removeClass("active");o.addClass("active");g("#icon-edit").removeClass(postFormats.currentPostFormat).addClass(n);g("#post_format").val(n);if(-1<g.inArray(n,e)&&-1<g.inArray(postFormats.currentPostFormat,e)){d(n)}else{i.slideUp(200,function(){d(n);i.slideDown(400)})}g("#title").focus();m.html(o.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-"+n)}}postFormats.currentPostFormat=n}).on("mouseenter focusin","a",function(){g(".post-format-tip").html(g(this).prop("title"))}).on("mouseleave focusout","a",function(){g(".post-format-tip").html(g(".post-format-options a.active").prop("title"))});g(".wp-format-media-select").click(function(l){l.preventDefault();var j=g(this),n,k,m="image",o="",n=j.closest(".wp-format-media-holder"),k=g("#wp_format_"+n.data("format"));switch(n.data("format")){case"audio":m="audio";break;case"video":m="video";break}if(b&&a===m&&h===o){b.open();return}a=m;h=o;b=wp.media.frames.formatMedia=wp.media({title:j.data("choose"),toolbar:o,library:{type:m},button:{text:j.data("update")}});f=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+'"'}}g("#"+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>");g(".wp-"+u+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=b.state().get("selection").first().toJSON();if(0===p.mime.indexOf("audio")){k.val(p.url);f(p)}else{if(0===p.mime.indexOf("video")){p.src=p.url;k.val(wp.shortcode.string({tag:"video",attrs:_.pick(p,"src","width","height")}));f(p)}else{k.val(p.id);j.html('<img src="'+p.url+'" />');n.removeClass("empty").show()}}});b.open()})})})(jQuery);
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '3.6-beta1-23987';
|
$wp_version = '3.6-beta1-23990';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue