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.


Built from https://develop.svn.wordpress.org/trunk@44686


git-svn-id: http://core.svn.wordpress.org/trunk@44517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-21 23:38:52 +00:00
parent 2d6bf285d4
commit af73067eb5
2 changed files with 2 additions and 2 deletions

View File

@ -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,
)

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta1-44685';
$wp_version = '5.1-beta1-44686';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.