From 56f44ff4667d8fe43428c2865ee9cb771dbd0c13 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 23 Jan 2013 03:30:04 +0000 Subject: [PATCH] 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 --- wp-admin/js/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 98b7942abc..15b7a9f151 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -478,7 +478,7 @@ jQuery(document).ready( function($) { $('.cancel-post-visibility', '#post-visibility-select').click(function () { $('#post-visibility-select').slideUp('fast'); $('#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')); $('#post-visibility-display').html(visibility); $('.edit-visibility', '#visibility').show();