WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#7005 closed defect (bug) (fixed)

the_category ignores seperator

Reported by: dan.safary Owned by:
Milestone: 2.7 Priority: high
Severity: major Version: 2.5.1
Component: General Keywords: the_category
Focuses: Cc:

Description

function get_the_category_list ===in category-template.php

line 151 :

$thelist .= get_category_parents($category->parent, TRUE);


misses $separator argument,so when get_category_parents gets called function get_category_parents sets default value which is '/' ;
in category-template.php line 151 should be :

$thelist .= get_category_parents($category->parent, TRUE, $separator);

same thing should happen in line 128 .

Change History (1)

comment:1 westi6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9190]) Pass on the $separator. Fixes #7005.

Note: See TracTickets for help on using tickets.