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

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 28 10:01:35 GMT 2007


#4596: use_desc_for_title doesnt work in wp_list_categories()
-------------------------------------------------------------------+--------
 Reporter:  tiosolid                                               |        Owner:  anonymous
     Type:  defect                                                 |       Status:  new      
 Priority:  normal                                                 |    Milestone:  2.4      
Component:  General                                                |      Version:  2.2.1    
 Severity:  normal                                                 |   Resolution:           
 Keywords:  wp_list_categories categories lists reporter-feedback  |  
-------------------------------------------------------------------+--------
Old description:

> 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.

New description:

 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.

Comment (by westi):

 fixed description so full text was visible.

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


More information about the wp-trac mailing list