Closed jbpenrath closed 3 months ago
Currently, calling get_children_categories for a published category return all category children even draft ones. In order to prevent that, if the category is not in draft, we explicitly exclude unpublished categories.
get_children_categories
@jbpenrath I can't reproduce the problem on the demo site, so I'm having difficult to give you feedback on this PR.
Purpose
Currently, calling
get_children_categories
for a published category return all category children even draft ones. In order to prevent that, if the category is not in draft, we explicitly exclude unpublished categories.