diff --git a/src/wp-admin/js/inline-edit-post.js b/src/wp-admin/js/inline-edit-post.js index a1a9c028ab..3dcbc2fbe4 100644 --- a/src/wp-admin/js/inline-edit-post.js +++ b/src/wp-admin/js/inline-edit-post.js @@ -117,7 +117,7 @@ inlineEditPost = { }, edit : function(id) { - var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f, val; + var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f, val, pw; t.revert(); if ( typeof(id) === 'object' ) { @@ -209,9 +209,10 @@ inlineEditPost = { $('select[name="_status"] option[value="future"]', editRow).remove(); } + pw = $( '.inline-edit-password-input' ).prop( 'disabled', false ); if ( 'private' === status ) { $('input[name="keep_private"]', editRow).prop('checked', true); - $('input.inline-edit-password-input').val('').prop('disabled', true); + pw.val( '' ).prop( 'disabled', true ); } // remove the current page and children from the parent dropdown