[wp-trac] [WordPress Trac] #11072: Honor Post Type for Sticky Posts

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 5 15:48:08 UTC 2009


#11072: Honor Post Type for Sticky Posts
--------------------------+-------------------------------------------------
 Reporter:  chrisscott    |       Owner:  ryan                   
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  2.9                    
Component:  Query         |     Version:                         
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by ryan):

 This will break stickies for regular queries since the post_type is not
 set for them:

 {{{
 SELECT * FROM wp_posts WHERE wp_posts.ID IN (1611) AND wp_posts.post_type
 IN ('')
 }}}

 We'll need to set it further up or maybe use the post_type_cap.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11072#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list