[wp-trac] [WordPress Trac] #13755: Custom Post Type/Taxonomy in non-published status

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 7 14:41:47 UTC 2010


#13755: Custom Post Type/Taxonomy in non-published status
----------------------------+-----------------------------------------------
 Reporter:  ajferg          |       Owner:     
     Type:  defect (bug)    |      Status:  new
 Priority:  high            |   Milestone:  3.0
Component:  Administration  |     Version:  3.0
 Severity:  major           |    Keywords:     
----------------------------+-----------------------------------------------

Comment(by ryan):

 wp_edit_post_query() isn't allowing a post_status of any through.  This
 causes get_posts() to be run without a post_status being set.  We fall
 into the is_tax case and the set post_status to publish since it is not
 set.  I think we can allow 'any' in wp_edit_post_query().  Ideally we
 wouldn't have to pass 'any' for custom taxonomies since it is not required
 for the builtin taxonomies.  This would require getting rid of the line in
 the is_tax case that set post_status to publish, which has been debated
 before.

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


More information about the wp-trac mailing list