[wp-trac] [WordPress Trac] #11401: checks against array('draft', 'pending') should be changed

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 11 19:14:18 UTC 2009


#11401: checks against array('draft', 'pending') should be changed
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:     
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  2.9
Component:  General            |     Version:  2.9
 Severity:  normal             |    Keywords:     
-------------------------------+--------------------------------------------
 With the introduction of the trash status, checks for a post_status in
 array('draft', 'pending') should probably be changed into either of =
 'publish' or != 'publish'.

 As things currently stand, a function like wp_link_pages() with a
 paginated trashed post probably ends up returning a fancy permalink.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11401>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list