[40514] introduced a bug that caused term queries to return some duplicates when the `$taxonomies` array contained only taxonomies that were originally registered with an `$args` array. We fix this bug by ensuring that recursive `get_terms()` queries stop when all queried `$taxonomies` have already been referenced. Props bor0, atanasangelovdev. Fixes #41010. Built from https://develop.svn.wordpress.org/trunk@41037 git-svn-id: http://core.svn.wordpress.org/trunk@40887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
145 KiB
145 KiB