- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r17322 r18106 139 139 140 140 <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'): ?>142 <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>141 <?php if ( $post_type == 'post' && current_user_can( 'edit_others_posts' ) ) : ?> 142 <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> 143 143 <?php endif; ?> 144 144 <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 /> … … 249 249 if ( !$post_format ) 250 250 $post_format = '0'; 251 $post_format_display = get_post_format_string( $post_format );252 251 // Add in the current one if it isn't there yet, in case the current theme doesn't support it 253 252 if ( $post_format && !in_array( $post_format, $post_formats[0] ) ) … … 508 507 function post_slug_meta_box($post) { 509 508 ?> 510 <label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $post->post_name); ?>" />509 <label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( apply_filters('editable_slug', $post->post_name) ); ?>" /> 511 510 <?php 512 511 }
Note: See TracChangeset
for help on using the changeset viewer.