From 05f174acf60abd2bc786cb7d2c038deea5477408 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 6 Jan 2021 15:29:24 +0000 Subject: [PATCH] Build/Test Tools: Update UglifyJS to the latest version. This updates the `uglify-js` package from version `3.6.0` to `3.12.4`. See #51801. Built from https://develop.svn.wordpress.org/trunk@49940 git-svn-id: http://core.svn.wordpress.org/trunk@49639 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/accordion.min.js | 2 +- wp-admin/js/application-passwords.min.js | 2 +- wp-admin/js/auth-app.min.js | 2 +- wp-admin/js/code-editor.min.js | 2 +- wp-admin/js/color-picker.min.js | 2 +- wp-admin/js/common.min.js | 2 +- wp-admin/js/customize-controls.min.js | 2 +- wp-admin/js/customize-nav-menus.min.js | 2 +- wp-admin/js/customize-widgets.min.js | 2 +- wp-admin/js/dashboard.min.js | 2 +- wp-admin/js/edit-comments.min.js | 2 +- wp-admin/js/editor-expand.min.js | 2 +- wp-admin/js/editor.min.js | 2 +- wp-admin/js/gallery.min.js | 2 +- wp-admin/js/image-edit.min.js | 2 +- wp-admin/js/inline-edit-post.min.js | 2 +- wp-admin/js/inline-edit-tax.min.js | 2 +- wp-admin/js/link.min.js | 2 +- wp-admin/js/media-gallery.min.js | 2 +- wp-admin/js/media.min.js | 2 +- wp-admin/js/nav-menu.min.js | 2 +- wp-admin/js/plugin-install.min.js | 2 +- wp-admin/js/post.min.js | 2 +- wp-admin/js/postbox.min.js | 2 +- wp-admin/js/privacy-tools.min.js | 2 +- wp-admin/js/revisions.min.js | 2 +- wp-admin/js/site-health.min.js | 2 +- wp-admin/js/svg-painter.min.js | 2 +- wp-admin/js/tags-box.min.js | 2 +- wp-admin/js/tags-suggest.min.js | 2 +- wp-admin/js/tags.min.js | 2 +- wp-admin/js/theme-plugin-editor.min.js | 2 +- wp-admin/js/theme.min.js | 2 +- wp-admin/js/updates.min.js | 2 +- wp-admin/js/user-profile.min.js | 2 +- wp-admin/js/widgets.min.js | 2 +- wp-admin/js/widgets/custom-html-widgets.min.js | 2 +- wp-admin/js/widgets/media-audio-widget.min.js | 2 +- wp-admin/js/widgets/media-gallery-widget.min.js | 2 +- wp-admin/js/widgets/media-image-widget.min.js | 2 +- wp-admin/js/widgets/media-video-widget.min.js | 2 +- wp-admin/js/widgets/media-widgets.min.js | 2 +- wp-admin/js/widgets/text-widgets.min.js | 2 +- wp-includes/embed.php | 4 ++-- wp-includes/formatting.php | 2 +- wp-includes/js/admin-bar.min.js | 2 +- wp-includes/js/api-request.min.js | 2 +- wp-includes/js/autosave.min.js | 2 +- wp-includes/js/backbone.min.js | 2 +- wp-includes/js/clipboard.min.js | 2 +- wp-includes/js/colorpicker.min.js | 2 +- wp-includes/js/comment-reply.min.js | 2 +- wp-includes/js/customize-base.min.js | 2 +- wp-includes/js/customize-loader.min.js | 2 +- wp-includes/js/customize-models.min.js | 2 +- .../js/customize-preview-nav-menus.min.js | 2 +- wp-includes/js/customize-preview-widgets.min.js | 2 +- wp-includes/js/customize-preview.min.js | 2 +- .../js/customize-selective-refresh.min.js | 2 +- wp-includes/js/customize-views.min.js | 2 +- wp-includes/js/dist/vendor/moment.min.js | 2 +- .../js/dist/vendor/wp-polyfill-dom-rect.min.js | 2 +- .../js/dist/vendor/wp-polyfill-fetch.min.js | 2 +- wp-includes/js/heartbeat.min.js | 2 +- wp-includes/js/hoverIntent.min.js | 2 +- .../js/imgareaselect/jquery.imgareaselect.min.js | 2 +- wp-includes/js/jquery/jquery.form.min.js | 2 +- wp-includes/js/jquery/ui/accordion.min.js | 2 +- wp-includes/js/jquery/ui/autocomplete.min.js | 2 +- wp-includes/js/jquery/ui/button.min.js | 2 +- wp-includes/js/jquery/ui/checkboxradio.min.js | 2 +- wp-includes/js/jquery/ui/controlgroup.min.js | 2 +- wp-includes/js/jquery/ui/core.min.js | 14 +++++++------- wp-includes/js/jquery/ui/datepicker.min.js | 2 +- wp-includes/js/jquery/ui/dialog.min.js | 2 +- wp-includes/js/jquery/ui/draggable.min.js | 2 +- wp-includes/js/jquery/ui/droppable.min.js | 2 +- wp-includes/js/jquery/ui/effect-bounce.min.js | 2 +- wp-includes/js/jquery/ui/effect-clip.min.js | 2 +- wp-includes/js/jquery/ui/effect-drop.min.js | 2 +- wp-includes/js/jquery/ui/effect-fold.min.js | 2 +- wp-includes/js/jquery/ui/effect-puff.min.js | 2 +- wp-includes/js/jquery/ui/effect-pulsate.min.js | 2 +- wp-includes/js/jquery/ui/effect-scale.min.js | 2 +- wp-includes/js/jquery/ui/effect-shake.min.js | 2 +- wp-includes/js/jquery/ui/effect-size.min.js | 2 +- wp-includes/js/jquery/ui/effect.min.js | 4 ++-- wp-includes/js/jquery/ui/menu.min.js | 2 +- wp-includes/js/jquery/ui/mouse.min.js | 2 +- wp-includes/js/jquery/ui/resizable.min.js | 2 +- wp-includes/js/jquery/ui/selectable.min.js | 2 +- wp-includes/js/jquery/ui/selectmenu.min.js | 2 +- wp-includes/js/jquery/ui/slider.min.js | 2 +- wp-includes/js/jquery/ui/sortable.min.js | 2 +- wp-includes/js/jquery/ui/spinner.min.js | 2 +- wp-includes/js/jquery/ui/tabs.min.js | 2 +- wp-includes/js/jquery/ui/tooltip.min.js | 2 +- wp-includes/js/mce-view.min.js | 2 +- wp-includes/js/media-audiovideo.min.js | 2 +- wp-includes/js/media-editor.min.js | 2 +- wp-includes/js/media-grid.min.js | 2 +- wp-includes/js/media-models.min.js | 2 +- wp-includes/js/media-views.min.js | 2 +- .../js/mediaelement/mediaelement-migrate.min.js | 2 +- wp-includes/js/plupload/handlers.min.js | 2 +- wp-includes/js/plupload/moxie.min.js | 2 +- wp-includes/js/plupload/plupload.min.js | 2 +- wp-includes/js/plupload/wp-plupload.min.js | 2 +- wp-includes/js/quicktags.min.js | 2 +- wp-includes/js/shortcode.min.js | 2 +- .../js/tinymce/plugins/wordpress/plugin.min.js | 2 +- .../tinymce/plugins/wpautoresize/plugin.min.js | 2 +- .../js/tinymce/plugins/wpeditimage/plugin.min.js | 2 +- .../js/tinymce/plugins/wpemoji/plugin.min.js | 2 +- .../js/tinymce/plugins/wpgallery/plugin.min.js | 2 +- .../js/tinymce/plugins/wplink/plugin.min.js | 2 +- .../tinymce/plugins/wptextpattern/plugin.min.js | 2 +- .../js/tinymce/plugins/wpview/plugin.min.js | 2 +- wp-includes/js/tinymce/wp-tinymce.js | 16 ++++++++-------- wp-includes/js/twemoji.min.js | 2 +- wp-includes/js/underscore.min.js | 2 +- wp-includes/js/utils.min.js | 2 +- wp-includes/js/wp-ajax-response.min.js | 2 +- wp-includes/js/wp-api.min.js | 2 +- wp-includes/js/wp-auth-check.min.js | 2 +- wp-includes/js/wp-backbone.min.js | 2 +- wp-includes/js/wp-custom-header.min.js | 2 +- wp-includes/js/wp-embed-template.min.js | 2 +- wp-includes/js/wp-embed.min.js | 2 +- wp-includes/js/wp-emoji-loader.min.js | 2 +- wp-includes/js/wp-emoji-release.min.js | 4 ++-- wp-includes/js/wp-emoji.min.js | 2 +- wp-includes/js/wp-list-revisions.min.js | 2 +- wp-includes/js/wp-lists.min.js | 2 +- wp-includes/js/wp-pointer.min.js | 2 +- wp-includes/js/wp-util.min.js | 2 +- wp-includes/js/wplink.min.js | 2 +- wp-includes/js/zxcvbn-async.min.js | 2 +- wp-includes/version.php | 2 +- 139 files changed, 155 insertions(+), 155 deletions(-) diff --git a/wp-admin/js/accordion.min.js b/wp-admin/js/accordion.min.js index c7bddb73e4..6b8b468234 100644 --- a/wp-admin/js/accordion.min.js +++ b/wp-admin/js/accordion.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(e){e(document).ready(function(){e(".accordion-container").on("click keydown",".accordion-section-title",function(n){"keydown"===n.type&&13!==n.which||(n.preventDefault(),function(n){var e=n.closest(".accordion-section"),o=e.find("[aria-expanded]").first(),a=e.closest(".accordion-container"),i=a.find(".open"),t=i.find("[aria-expanded]").first(),s=e.find(".accordion-section-content");if(e.hasClass("cannot-expand"))return;a.addClass("opening"),e.hasClass("open")?(e.toggleClass("open"),s.toggle(!0).slideToggle(150)):(t.attr("aria-expanded","false"),i.removeClass("open"),i.find(".accordion-section-content").show().slideUp(150),s.toggle(!1).slideToggle(150),e.toggleClass("open"));setTimeout(function(){a.removeClass("opening")},150),o&&o.attr("aria-expanded",String("false"===o.attr("aria-expanded")))}(e(this)))})})}(jQuery); \ No newline at end of file +!function(s){s(document).ready(function(){s(".accordion-container").on("click keydown",".accordion-section-title",function(e){var n,o,a,i,t;"keydown"===e.type&&13!==e.which||(e.preventDefault(),n=s(this),o=n.closest(".accordion-section"),a=o.find("[aria-expanded]").first(),i=o.closest(".accordion-container"),t=i.find(".open"),e=t.find("[aria-expanded]").first(),n=o.find(".accordion-section-content"),o.hasClass("cannot-expand")||(i.addClass("opening"),o.hasClass("open")?(o.toggleClass("open"),n.toggle(!0).slideToggle(150)):(e.attr("aria-expanded","false"),t.removeClass("open"),t.find(".accordion-section-content").show().slideUp(150),n.toggle(!1).slideToggle(150),o.toggleClass("open")),setTimeout(function(){i.removeClass("opening")},150),a&&a.attr("aria-expanded",String("false"===a.attr("aria-expanded")))))})})}(jQuery); \ No newline at end of file diff --git a/wp-admin/js/application-passwords.min.js b/wp-admin/js/application-passwords.min.js index 95389326ae..641b98c2d7 100644 --- a/wp-admin/js/application-passwords.min.js +++ b/wp-admin/js/application-passwords.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(i){var a=i("#application-passwords-section"),o=a.find(".create-application-password"),n=o.find(".input"),t=o.find(".button"),p=a.find(".application-passwords-list-table-wrapper"),r=a.find("tbody"),d=r.find(".no-items"),e=i("#revoke-all-application-passwords"),l=wp.template("new-application-password"),c=wp.template("application-password-row"),u=i("#user_id").val();function w(e,s,a){var o=a;e.responseJSON&&e.responseJSON.message&&(o=e.responseJSON.message),f(o,"error")}function f(e,s){var a=i("
").attr("role","alert").attr("tabindex","-1").addClass("is-dismissible notice notice-"+s).append(i("

