Make WordPress Core


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

    r45603 r45723  
    160160
    161161        $custom_taxonomies = get_taxonomies( array( '_builtin' => false ) );
    162         $custom_terms      = (array) get_terms( $custom_taxonomies, array( 'get' => 'all' ) );
     162        $custom_terms      = (array) get_terms(
     163            array(
     164                'taxonomy' => $custom_taxonomies,
     165                'get'      => 'all',
     166            )
     167        );
    163168
    164169        // Put categories in order with no child going before its parent.
Note: See TracChangeset for help on using the changeset viewer.