Make WordPress Core


Ignore:
Timestamp:
08/03/2019 03:34:54 AM (4 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-walker-category.php

    r44957 r45723  
    201201                // 'current_category' can be an array, so we use `get_terms()`.
    202202                $_current_terms = get_terms(
    203                     $category->taxonomy,
    204203                    array(
     204                        'taxonomy'   => $category->taxonomy,
    205205                        'include'    => $args['current_category'],
    206206                        'hide_empty' => false,
Note: See TracChangeset for help on using the changeset viewer.