mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user