[wp-trac] Re: [WordPress Trac] #7427: get_categories does not allow exernal taxonomy types

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 12 21:37:46 GMT 2008


#7427: get_categories does not allow exernal taxonomy types
------------------------+---------------------------------------------------
 Reporter:  Malaiac     |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:  2.7      
Component:  General     |      Version:           
 Severity:  minor       |   Resolution:           
 Keywords:  categories  |  
------------------------+---------------------------------------------------
Comment (by Malaiac):

 I'll have to release a plugin with a modification to WordPress core,
 waiting for the modification. (or have to recode hundreds of lines of WP
 core just for two lines missing)

 The actual change could be :

 {{{
         if ( 'link' == $args['type'] )
                 $taxonomy = 'link_category';
 +++  elseif($args['type'] != 'category')
 +++    $taxonomy = $args['type'];
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7427#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list