Make WordPress Core

Ticket #36691: 36691.patch

File 36691.patch, 1.4 KB (added by paulschreiber, 7 years ago)
  • wp-admin/includes/meta-boxes.php

     
    156156<?php if ( $post_type == 'post' && current_user_can( 'edit_others_posts' ) ) : ?>
    157157<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>
    158158<?php endif; ?>
     159<?php if ( 'password' === $visibility || apply_filters( 'allow_password_protected_posts', true ) ) : ?>
    159160<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 />
    160161<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); ?>"  maxlength="20" /><br /></span>
     162<?php endif; ?>
    161163<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 />
    162164
    163165<p>