Make WordPress Core

Changeset 32716


Ignore:
Timestamp:
06/09/2015 10:01:06 PM (10 years ago)
Author:
obenland
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/inline-edit-post.js

    r31996 r32716  
    118118
    119119    edit : function(id) {
    120         var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f, val;
     120        var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f, val, pw;
    121121        t.revert();
    122122
     
    210210        }
    211211
     212        pw = $( '.inline-edit-password-input' ).prop( 'disabled', false );
    212213        if ( 'private' === status ) {
    213214            $('input[name="keep_private"]', editRow).prop('checked', true);
    214             $('input.inline-edit-password-input').val('').prop('disabled', true);
     215            pw.val( '' ).prop( 'disabled', true );
    215216        }
    216217
Note: See TracChangeset for help on using the changeset viewer.