Make WordPress Core

Ticket #45297: 45297.diff

File 45297.diff, 678 bytes (added by birgire, 7 years ago)
  • src/wp-admin/includes/nav-menu.php

    diff --git src/wp-admin/includes/nav-menu.php src/wp-admin/includes/nav-menu.php
    index d6acfca..e552c1d 100644
    function _wp_ajax_menu_quick_search( $request = array() ) { 
    106106                                }
    107107                        }
    108108                } elseif ( 'taxonomy' == $matches[1] ) {
    109                         $terms = get_terms( $matches[2], array(
    110                                 'name__like' => $query,
    111                                 'number' => 10,
    112                         ));
     109                        $terms = get_terms(
     110                                array(
     111                                        'taxonomy'   => $matches[2],
     112                                        'name__like' => $query,
     113                                        'number'     => 10,
     114                                )
     115                        );
    113116                        if ( empty( $terms ) || is_wp_error( $terms ) )
    114117                                return;
    115118                        foreach ( (array) $terms as $term ) {