From 804cb235039d111c9a1d9813ea5c138598d1ade8 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 21 Jan 2019 23:37:57 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@44686 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/nav-menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index 395f787ab7..0539e7f253 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -105,8 +105,8 @@ function _wp_ajax_menu_quick_search( $request = array() ) { } } elseif ( 'taxonomy' == $matches[1] ) { $terms = get_terms( - $matches[2], array( + 'taxonomy' => $matches[2], 'name__like' => $query, 'number' => 10, )