[wp-trac] [WordPress Trac] #14485: Didn't show up children category when created parent and children categories at the same time.

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 12 10:39:50 UTC 2010


#14485: Didn't show up children category when created parent and children
categories at the same time.
--------------------------+-------------------------------------------------
 Reporter:  thealien      |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  high          |   Milestone:  3.1                    
Component:  Cache         |     Version:  3.0                    
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by scribu):

 In clean_term_cache(), you should check $clean_taxonomy before going
 through all the $cache_keys, no?

 Also, instead of:

 {{{
 $force_clean_taxonomy = ( $parent ) ? true : false;
 clean_term_cache($term_id, $taxonomy, true, $force_clean_taxonomy);
 }}}

 it's better to do:

 {{{
 clean_term_cache($term_id, $taxonomy, true, (bool) $parent);
 }}}

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


More information about the wp-trac mailing list