Make WordPress Core


Ignore:
Timestamp:
10/27/2010 08:27:45 AM (16 years ago)
Author:
nacin
Message:

Add a 'Sticky' filter on the edit posts page. Add post_in and post_not_in as private query vars in the WP class to support this. fixes #8466.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r15940 r16003  
    854854        }
    855855
     856        if ( ! empty( $q['show_sticky'] ) )
     857                $query['post__in'] = (array) get_option( 'sticky_posts' );
     858
    856859        wp( $query );
    857860
     
    921924                add_filter('posts_where', '_edit_attachments_query_helper');
    922925
    923         wp($q);
     926        wp( $q );
    924927
    925928        if ( isset($q['detached']) )
Note: See TracChangeset for help on using the changeset viewer.