[wp-trac] [WordPress Trac] #4596: use_desc_for_title doesnt work in wp_list_categories()

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 9 00:52:59 GMT 2007


#4596: use_desc_for_title doesnt work in wp_list_categories()
----------------------+-----------------------------------------------------
 Reporter:  tiosolid  |       Owner:  anonymous                            
     Type:  defect    |      Status:  new                                  
 Priority:  normal    |   Milestone:                                       
Component:  General   |     Version:  2.2.1                                
 Severity:  normal    |    Keywords:  wp_list_categories, categories, lists
----------------------+-----------------------------------------------------
 When you make a call to wp_list_categories(), the use_desc_for_title is
 set to TRUE by default, but even if the category has a description, the
 default text (View all posts filed under..) is shown. Even if you force
 the use_desc_for_title to TRUE in the wp_list_categories() call, it still
 doesnt work.

 I managed to "fix" this bug changing the line 586 in the classes.php file
 from:
 if ( $use_desc_for_title == 0 || empty($category->category_description) )

 to

 if ( empty($category->category_description) )

 but, this break the use_desc_for_title variable usage.

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


More information about the wp-trac mailing list