mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-23 13:24:57 +02: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. 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:
parent
2d6bf285d4
commit
af73067eb5
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user