WordPress.org

Make WordPress Core

Changeset 23338


Ignore:
Timestamp:
01/23/13 03:30:04 (15 months ago)
Author:
SergeyBiryukov
Message:

Prevent an unintended visibility change from "Password protected" to "Public" when updating the post.

props thomasvanderbeek. fixes #23065.

File:
1 edited

Legend:

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

    r23302 r23338  
    479479            $('#post-visibility-select').slideUp('fast'); 
    480480            $('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true); 
    481             $('#post_password').val($('#hidden_post_password').val()); 
     481            $('#post_password').val($('#hidden-post-password').val()); 
    482482            $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked')); 
    483483            $('#post-visibility-display').html(visibility); 
Note: See TracChangeset for help on using the changeset viewer.