Make WordPress Core


Ignore:
Timestamp:
08/03/2019 03:34:54 AM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r45590 r45723  
    429429                                        $excluded_children,
    430430                                        (array) get_terms(
    431                                                 reset( $taxonomies ),
    432431                                                array(
     432                                                        'taxonomy'   => reset( $taxonomies ),
    433433                                                        'child_of'   => intval( $extrunk ),
    434434                                                        'fields'     => 'ids',
Note: See TracChangeset for help on using the changeset viewer.