var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(o){var i,t=o("#welcome-panel"),e=o("#wp_welcome_panel-hide");i=function(e){o.post(ajaxurl,{action:"update-welcome-panel",visible:e,welcomepanelnonce:o("#welcomepanelnonce").val()})},t.hasClass("hidden")&&e.prop("checked")&&t.removeClass("hidden"),o(".welcome-panel-close, .welcome-panel-dismiss a",t).click(function(e){e.preventDefault(),t.addClass("hidden"),i(0),o("#wp_welcome_panel-hide").prop("checked",!1)}),e.click(function(){t.toggleClass("hidden",!this.checked),i(this.checked?1:0)}),ajaxWidgets=["dashboard_primary"],(ajaxPopulateWidgets=function(e){function i(e,i){var t,s=o("#"+i+" div.inside:visible").find(".widget-loading");s.length&&(t=s.parent(),setTimeout(function(){t.load(ajaxurl+"?action=dashboard-widgets&widget="+i+"&pagenow="+pagenow,"",function(){t.hide().slideDown("normal",function(){o(this).css("display","")})})},500*e))}e?(e=e.toString(),-1!==o.inArray(e,ajaxWidgets)&&i(0,e)):o.each(ajaxWidgets,i)})(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),(quickPressLoad=function(){var e=o("#quickpost-action"),i=o("#quick-press").submit(function(){return o("#dashboard_quick_press #publishing-action .spinner").show(),o('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),o.post(i.attr("action"),i.serializeArray(),function(e){var i;o("#dashboard_quick_press .inside").html(e),o("#quick-press").removeClass("initial-form"),quickPressLoad(),(i=o(".drafts ul li").first()).css("background","#fffbe5"),setTimeout(function(){i.css("background","none")},1e3),o("#title").focus()}),!1});o("#publish").click(function(){e.val("post-quickpress-publish")}),o("#title, #tags-input, #content").each(function(){var e=o(this),i=o("#"+this.id+"-prompt-text");""===this.value&&i.removeClass("screen-reader-text"),i.click(function(){o(this).addClass("screen-reader-text"),e.focus()}),e.blur(function(){""===this.value&&i.removeClass("screen-reader-text")}),e.focus(function(){i.addClass("screen-reader-text")})}),o("#quick-press").on("click focusin",function(){wpActiveEditor="content"}),function(){o("body").append('');var t=o(".quick-draft-textarea-clone"),s=o("#content"),n=s.height(),a=o(window).height()-100;t.css({"font-family":s.css("font-family"),"font-size":s.css("font-size"),"line-height":s.css("line-height"),"padding-bottom":s.css("paddingBottom"),"padding-left":s.css("paddingLeft"),"padding-right":s.css("paddingRight"),"padding-top":s.css("paddingTop"),"white-space":"pre-wrap","word-wrap":"break-word",display:"none"}),s.on("focus input propertychange",function(){var e=o(this),i=e.val()+" ",i=t.css("width",e.css("width")).text(i).outerHeight()+2;s.css("overflow-y","auto"),i===n||a<=i&&a<=n||(n=a