diff --git wp-admin/includes/meta-boxes.php wp-admin/includes/meta-boxes.php
index 2b0b2864fcfd1d69679508b48e6ffc7272766749..c23f1e99146298e8aacd56e986c2e0405c767e1b 100644
|
|
echo esc_html( $visibility_trans ); ?></span> |
138 | 138 | <span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post->ID ) ); ?> /> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span> |
139 | 139 | <?php endif; ?> |
140 | 140 | <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br /> |
141 | | <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>" /><br /></span> |
| 141 | <span id="password-span"><label for="post-password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post-password" value="<?php echo esc_attr($post->post_password); ?>" /><br /></span> |
142 | 142 | <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br /> |
143 | 143 | |
144 | 144 | <p> |
diff --git wp-admin/js/post.js wp-admin/js/post.js
index d08dc4ab0eedff4c7dd5074e3db05789dfb17b4b..33e9f93a4e84b2e5ac0a5e91af64d4f0a9d88fb3 100644
|
|
jQuery(document).ready( function($) { |
476 | 476 | $('.cancel-post-visibility', '#post-visibility-select').click(function () { |
477 | 477 | $('#post-visibility-select').slideUp('fast'); |
478 | 478 | $('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true); |
479 | | $('#post_password').val($('#hidden_post_password').val()); |
| 479 | $('#post-password').val($('#hidden-post-password').val()); |
480 | 480 | $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked')); |
481 | 481 | $('#post-visibility-display').html(visibility); |
482 | 482 | $('.edit-visibility', '#visibility').show(); |