Make WordPress Core

Ticket #37791: 37791-1.diff

File 37791-1.diff, 769 bytes (added by schlessera, 8 years ago)
  • src/wp-includes/class-walker-nav-menu.php

    diff --git src/wp-includes/class-walker-nav-menu.php src/wp-includes/class-walker-nav-menu.php
    index 43eaa91..38992f2 100644
    class Walker_Nav_Menu extends Walker { 
    180180                 */
    181181                $title = apply_filters( 'nav_menu_item_title', $title, $item, $args, $depth );
    182182
    183                 $item_output = $args->before;
     183                $item_output = $args['before'];
    184184                $item_output .= '<a'. $attributes .'>';
    185                 $item_output .= $args->link_before . $title . $args->link_after;
     185                $item_output .= $args['link_before'] . $title . $args['link_after'];
    186186                $item_output .= '</a>';
    187                 $item_output .= $args->after;
     187                $item_output .= $args['after'];
    188188
    189189                /**
    190190                 * Filters a menu item's starting output.