WordPress.org

Make WordPress Core

Ticket #16947: 16947.diff

File 16947.diff, 1.1 KB (added by solarissmoke, 4 years ago)
  • wp-admin/includes/meta-boxes.php

     
    138138 
    139139 
    140140<input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e('Public'); ?></label><br /> 
    141 <?php if ($post_type == 'post'): ?> 
     141<?php if( $post_type == 'post' && current_user_can('edit_others_posts') ): ?> 
    142142<span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked(is_sticky($post->ID)); ?> tabindex="4" /> <label for="sticky" class="selectit"><?php _e('Stick this post to the front page') ?></label><br /></span> 
    143143<?php endif; ?> 
    144144<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 />