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
This commit is contained in:
parent
09066df1cf
commit
804cb23503
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user