Make WordPress Core


Ignore:
Timestamp:
08/03/2019 03:34:54 AM (5 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-admin/includes/post.php

    r45583 r45723  
    20422042
    20432043        $_term = get_terms(
    2044             $taxonomy,
    20452044            array(
     2045                'taxonomy'   => $taxonomy,
    20462046                'name'       => $term,
    20472047                'fields'     => 'ids',
Note: See TracChangeset for help on using the changeset viewer.