[wp-trac] [WordPress Trac] #55858: Bug in get_categories with child_of option

WordPress Trac noreply at wordpress.org
Fri May 27 15:59:59 UTC 2022


#55858: Bug in get_categories with child_of option
--------------------------+-----------------------------
 Reporter:  shvb2007      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55858>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list