Make WordPress Core

Ticket #23065: patch_commit_f941f7f69a79.patch

File patch_commit_f941f7f69a79.patch, 2.2 KB (added by thomasvanderbeek, 12 years ago)

This patch is more consistent with the rest of the code conventions.

  • wp-admin/includes/meta-boxes.php

    diff --git wp-admin/includes/meta-boxes.php wp-admin/includes/meta-boxes.php
    index 2b0b2864fcfd1d69679508b48e6ffc7272766749..c23f1e99146298e8aacd56e986c2e0405c767e1b 100644
    echo esc_html( $visibility_trans ); ?></span> 
    138138<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>
    139139<?php endif; ?>
    140140<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>
    142142<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 />
    143143
    144144<p>
  • wp-admin/js/post.js

    diff --git wp-admin/js/post.js wp-admin/js/post.js
    index d08dc4ab0eedff4c7dd5074e3db05789dfb17b4b..33e9f93a4e84b2e5ac0a5e91af64d4f0a9d88fb3 100644
    jQuery(document).ready( function($) { 
    476476                $('.cancel-post-visibility', '#post-visibility-select').click(function () {
    477477                        $('#post-visibility-select').slideUp('fast');
    478478                        $('#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());
    480480                        $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked'));
    481481                        $('#post-visibility-display').html(visibility);
    482482                        $('.edit-visibility', '#visibility').show();