[wp-trac] [WordPress Trac] #4182: bug with wp_list_catories

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 23 20:40:54 GMT 2007


#4182: bug with wp_list_catories
----------------------------+-----------------------------------------------
 Reporter:  profdeadmeat    |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  high            |   Milestone:  2.1.4    
Component:  Administration  |     Version:  2.1.2    
 Severity:  major           |    Keywords:           
----------------------------+-----------------------------------------------
 Simply:
   The function outputs directly to the page it does not allow any function
 to use the output.

 Impact:
   Plugins and templates which used the deprecated list_cats can not use
 the replacement.

 Fix:

   Change:
       echo apply_filters('list_cats', $output);

   To:
       $output = apply_filters('list_cats', $output);
         if ( $echo ) echo $output;
       return $output;

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


More information about the wp-trac mailing list