diff --git a/wp-admin/js/tags.js b/wp-admin/js/tags.js index 6c25e55537..4ff7aaa440 100644 --- a/wp-admin/js/tags.js +++ b/wp-admin/js/tags.js @@ -155,7 +155,7 @@ jQuery( function($) { form.find( 'select#parent option:selected' ).after( '' ); } - $('input[type="text"]:visible, textarea:visible', form).val(''); + $('input:not([type="checkbox"]):not([type="radio"]):visible, textarea:visible', form).val(''); }); return false; diff --git a/wp-admin/js/tags.min.js b/wp-admin/js/tags.min.js index 6f4af54751..5a6e81befc 100644 --- a/wp-admin/js/tags.min.js +++ b/wp-admin/js/tags.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -jQuery(function(r){var o=!1;r("#the-list").on("click",".delete-tag",function(){var t,e=r(this),n=e.parents("tr"),a=!0;return(a="undefined"!=showNotice?showNotice.warn():a)&&(t=e.attr("href").replace(/[^?]*\?/,"").replace(/action=delete/,"action=delete-tag"),r.post(ajaxurl,t,function(e){"1"==e?(r("#ajax-response").empty(),n.fadeOut("normal",function(){n.remove()}),r('select#parent option[value="'+t.match(/tag_ID=(\d+)/)[1]+'"]').remove(),r("a.tag-link-"+t.match(/tag_ID=(\d+)/)[1]).remove()):("-1"==e?r("#ajax-response").empty().append('

'+wp.i18n.__("Sorry, you are not allowed to do that.")+"

"):r("#ajax-response").empty().append('

'+wp.i18n.__("Something went wrong.")+"

"),n.children().css("backgroundColor",""))}),n.children().css("backgroundColor","#f33")),!1}),r("#edittag").on("click",".delete",function(e){return"undefined"==typeof showNotice||void(showNotice.warn()||e.preventDefault())}),r("#submit").on("click",function(){var s=r(this).parents("form");return validateForm(s)&&(o||(o=!0,s.find(".submit .spinner").addClass("is-active"),r.post(ajaxurl,r("#addtag").serialize(),function(e){var t,n,a;if(o=!1,s.find(".submit .spinner").removeClass("is-active"),r("#ajax-response").empty(),(t=wpAjax.parseAjaxResponse(e,"ajax-response"))&&!t.errors){if(0<(e=s.find("select#parent").val())&&0'+n+e.name+"")}r('input[type="text"]:visible, textarea:visible',s).val("")}}))),!1})}); \ No newline at end of file +jQuery(function(o){var r=!1;o("#the-list").on("click",".delete-tag",function(){var t,e=o(this),n=e.parents("tr"),a=!0;return(a="undefined"!=showNotice?showNotice.warn():a)&&(t=e.attr("href").replace(/[^?]*\?/,"").replace(/action=delete/,"action=delete-tag"),o.post(ajaxurl,t,function(e){"1"==e?(o("#ajax-response").empty(),n.fadeOut("normal",function(){n.remove()}),o('select#parent option[value="'+t.match(/tag_ID=(\d+)/)[1]+'"]').remove(),o("a.tag-link-"+t.match(/tag_ID=(\d+)/)[1]).remove()):("-1"==e?o("#ajax-response").empty().append('

'+wp.i18n.__("Sorry, you are not allowed to do that.")+"

"):o("#ajax-response").empty().append('

'+wp.i18n.__("Something went wrong.")+"

"),n.children().css("backgroundColor",""))}),n.children().css("backgroundColor","#f33")),!1}),o("#edittag").on("click",".delete",function(e){return"undefined"==typeof showNotice||void(showNotice.warn()||e.preventDefault())}),o("#submit").on("click",function(){var s=o(this).parents("form");return validateForm(s)&&(r||(r=!0,s.find(".submit .spinner").addClass("is-active"),o.post(ajaxurl,o("#addtag").serialize(),function(e){var t,n,a;if(r=!1,s.find(".submit .spinner").removeClass("is-active"),o("#ajax-response").empty(),(t=wpAjax.parseAjaxResponse(e,"ajax-response"))&&!t.errors){if(0<(e=s.find("select#parent").val())&&0'+n+e.name+"")}o('input:not([type="checkbox"]):not([type="radio"]):visible, textarea:visible',s).val("")}}))),!1})}); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index 748e82cefe..ebeee9e189 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52952'; +$wp_version = '6.0-alpha-52953'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.