Changeset 16680 for trunk/wp-admin/includes/class-wp-posts-list-table.php
- Timestamp:
- 12/02/2010 03:39:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r16660 r16680 69 69 } 70 70 71 if ( $sticky_posts = get_option( 'sticky_posts' ) ) {71 if ( 'post' == $post_type && $sticky_posts = get_option( 'sticky_posts' ) ) { 72 72 $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) ); 73 73 $this->sticky_posts_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND ID IN ($sticky_posts)", $post_type ) ); … … 951 951 </label> 952 952 953 <?php if ( post_type_supports( $screen->post_type, 'sticky' )&& $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?>953 <?php if ( 'post' == $screen->post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?> 954 954 955 955 <?php if ( $bulk ) : ?> … … 968 968 <label class="alignleft"> 969 969 <input type="checkbox" name="sticky" value="sticky" /> 970 <span class="checkbox-title"><?php _e( 'Make this sticky' ); ?></span>970 <span class="checkbox-title"><?php _e( 'Make this post sticky' ); ?></span> 971 971 </label> 972 972 973 973 <?php endif; // $bulk ?> 974 974 975 <?php endif; // post_type_supports(sticky)&& $can_publish && current_user_can( 'edit_others_cap' ) ?>975 <?php endif; // 'post' && $can_publish && current_user_can( 'edit_others_cap' ) ?> 976 976 977 977 </div>
Note: See TracChangeset
for help on using the changeset viewer.