[wp-trac] [WordPress Trac] #10761: Extra Space in Category List
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 9 12:59:36 UTC 2009
#10761: Extra Space in Category List
--------------------------+-------------------------------------------------
Reporter: junquan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Formatting | Version: 2.8.4
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Line 211 in category-template.php (get_the_category_list() function)
is:[[BR]]
{{{$thelist .= $separator . ' ';}}}[[BR]]
The line should instead be:[[BR]]
{{{$thelist .= $separator . '';}}}
When calling the_category(', '), the space is already manually included in
current themes, creating a double space ', ' between category names.
This usually is not noticed since HTML automatically reduces the double
space down to a single.
However, a problem arises if you don't want any space, since calling
the_category(',') will result in ', ' still being used as the delimiter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10761>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list