Prevent an unintended visibility change from "Password protected" to "Public" when updating the post.
props thomasvanderbeek. fixes #23065. git-svn-id: https://develop.svn.wordpress.org/trunk@23338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a7d1dfad01
commit
56f44ff466
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue