[wp-trac] [WordPress Trac] #9674: Better support for custom post types

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 20 00:17:30 UTC 2010


#9674: Better support for custom post types
------------------------------------+---------------------------------------
 Reporter:  wnorris                 |        Owner:  ryan    
     Type:  task (blessed)          |       Status:  reopened
 Priority:  normal                  |    Milestone:  3.0     
Component:  Administration          |      Version:  2.9     
 Severity:  normal                  |   Resolution:          
 Keywords:  has-patch tested early  |  
------------------------------------+---------------------------------------

Comment(by jfarthing84):

 Replying to [comment:227 ryan]:
 > [13184] Don't require a default category for post types other than
 'post'.

 You forgot to get this out of wp_insert_attachment():


 {{{
         // Make sure we set a valid category
         if ( !isset($post_category) || 0 == count($post_category) ||
 !is_array($post_category)) {
                 $post_category = array(get_option('default_category'));
         }
 }}}

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


More information about the wp-trac mailing list