Taxonomy: Fix deprecated calls to get_terms().

The taxonomy should be passed as part of `$args`, rather than as its own argument.

Props sgastard, mukesh27, SergeyBiryukov.
Fixes #47819.

git-svn-id: https://develop.svn.wordpress.org/trunk@45723 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-08-03 03:34:54 +00:00
parent 2adeb5b6d5
commit 3c73c7a56f
18 changed files with 72 additions and 48 deletions
+1 -1
View File
@@ -428,8 +428,8 @@ class WP_Term_Query {
$excluded_children = array_merge(
$excluded_children,
(array) get_terms(
reset( $taxonomies ),
array(
'taxonomy' => reset( $taxonomies ),
'child_of' => intval( $extrunk ),
'fields' => 'ids',
'hide_empty' => 0,