Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#55858 closed defect (bug) (duplicate)

Bug in get_categories with child_of option

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

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
4 years ago

  • Component General → Taxonomy
  • Keywords needs-patch removed
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → 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.