[wp-trac] [WordPress Trac] #13843: post_type_supports() returns true when $_wp_post_type_features['post_type']['feature'] is set but false

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 11 07:17:40 UTC 2010


#13843: post_type_supports() returns true when
$_wp_post_type_features['post_type']['feature'] is set but false
-------------------------+--------------------------------------------------
 Reporter:  linguasite   |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  Post Types   |     Version:            
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 Wouldn't it be safer to ask for a true value before returning true?

 I had to change a capability manually and did this by directly changing
 the relevant value to false (without using remove_post_type_support for
 some reason).
 post_type_supports() still returned true then.

 wp-includes/post.php line 1031

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


More information about the wp-trac mailing list