WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2010 09:10:35 AM (9 years ago)
Author:
nacin
Message:

Sticky post support for post types, first pass. see #12702, props azizur.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15719 r15742  
    921921                </label>
    922922
    923     <?php if ( 'post' == $screen->post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?>
     923    <?php if ( post_type_supports( $screen->post_type, 'sticky' ) && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?>
    924924
    925925    <?php   if ( $bulk ) : ?>
     
    938938                <label class="alignleft">
    939939                    <input type="checkbox" name="sticky" value="sticky" />
    940                     <span class="checkbox-title"><?php _e( 'Make this post sticky' ); ?></span>
     940                    <span class="checkbox-title"><?php _e( 'Make this sticky' ); ?></span>
    941941                </label>
    942942
    943943    <?php   endif; // $bulk ?>
    944944
    945     <?php endif; // !$is_page && $can_publish && current_user_can( 'edit_others_cap' ) ?>
     945    <?php endif; // post_type_supports(sticky) && $can_publish && current_user_can( 'edit_others_cap' ) ?>
    946946
    947947            </div>
Note: See TracChangeset for help on using the changeset viewer.