WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/03/2019 03:34:54 AM (15 months 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-customize-nav-menus.php

    r45442 r45723  
    211211        } elseif ( 'taxonomy' === $type ) {
    212212            $terms = get_terms(
    213                 $object,
    214213                array(
     214                    'taxonomy'     => $object,
    215215                    'child_of'     => 0,
    216216                    'exclude'      => '',
     
    366366        $taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'names' );
    367367        $terms      = get_terms(
    368             $taxonomies,
    369368            array(
     369                'taxonomies' => $taxonomies,
    370370                'name__like' => $args['s'],
    371371                'number'     => 20,
Note: See TracChangeset for help on using the changeset viewer.