[wp-trac] [WordPress Trac] #20359: wp_list_categories - Diff to make use_desc_for_title parameter more flexible

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 4 22:57:44 UTC 2012


#20359: wp_list_categories - Diff to make use_desc_for_title parameter more
flexible
-------------------------+-------------------------------------
 Reporter:  Marventus    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.4
 Severity:  normal       |   Keywords:  has-patch needs-testing
-------------------------+-------------------------------------
 Right now, the @use_desc_for_title is defined as a boolean parameter which
 outputs category link title attributes containing either:
 - Category descriptions by default (''bool '''1''''');[[BR]]
 - 'View all posts filed under [category-name]'.[[BR]]
 Now, since the title attribute is not required for '''<a>''' tags in any
 HTML spec, I made a patch to turn this parameter into a string, with the
 following supported values:[[BR]]
 - 'desc' => (default) Outputs category descriptions;[[BR]]
 - 'viewall' => Same output as ''bool '''0''''' (''false'') before: 'View
 all posts filed under [category-name]';[[BR]]
 - 'none' => Does not output any title attributes.[[BR]]

 I have tested this thoroughly, but additional testing would not hurt.

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


More information about the wp-trac mailing list