Changeset 16680 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 12/02/2010 03:39:26 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/meta-boxes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r16679 r16680 115 115 $visibility = 'password'; 116 116 $visibility_trans = __('Password protected'); 117 } elseif ( post_type_supports( $post->post_type, 'sticky' )&& is_sticky( $post->ID ) ) {117 } elseif ( $post_type == 'post' && is_sticky( $post->ID ) ) { 118 118 $visibility = 'public'; 119 119 $visibility_trans = __('Public, Sticky'); … … 129 129 <div id="post-visibility-select" class="hide-if-js"> 130 130 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr($post->post_password); ?>" /> 131 <?php if ( post_type_supports( $post->post_type, 'sticky' )): ?>131 <?php if ($post_type == 'post'): ?> 132 132 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID)); ?> /> 133 133 <?php endif; ?> … … 136 136 137 137 <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 /> 138 <?php if ( post_type_supports( $post->post_type, 'sticky' )): ?>139 <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 to the front page') ?></label><br /></span>138 <?php if ($post_type == 'post'): ?> 139 <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> 140 140 <?php endif; ?> 141 141 <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 />
Note: See TracChangeset
for help on using the changeset viewer.