When inline editing a post, reset password field to be editable by default.

The Quick Edit form is cloned and then populated with post-specific data. If the 
previous post was private, the password field would continue to be disabled for
the next post.

Props afercia.
Fixes #32259.


Built from https://develop.svn.wordpress.org/trunk@32716


git-svn-id: http://core.svn.wordpress.org/trunk@32686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2015-06-09 22:02:27 +00:00
parent 82e8acd70b
commit bafb008be1
3 changed files with 5 additions and 4 deletions

View File

@ -117,7 +117,7 @@ inlineEditPost = {
}, },
edit : function(id) { 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(); t.revert();
if ( typeof(id) === 'object' ) { if ( typeof(id) === 'object' ) {
@ -209,9 +209,10 @@ inlineEditPost = {
$('select[name="_status"] option[value="future"]', editRow).remove(); $('select[name="_status"] option[value="future"]', editRow).remove();
} }
pw = $( '.inline-edit-password-input' ).prop( 'disabled', false );
if ( 'private' === status ) { if ( 'private' === status ) {
$('input[name="keep_private"]', editRow).prop('checked', true); $('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 // remove the current page and children from the parent dropdown

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-alpha-32715'; $wp_version = '4.3-alpha-32716';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.