").text(e)).append(i("").attr("type","button").addClass("notice-dismiss").append(i("").addClass("screen-reader-text").text(wp.i18n.__("Dismiss this notice."))));return o.after(a),a}function v(){i(".notice",a).remove()}t.click(function(e){if(e.preventDefault(),!t.prop("aria-disabled")){var s=n.val();if(0!==s.length){v(),t.prop("aria-disabled",!0).addClass("disabled");var a={name:s};a=wp.hooks.applyFilters("wp_application_passwords_new_password_request",a,u),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords?_locale=user",method:"POST",data:a}).always(function(){t.removeProp("aria-disabled").removeClass("disabled")}).done(function(e){n.val(""),t.prop("disabled",!1),o.after(l({name:s,password:e.password})),i(".new-application-password-notice").focus(),r.prepend(c(e)),p.show(),d.remove(),wp.hooks.doAction("wp_application_passwords_created_password",e,a)}).fail(w)}else n.focus()}}),r.on("click",".delete",function(e){if(e.preventDefault(),window.confirm(wp.i18n.__("Are you sure you want to revoke this password? This action cannot be undone."))){var s=i(this),a=s.closest("tr"),o=a.data("uuid");v(),s.prop("disabled",!0),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords/"+o+"?_locale=user",method:"DELETE"}).always(function(){s.prop("disabled",!1)}).done(function(e){e.deleted&&(0===a.siblings().length&&p.hide(),a.remove(),f(wp.i18n.__("Application password revoked."),"success").focus())}).fail(w)}}),e.on("click",function(e){if(e.preventDefault(),window.confirm(wp.i18n.__("Are you sure you want to revoke all passwords? This action cannot be undone."))){var s=i(this);v(),s.prop("disabled",!0),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords?_locale=user",method:"DELETE"}).always(function(){s.prop("disabled",!1)}).done(function(e){e.deleted&&(r.children().remove(),a.children(".new-application-password").remove(),p.hide(),f(wp.i18n.__("All application passwords revoked."),"success").focus())}).fail(w)}}),a.on("click",".notice-dismiss",function(e){e.preventDefault();var s=i(this).parent();s.removeAttr("role"),s.fadeTo(100,0,function(){s.slideUp(100,function(){s.remove(),n.focus()})})}),0===r.children("tr").not(d).length&&p.hide()}(jQuery); \ No newline at end of file +!function(o){var a=o("#application-passwords-section"),i=a.find(".create-application-password"),n=i.find(".input"),t=i.find(".button"),p=a.find(".application-passwords-list-table-wrapper"),r=a.find("tbody"),d=r.find(".no-items"),e=o("#revoke-all-application-passwords"),l=wp.template("new-application-password"),c=wp.template("application-password-row"),u=o("#user_id").val();function w(e,s,a){e.responseJSON&&e.responseJSON.message&&(a=e.responseJSON.message),f(a,"error")}function f(e,s){e=o("
").attr("role","alert").attr("tabindex","-1").addClass("is-dismissible notice notice-"+s).append(o("

").text(e)).append(o("").attr("type","button").addClass("notice-dismiss").append(o("").addClass("screen-reader-text").text(wp.i18n.__("Dismiss this notice."))));return i.after(e),e}function v(){o(".notice",a).remove()}t.click(function(e){var s,a;e.preventDefault(),t.prop("aria-disabled")||(0!==(s=n.val()).length?(v(),t.prop("aria-disabled",!0).addClass("disabled"),a={name:s},a=wp.hooks.applyFilters("wp_application_passwords_new_password_request",a,u),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords?_locale=user",method:"POST",data:a}).always(function(){t.removeProp("aria-disabled").removeClass("disabled")}).done(function(e){n.val(""),t.prop("disabled",!1),i.after(l({name:s,password:e.password})),o(".new-application-password-notice").focus(),r.prepend(c(e)),p.show(),d.remove(),wp.hooks.doAction("wp_application_passwords_created_password",e,a)}).fail(w)):n.focus())}),r.on("click",".delete",function(e){var s,a;e.preventDefault(),window.confirm(wp.i18n.__("Are you sure you want to revoke this password? This action cannot be undone."))&&(s=o(this),e=(a=s.closest("tr")).data("uuid"),v(),s.prop("disabled",!0),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords/"+e+"?_locale=user",method:"DELETE"}).always(function(){s.prop("disabled",!1)}).done(function(e){e.deleted&&(0===a.siblings().length&&p.hide(),a.remove(),f(wp.i18n.__("Application password revoked."),"success").focus())}).fail(w))}),e.on("click",function(e){var s;e.preventDefault(),window.confirm(wp.i18n.__("Are you sure you want to revoke all passwords? This action cannot be undone."))&&(s=o(this),v(),s.prop("disabled",!0),wp.apiRequest({path:"/wp/v2/users/"+u+"/application-passwords?_locale=user",method:"DELETE"}).always(function(){s.prop("disabled",!1)}).done(function(e){e.deleted&&(r.children().remove(),a.children(".new-application-password").remove(),p.hide(),f(wp.i18n.__("All application passwords revoked."),"success").focus())}).fail(w))}),a.on("click",".notice-dismiss",function(e){e.preventDefault();var s=o(this).parent();s.removeAttr("role"),s.fadeTo(100,0,function(){s.slideUp(100,function(){s.remove(),n.focus()})})}),0===r.children("tr").not(d).length&&p.hide()}(jQuery); \ No newline at end of file diff --git a/wp-admin/js/auth-app.min.js b/wp-admin/js/auth-app.min.js index ea1fee576c..daacbeb0ed 100644 --- a/wp-admin/js/auth-app.min.js +++ b/wp-admin/js/auth-app.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(n,l){var o=n("#app_name"),r=n("#approve"),e=n("#reject"),d=o.closest("form"),p={userLogin:l.user_login,successUrl:l.success,rejectUrl:l.reject};r.click(function(e){var i=o.val(),a=n('input[name="app_id"]',d).val();if(e.preventDefault(),!r.prop("aria-disabled"))if(0!==i.length){r.prop("aria-disabled",!0).addClass("disabled");var s={name:i};0'+wp.i18n.__("Your new password for %s is:")+"","")+' ',t=n("
").attr("role","alert").attr("tabindex",-1).addClass("notice notice-success notice-alt").append(n("

").addClass("application-password-display").html(p)).append("

"+wp.i18n.__("Be sure to save this in a safe location. You will not be able to retrieve it.")+"

"),n("strong",t).text(i),n("input",t).val(e.password),d.replaceWith(t),t.focus())}).fail(function(e,a,s){var o=s,p=null;e.responseJSON&&(p=e.responseJSON).message&&(o=p.message);var t=n("
").attr("role","alert").addClass("notice notice-error").append(n("

").text(o));n("h1").after(t),r.removeProp("aria-disabled",!1).removeClass("disabled"),wp.hooks.doAction("wp_application_passwords_approve_app_request_error",p,a,s,e)})}else o.focus()}),e.click(function(e){e.preventDefault(),wp.hooks.doAction("wp_application_passwords_reject_app",p),window.location=l.reject}),d.on("submit",function(e){e.preventDefault()})}(jQuery,authApp); \ No newline at end of file +!function(t,n){var s=t("#app_name"),r=t("#approve"),e=t("#reject"),i=s.closest("form"),o={userLogin:n.user_login,successUrl:n.success,rejectUrl:n.reject};r.click(function(e){var p=s.val(),a=t('input[name="app_id"]',i).val();e.preventDefault(),r.prop("aria-disabled")||(0!==p.length?(r.prop("aria-disabled",!0).addClass("disabled"),e={name:p},0'+wp.i18n.__("Your new password for %s is:")+"","")+' ',o=t("
").attr("role","alert").attr("tabindex",-1).addClass("notice notice-success notice-alt").append(t("

").addClass("application-password-display").html(o)).append("

"+wp.i18n.__("Be sure to save this in a safe location. You will not be able to retrieve it.")+"

"),t("strong",o).text(p),t("input",o).val(e.password),i.replaceWith(o),o.focus())}).fail(function(e,a,s){var o=s,p=null;e.responseJSON&&(p=e.responseJSON).message&&(o=p.message);o=t("
").attr("role","alert").addClass("notice notice-error").append(t("

").text(o));t("h1").after(o),r.removeProp("aria-disabled",!1).removeClass("disabled"),wp.hooks.doAction("wp_application_passwords_approve_app_request_error",p,a,s,e)})):s.focus())}),e.click(function(e){e.preventDefault(),wp.hooks.doAction("wp_application_passwords_reject_app",o),window.location=n.reject}),i.on("submit",function(e){e.preventDefault()})}(jQuery,authApp); \ No newline at end of file diff --git a/wp-admin/js/code-editor.min.js b/wp-admin/js/code-editor.min.js index 1baa7870b8..f8699ad5f6 100644 --- a/wp-admin/js/code-editor.min.js +++ b/wp-admin/js/code-editor.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(l,d){"use strict";d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,n){var e,a,o,i;return e=l("string"==typeof t?"#"+t:t),(o=l.extend({},d.codeEditor.defaultSettings,n)).codemirror=l.extend({},o.codemirror),function(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function u(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=l.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&l.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&l.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=l.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint&&(t.options.rules.csslint=s.csslint)),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,n,e){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,n,e),_.isEqual(o,a)||(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,n,e),(!r.state.focused||0===a.length||0"),o.wrappingLabelText=i('').insertBefore(e).text(a("Color value"))),o.wrappingLabel=e.parent(),o.wrappingLabel.wrap('
'),o.wrap=o.wrappingLabel.parent(),o.toggler=i('').insertBefore(o.wrappingLabel).css({backgroundColor:o.initialValue}),o.toggler.find(".wp-color-result-text").text(a("Select Color")),o.pickerContainer=i('
').insertAfter(o.wrappingLabel),o.button=i(''),o.options.defaultColor?o.button.addClass("wp-picker-default").val(a("Default")).attr("aria-label",a("Select default color")):o.button.addClass("wp-picker-clear").val(a("Clear")).attr("aria-label",a("Clear color")),o.wrappingLabel.wrap('