mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user