Opened 5 years ago
Closed 5 years ago
#45297 closed defect (bug) (fixed)
_wp_ajax_menu_quick_search: Deprecated taxonomy input for get_terms
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.5 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | administration | Cc: |
Description
In _wp_ajax_menu_quick_search() the taxonomy input is deprecated since 4.5.
The taxonomy input for get_terms()
should now be part of the argument array.
See e.g.
https://developer.wordpress.org/reference/functions/get_terms/
So we need to change:
$terms = get_terms( $matches[2], array( 'name__like' => $query, 'number' => 10, ));
in https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-admin/includes/nav-menu.php#L109
to
$terms = get_terms( array( 'taxonomy' => $matches[2], 'name__like' => $query, 'number' => 10, ) );
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 44686: