I'm developing a theme that uses the get_the_category_list()
function (in category-template.php).
Examining its code, this function calls the get_the_category()
function (in category-template.php) which applies the get_the_categories
filter at the end:
return apply_filters( 'get_the_categories', $categories );
For some strange reason, this filter returns an empty array. If I replace this line with:
return $categories;
then everything is ok.
Any ideas about what's happening here?