mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
28683975c9
This updates the 5.0 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy. In addition to backporting the package updates that happened after branching 5.0, dependencies that were removed in future releases have also been updated to their latest versions. Props desrosj, dd32, netweb, jorbin. Merges [44233,44728,45321,45765,45826,46403-46404,46408,46409,47404,47867-47869,47872-47873,48705,49636,49933,49937,49939,49940,49983,49989,50017,50126,50176,50185,50192] to the 5.0 branch. See #52341. Built from https://develop.svn.wordpress.org/branches/5.0@50201 git-svn-id: http://core.svn.wordpress.org/branches/5.0@49875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
!function(d){var i,t;function s(){d(window).off("beforeunload.wp-auth-check"),"undefined"==typeof adminpage||"post-php"!==adminpage&&"post-new-php"!==adminpage||"undefined"==typeof wp||!wp.heartbeat||(d(document).off("heartbeat-tick.wp-auth-check"),wp.heartbeat.connectNow()),i.fadeOut(200,function(){i.addClass("hidden").css("display",""),d("#wp-auth-check-frame").remove(),d("body").removeClass("modal-open")})}function u(){var e=parseInt(window.authcheckL10n.interval,10)||180;t=(new Date).getTime()+1e3*e}d(document).on("heartbeat-tick.wp-auth-check",function(e,a){var t,n,c,o,h;"wp-auth-check"in a&&(u(),!a["wp-auth-check"]&&i.hasClass("hidden")?(n=d("#wp-auth-check"),c=d("#wp-auth-check-form"),o=i.find(".wp-auth-fallback-expired"),h=!1,c.length&&(d(window).on("beforeunload.wp-auth-check",function(e){e.originalEvent.returnValue=window.authcheckL10n.beforeunload}),(t=d('<iframe id="wp-auth-check-frame" frameborder="0">').attr("title",o.text())).on("load",function(){var e,a;h=!0,c.removeClass("loading");try{e=(a=d(this).contents().find("body")).height()}catch(e){return i.addClass("fallback"),n.css("max-height",""),c.remove(),void o.focus()}e?a&&a.hasClass("interim-login-success")?s():n.css("max-height",e+40+"px"):a&&a.length||(i.addClass("fallback"),n.css("max-height",""),c.remove(),o.focus())}).attr("src",c.data("src")),c.append(t)),d("body").addClass("modal-open"),i.removeClass("hidden"),t?(t.focus(),setTimeout(function(){h||(i.addClass("fallback"),c.remove(),o.focus())},1e4)):o.focus()):a["wp-auth-check"]&&!i.hasClass("hidden")&&s())}).on("heartbeat-send.wp-auth-check",function(e,a){(new Date).getTime()>t&&(a["wp-auth-check"]=!0)}).ready(function(){u(),(i=d("#wp-auth-check-wrap")).find(".wp-auth-check-close").on("click",function(){s()})})}(jQuery); |