[wp-trac] [WordPress Trac] #14471: wp_create_category not working properly

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 26 11:25:48 UTC 2010


#14471: wp_create_category not working properly
---------------------------------------+------------------------------------
 Reporter:  christian_gnoth            |        Owner:          
     Type:  defect (bug)               |       Status:  reopened
 Priority:  normal                     |    Milestone:          
Component:  Taxonomy                   |      Version:  3.0     
 Severity:  normal                     |   Resolution:          
 Keywords:  wp admin category display  |  
---------------------------------------+------------------------------------
Changes (by christian_gnoth):

  * keywords:  => wp admin category display
  * severity:  minor => normal


Comment:

 if I put the following code just before the "return" of the function it is
 working:


 {{{
                         wp_cache_delete('all_ids', 'category');
                         wp_cache_delete('get', 'category');
                         delete_option("category_children");
                         // Regenerate {$taxonomy}_children
                         _get_term_hierarchy('category');
 }}}

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


More information about the wp-trac mailing list