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

props thomasvanderbeek. fixes #23065.

git-svn-id: http://core.svn.wordpress.org/trunk@23338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-01-23 03:30:04 +00:00
parent 8e32770793
commit 2366239798

View File

@ -478,7 +478,7 @@ jQuery(document).ready( function($) {
$('.cancel-post-visibility', '#post-visibility-select').click(function () { $('.cancel-post-visibility', '#post-visibility-select').click(function () {
$('#post-visibility-select').slideUp('fast'); $('#post-visibility-select').slideUp('fast');
$('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true); $('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true);
$('#post_password').val($('#hidden_post_password').val()); $('#post_password').val($('#hidden-post-password').val());
$('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked')); $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked'));
$('#post-visibility-display').html(visibility); $('#post-visibility-display').html(visibility);
$('.edit-visibility', '#visibility').show(); $('.edit-visibility', '#visibility').show();