Changeset 15742 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 10/07/2010 09:10:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r15722 r15742 118 118 $visibility = 'password'; 119 119 $visibility_trans = __('Password protected'); 120 } elseif ( $post_type == 'post'&& is_sticky( $post->ID ) ) {120 } elseif ( post_type_supports( $post->post_type, 'sticky' ) && is_sticky( $post->ID ) ) { 121 121 $visibility = 'public'; 122 122 $visibility_trans = __('Public, Sticky'); … … 132 132 <div id="post-visibility-select" class="hide-if-js"> 133 133 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr($post->post_password); ?>" /> 134 <?php if ( $post_type == 'post'): ?>134 <?php if ( post_type_supports( $post->post_type, 'sticky' ) ): ?> 135 135 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID)); ?> /> 136 136 <?php endif; ?> … … 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 postto the front page') ?></label><br /></span>141 <?php if ( post_type_supports( $post->post_type, 'sticky' ) ): ?> 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 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 />
Note: See TracChangeset
for help on using the changeset viewer.