WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2019 11:37:57 PM (7 months ago)
Author:
pento
Message:

Menus: Fix a deprecated call to get_terms().

The taxonomy should be passed as part of $args, rather than as its own argument.

Props birgire.
Fixes #45297.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r43571 r44686  
    106106        } elseif ( 'taxonomy' == $matches[1] ) {
    107107            $terms = get_terms(
    108                 $matches[2],
    109108                array(
     109                    'taxonomy'   => $matches[2],
    110110                    'name__like' => $query,
    111111                    'number'     => 10,
Note: See TracChangeset for help on using the changeset viewer.