Make WordPress Core

#55858 closed defect (bug) (duplicate)

Bug in get_categories with child_of option

Reported by: shvb2007's profile shvb2007 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description

Hello,
I found a bug in get_categories function when using it with child_of option. it retrieves all categories not only categories that are child of certain category. This happened after upgrading to WordPress version 6.0.
When I use it with parent option in my code, it generates proper output.
Hope that help you.

Change History (1)

#1 @SergeyBiryukov
21 months ago

  • Component changed from General to Taxonomy
  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #55837.

Note: See TracTickets for help on using tickets.